diff options
author | Lee Hackseung <lhs@dignsys.com> | 2017-09-21 16:14:57 +0900 |
---|---|---|
committer | jaechul lee <jcsing.lee@samsung.com> | 2017-09-24 23:58:04 +0000 |
commit | 350d254ed380bd4ea143e29d9b9ae2cbd77c5c29 (patch) | |
tree | d6c831a9bd2aeb63b13a3eb12091b4051887b17f | |
parent | c98d1105e13d4ca9cca338c98c54f39b7a3bcac4 (diff) | |
download | alsa-ucm-conf-rpi3-350d254ed380bd4ea143e29d9b9ae2cbd77c5c29.tar.gz alsa-ucm-conf-rpi3-350d254ed380bd4ea143e29d9b9ae2cbd77c5c29.tar.bz2 alsa-ucm-conf-rpi3-350d254ed380bd4ea143e29d9b9ae2cbd77c5c29.zip |
ucm: delete HDMI verb.tizen_4.0.m2_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_5.0/20181101.000001submit/tizen_4.0/20170925.002557submit/tizen/20170925.002540accepted/tizen/unified/20170925.071500accepted/tizen/5.0/unified/20181102.012128accepted/tizen/4.0/unified/20170925.071936tizen_5.0tizen_4.0accepted/tizen_5.0_unifiedaccepted/tizen_4.0_unified
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>
-rw-r--r-- | bcm2835/bcm2835.conf | 6 | ||||
-rw-r--r-- | bcm2835/hdmi | 25 | ||||
-rw-r--r-- | bcm2835/hifi | 20 | ||||
-rw-r--r-- | bcm2835/inactive | 13 |
4 files changed, 22 insertions, 42 deletions
diff --git a/bcm2835/bcm2835.conf b/bcm2835/bcm2835.conf index f8ab3a8..26c39ae 100644 --- a/bcm2835/bcm2835.conf +++ b/bcm2835/bcm2835.conf @@ -8,12 +8,6 @@ SectionUseCase."HiFi" { Comment "Hifi audio path" } -SectionUseCase."HDMI" { - File "hdmi" - Comment "HDMI audio path" -} - - ValueDefaults { PlaybackCTL "hw:1" CaptureCTL "hw:1" diff --git a/bcm2835/hdmi b/bcm2835/hdmi deleted file mode 100644 index 8d825c5..0000000 --- a/bcm2835/hdmi +++ /dev/null @@ -1,25 +0,0 @@ -SectionVerb { - EnableSequence [ - ] - DisableSequence [ - ] - - Value { - TQ "Music" - PlaybackCTL "hw:1" - } -} - -SectionDevice."HDMI" { - Comment "HDMI AUDIO" - - EnableSequence [ - ] - - DisableSequence [ - ] - - Value { - PlaybackPCM "hw:1,1" - } -} diff --git a/bcm2835/hifi b/bcm2835/hifi index 0764735..1fe0b39 100644 --- a/bcm2835/hifi +++ b/bcm2835/hifi @@ -1,7 +1,10 @@ SectionVerb { EnableSequence [ + cset "name='PCM Playback Volume' 90%" + cset "name='PCM Playback Switch' on" ] DisableSequence [ + cset "name='PCM Playback Switch' off" ] Value { @@ -14,6 +17,7 @@ SectionDevice."Speaker" { Comment "3.5mm Speaker" EnableSequence [ + cset "name='PCM Playback Route' 1" ] DisableSequence [ @@ -23,3 +27,19 @@ SectionDevice."Speaker" { PlaybackPCM "hw:1,0" } } + +SectionDevice."HDMI" { + Comment "HDMI audio" + + EnableSequence [ + cset "name='PCM Playback Route' 2" + ] + + DisableSequence [ + ] + + Value { + PlaybackPCM "hw:1,1" + } +} + diff --git a/bcm2835/inactive b/bcm2835/inactive index 17e9a80..59506f2 100644 --- a/bcm2835/inactive +++ b/bcm2835/inactive @@ -1,13 +1,14 @@ SectionVerb { EnableSequence [ + cset "name='PCM Playback Route' off" ] + DisableSequence [ ] Value { TQ "Music" PlaybackCTL "hw:1" - CaptureCTL "hw:1" } } @@ -30,13 +31,3 @@ SectionDevice."Playback" { DisableSequence [ ] } - -SectionDevice."Capture" { - Comment "reset capture" - - EnableSequence [ - ] - - DisableSequence [ - ] -} |