mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
rockchip: fix asound.conf for rk322x-box and xt-q8l-v10 boards
sound node in device trees have been migrated to audio-graph-card2 to overcome limitations and configuration mayhems in ALSA userland libraries
This commit is contained in:
@@ -1,27 +1,3 @@
|
||||
pcm.OnBoard_D0 {
|
||||
|
||||
type hw
|
||||
card OnBoard
|
||||
device 0
|
||||
|
||||
}
|
||||
|
||||
pcm.OnBoard_D1 {
|
||||
|
||||
type hw
|
||||
card OnBoard
|
||||
device 1
|
||||
|
||||
}
|
||||
|
||||
pcm.OnBoard_D2 {
|
||||
|
||||
type hw
|
||||
card OnBoard
|
||||
device 2
|
||||
|
||||
}
|
||||
|
||||
# Configuration to expose the SPDIF device of RK3288 to ALSA.
|
||||
# The device tree must describe a simple-audio-card device named "SPDIF"
|
||||
# for this to work properly
|
||||
@@ -53,24 +29,18 @@ cards.SPDIF.pcm.iec958.0 {
|
||||
}
|
||||
|
||||
# Configuration to expose the HDMI device of RK3288 to ALSA.
|
||||
# The device tree must describe a simple-audio-card device named "DW-I2S-HDMI"
|
||||
# The device tree must describe a simple-audio-card device named "HDMI"
|
||||
# for this to work properly
|
||||
# This percolates to PulseAudio, which will eventually show the proper
|
||||
# labels to the audio device
|
||||
|
||||
<confdir:pcm/hdmi.conf>
|
||||
|
||||
cards.DW-I2S-HDMI.pcm.hdmi.0 {
|
||||
@args [ CARD DEVICE CTLINDEX AES0 AES1 AES2 AES3 ]
|
||||
cards.HDMI.pcm.hdmi.0 {
|
||||
@args [ CARD AES0 AES1 AES2 AES3 ]
|
||||
@args.CARD {
|
||||
type string
|
||||
}
|
||||
@args.DEVICE {
|
||||
type integer
|
||||
}
|
||||
@args.CTLINDEX {
|
||||
type integer
|
||||
}
|
||||
@args.AES0 {
|
||||
type integer
|
||||
}
|
||||
@@ -83,6 +53,22 @@ cards.DW-I2S-HDMI.pcm.hdmi.0 {
|
||||
@args.AES3 {
|
||||
type integer
|
||||
}
|
||||
type hw
|
||||
card $CARD
|
||||
type hooks
|
||||
slave.pcm {
|
||||
type hw
|
||||
card $CARD
|
||||
}
|
||||
hooks.0 {
|
||||
type ctl_elems
|
||||
hook_args [
|
||||
{
|
||||
interface PCM
|
||||
name "IEC958 Playback Default"
|
||||
lock true
|
||||
preserve true
|
||||
value [ $AES0 $AES1 $AES2 $AES3 ]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user