summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Hackseung <lhs@dignsys.com>2017-09-21 16:14:57 +0900
committerjaechul lee <jcsing.lee@samsung.com>2017-09-24 23:58:04 +0000
commit350d254ed380bd4ea143e29d9b9ae2cbd77c5c29 (patch)
treed6c831a9bd2aeb63b13a3eb12091b4051887b17f
parentc98d1105e13d4ca9cca338c98c54f39b7a3bcac4 (diff)
downloadalsa-ucm-conf-rpi3-accepted/tizen_4.0_unified.tar.gz
alsa-ucm-conf-rpi3-accepted/tizen_4.0_unified.tar.bz2
alsa-ucm-conf-rpi3-accepted/tizen_4.0_unified.zip
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.conf6
-rw-r--r--bcm2835/hdmi25
-rw-r--r--bcm2835/hifi20
-rw-r--r--bcm2835/inactive13
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 [
- ]
-}