Delete HDMI verb and move the HDMI device into the HiFi verb.
Move the volume control into the SectionVerb.
tested:
alsaucm -c bcm2835 set _verb HiFi set _enadev Speaker
alsaucm -c bcm2835 set _verb Hifi set _enadev HDMI
Change-Id: I2a5244ad47c09ccd1b37bdee3272f6ca2eff8af1
Signed-off-by: Hackseung Lee <lhs@dignsys.com>
Comment "Hifi audio path"
}
-SectionUseCase."HDMI" {
- File "hdmi"
- Comment "HDMI audio path"
-}
-
-
ValueDefaults {
PlaybackCTL "hw:1"
CaptureCTL "hw:1"
+++ /dev/null
-SectionVerb {
- EnableSequence [
- ]
- DisableSequence [
- ]
-
- Value {
- TQ "Music"
- PlaybackCTL "hw:1"
- }
-}
-
-SectionDevice."HDMI" {
- Comment "HDMI AUDIO"
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-
- Value {
- PlaybackPCM "hw:1,1"
- }
-}
SectionVerb {
EnableSequence [
+ cset "name='PCM Playback Volume' 90%"
+ cset "name='PCM Playback Switch' on"
]
DisableSequence [
+ cset "name='PCM Playback Switch' off"
]
Value {
Comment "3.5mm Speaker"
EnableSequence [
+ cset "name='PCM Playback Route' 1"
]
DisableSequence [
PlaybackPCM "hw:1,0"
}
}
+
+SectionDevice."HDMI" {
+ Comment "HDMI audio"
+
+ EnableSequence [
+ cset "name='PCM Playback Route' 2"
+ ]
+
+ DisableSequence [
+ ]
+
+ Value {
+ PlaybackPCM "hw:1,1"
+ }
+}
+
SectionVerb {
EnableSequence [
+ cset "name='PCM Playback Route' off"
]
+
DisableSequence [
]
Value {
TQ "Music"
PlaybackCTL "hw:1"
- CaptureCTL "hw:1"
}
}
DisableSequence [
]
}
-
-SectionDevice."Capture" {
- Comment "reset capture"
-
- EnableSequence [
- ]
-
- DisableSequence [
- ]
-}