mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
conf: add support for Amlogic AIU and AXG cards
The generic AIU conf is used with Amlogic GXBB/GXL/GXM boards and supports HDMI and hinted S/PDIF output. The generic AXG conf is used with G12A/G12B/SM1 boards and supports HDMI. Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
This commit is contained in:
parent
a8afb0449c
commit
284a2cdbf8
3 changed files with 173 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ cfg_files = aliases.conf \
|
||||||
Audigy2.conf \
|
Audigy2.conf \
|
||||||
Aureon51.conf \
|
Aureon51.conf \
|
||||||
Aureon71.conf \
|
Aureon71.conf \
|
||||||
|
axg-sound-card.conf \
|
||||||
CA0106.conf \
|
CA0106.conf \
|
||||||
CMI8338.conf \
|
CMI8338.conf \
|
||||||
CMI8338-SWIEC.conf \
|
CMI8338-SWIEC.conf \
|
||||||
|
|
@ -29,6 +30,7 @@ cfg_files = aliases.conf \
|
||||||
FWSpeakers.conf \
|
FWSpeakers.conf \
|
||||||
FireWave.conf \
|
FireWave.conf \
|
||||||
GUS.conf \
|
GUS.conf \
|
||||||
|
gx-sound-card.conf \
|
||||||
HDA-Intel.conf \
|
HDA-Intel.conf \
|
||||||
HdmiLpeAudio.conf \
|
HdmiLpeAudio.conf \
|
||||||
ICE1712.conf \
|
ICE1712.conf \
|
||||||
|
|
|
||||||
65
src/conf/cards/axg-sound-card.conf
Normal file
65
src/conf/cards/axg-sound-card.conf
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
#
|
||||||
|
# Configuration for Amlogic AXG audio
|
||||||
|
#
|
||||||
|
|
||||||
|
axg-sound-card.pcm.default {
|
||||||
|
@args [ CARD ]
|
||||||
|
@args.CARD {
|
||||||
|
type string
|
||||||
|
}
|
||||||
|
type softvol
|
||||||
|
slave.pcm {
|
||||||
|
type plug
|
||||||
|
slave {
|
||||||
|
pcm {
|
||||||
|
type hw
|
||||||
|
card $CARD
|
||||||
|
device 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
control {
|
||||||
|
name "PCM Playback Volume"
|
||||||
|
card $CARD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<confdir:pcm/hdmi.conf>
|
||||||
|
|
||||||
|
axg-sound-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
|
||||||
|
}
|
||||||
|
type hooks
|
||||||
|
slave.pcm {
|
||||||
|
type hw
|
||||||
|
card $CARD
|
||||||
|
device 0
|
||||||
|
}
|
||||||
|
hooks.0 {
|
||||||
|
type ctl_elems
|
||||||
|
hook_args [
|
||||||
|
{
|
||||||
|
name "IEC958 Playback Default"
|
||||||
|
interface PCM
|
||||||
|
lock true
|
||||||
|
preserve true
|
||||||
|
optional true
|
||||||
|
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
106
src/conf/cards/gx-sound-card.conf
Normal file
106
src/conf/cards/gx-sound-card.conf
Normal file
|
|
@ -0,0 +1,106 @@
|
||||||
|
#
|
||||||
|
# Configuration for Amlogic AIU audio
|
||||||
|
#
|
||||||
|
|
||||||
|
gx-sound-card.pcm.default {
|
||||||
|
@args [ CARD ]
|
||||||
|
@args.CARD {
|
||||||
|
type string
|
||||||
|
}
|
||||||
|
type softvol
|
||||||
|
slave.pcm {
|
||||||
|
type plug
|
||||||
|
slave {
|
||||||
|
pcm {
|
||||||
|
type hw
|
||||||
|
card $CARD
|
||||||
|
device 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
control {
|
||||||
|
name "PCM Playback Volume"
|
||||||
|
card $CARD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<confdir:pcm/hdmi.conf>
|
||||||
|
|
||||||
|
gx-sound-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
|
||||||
|
}
|
||||||
|
type hooks
|
||||||
|
slave.pcm {
|
||||||
|
type hw
|
||||||
|
card $CARD
|
||||||
|
device 0
|
||||||
|
}
|
||||||
|
hooks.0 {
|
||||||
|
type ctl_elems
|
||||||
|
hook_args [
|
||||||
|
{
|
||||||
|
name "IEC958 Playback Default"
|
||||||
|
interface PCM
|
||||||
|
lock true
|
||||||
|
preserve true
|
||||||
|
optional true
|
||||||
|
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
<confdir:pcm/iec958.conf>
|
||||||
|
|
||||||
|
gx-sound-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
|
||||||
|
}
|
||||||
|
type hooks
|
||||||
|
slave.pcm {
|
||||||
|
type hw
|
||||||
|
card $CARD
|
||||||
|
device 1
|
||||||
|
}
|
||||||
|
hooks.0 {
|
||||||
|
type ctl_elems
|
||||||
|
hook_args [
|
||||||
|
{
|
||||||
|
name "IEC958 Playback Default"
|
||||||
|
interface PCM
|
||||||
|
lock true
|
||||||
|
preserve true
|
||||||
|
optional true
|
||||||
|
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
hint.device 1
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue