1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-25 06:06:19 +00:00
Lakka-LibreELEC/projects/Allwinner/filesystem/usr/share/alsa/cards/simple-card.conf
2021-11-09 21:28:06 +01:00

134 lines
2.3 KiB
Plaintext

#
# Configuration for HDMI
#
<confdir:pcm/hdmi.conf>
simple-card.pcm.hdmi."allwinner-hdmi" {
@args [ CARD DEVICE AES0 AES1 AES2 AES3 ]
@args.CARD { type string }
@args.DEVICE { type integer }
@args.AES0 { type integer }
@args.AES1 { type integer }
@args.AES2 { type integer }
@args.AES3 { type integer }
type hooks
slave.pcm {
type hw
card $CARD
device $DEVICE
}
hooks.0 {
type ctl_elems
hook_args [
{
interface PCM
name "IEC958 Playback Default"
lock true
preserve true
optional true
value [ $AES0 $AES1 $AES2 $AES3 ]
}
]
}
hint.device $DEVICE
}
simple-card.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 }
@func refer
name {
@func concat
strings [
"cards.simple-card.pcm.hdmi."
{ @func card_name card $CARD }
":CARD=" $CARD ","
"DEVICE=0,"
"AES0=" $AES0 ","
"AES1=" $AES1 ","
"AES2=" $AES2 ","
"AES3=" $AES3
]
}
default {
# point to non-existent device
card $CARD
device 999
hint.device 999
}
}
#
# Configuration for SPDIF
#
<confdir:pcm/iec958.conf>
simple-card.pcm.iec958."On-board SPDIF" "cards.simple-card.pcm.iec958.sun50i-h6-spdif"
simple-card.pcm.iec958."sun50i-h6-spdif" {
@args [ CARD DEVICE AES0 AES1 AES2 AES3 ]
@args.CARD { type string }
@args.DEVICE { type integer }
@args.AES0 { type integer }
@args.AES1 { type integer }
@args.AES2 { type integer }
@args.AES3 { type integer }
type hooks
slave.pcm {
type hw
card $CARD
device $DEVICE
}
hooks.0 {
type ctl_elems
hook_args [
{
interface PCM
name "IEC958 Playback Default"
lock true
preserve true
optional true
value [ $AES0 $AES1 $AES2 $AES3 ]
}
]
}
hint.device $DEVICE
}
simple-card.pcm.iec958.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 }
@func refer
name {
@func concat
strings [
"cards.simple-card.pcm.iec958."
{ @func card_name card $CARD }
":CARD=" $CARD ","
"DEVICE=0,"
"AES0=" $AES0 ","
"AES1=" $AES1 ","
"AES2=" $AES2 ","
"AES3=" $AES3
]
}
default {
# point to non-existent device
card $CARD
device 999
hint.device 999
}
}