Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conf: add support for Amlogic AIU and AXG cards #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/conf/cards/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cfg_files = aliases.conf \
Audigy2.conf \
Aureon51.conf \
Aureon71.conf \
axg-sound-card.conf \
CA0106.conf \
CMI8338.conf \
CMI8338-SWIEC.conf \
Expand All @@ -29,6 +30,7 @@ cfg_files = aliases.conf \
FWSpeakers.conf \
FireWave.conf \
GUS.conf \
gx-sound-card.conf \
HDA-Intel.conf \
HdmiLpeAudio.conf \
ICE1712.conf \
Expand Down
65 changes: 65 additions & 0 deletions src/conf/cards/axg-sound-card.conf
Original file line number Diff line number Diff line change
@@ -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 changes: 106 additions & 0 deletions src/conf/cards/gx-sound-card.conf
Original file line number Diff line number Diff line change
@@ -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
}