mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 23:47:49 +00:00
RPi: add fixed alsa card conf for vc4-hdmi
Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
parent
8e16debd1b
commit
e4f81babdb
67
projects/RPi/filesystem/usr/share/alsa/cards/vc4-hdmi.conf
Normal file
67
projects/RPi/filesystem/usr/share/alsa/cards/vc4-hdmi.conf
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# Configuration for the VC4-HDMI sound card using software IEC958
|
||||||
|
# subframe conversion
|
||||||
|
|
||||||
|
<confdir:pcm/hdmi.conf>
|
||||||
|
vc4-hdmi.pcm.hdmi.0 {
|
||||||
|
@args [ CARD AES0 AES1 AES2 AES3 ]
|
||||||
|
@args.CARD {
|
||||||
|
type string
|
||||||
|
}
|
||||||
|
@args.AES0 {
|
||||||
|
type integer
|
||||||
|
}
|
||||||
|
@args.AES1 {
|
||||||
|
type integer
|
||||||
|
}
|
||||||
|
@args.AES2 {
|
||||||
|
type integer
|
||||||
|
}
|
||||||
|
@args.AES3 {
|
||||||
|
type integer
|
||||||
|
}
|
||||||
|
type iec958
|
||||||
|
slave {
|
||||||
|
format IEC958_SUBFRAME_LE
|
||||||
|
pcm {
|
||||||
|
type hooks
|
||||||
|
slave.pcm {
|
||||||
|
type hw
|
||||||
|
card $CARD
|
||||||
|
device 0
|
||||||
|
}
|
||||||
|
hooks.0 {
|
||||||
|
type ctl_elems
|
||||||
|
hook_args [
|
||||||
|
{
|
||||||
|
name "IEC958 Playback Default"
|
||||||
|
optional true
|
||||||
|
lock true
|
||||||
|
preserve true
|
||||||
|
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
status [ $AES0 $AES1 $AES2 $AES3 ]
|
||||||
|
}
|
||||||
|
|
||||||
|
# default with plug
|
||||||
|
vc4-hdmi.pcm.default {
|
||||||
|
@args [ CARD ]
|
||||||
|
@args.CARD {
|
||||||
|
type string
|
||||||
|
}
|
||||||
|
type plug
|
||||||
|
slave.pcm {
|
||||||
|
type softvol
|
||||||
|
slave.pcm {
|
||||||
|
@func concat
|
||||||
|
strings [ "hdmi:" $CARD ]
|
||||||
|
}
|
||||||
|
control {
|
||||||
|
name "PCM Playback Volume"
|
||||||
|
card $CARD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user