ucm: delete HDMI verb. 51/151551/11 accepted/tizen_4.0_unified accepted/tizen_5.0_unified tizen_4.0 tizen_5.0 accepted/tizen/4.0/unified/20170925.071936 accepted/tizen/5.0/unified/20181102.012128 accepted/tizen/unified/20170925.071500 submit/tizen/20170925.002540 submit/tizen_4.0/20170925.002557 submit/tizen_5.0/20181101.000001 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorLee Hackseung <lhs@dignsys.com>
Thu, 21 Sep 2017 07:14:57 +0000 (16:14 +0900)
committerjaechul lee <jcsing.lee@samsung.com>
Sun, 24 Sep 2017 23:58:04 +0000 (23:58 +0000)
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>
bcm2835/bcm2835.conf
bcm2835/hdmi [deleted file]
bcm2835/hifi
bcm2835/inactive

index f8ab3a85f5d75b438d023cb6a26b3ea507d037ad..26c39aef7fec73779e79165051f012878826ad72 100644 (file)
@@ -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 (file)
index 8d825c5..0000000
+++ /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"
-  }
-}
index 076473560eb361b4bcc02e9f984b8800f36fd58e..1fe0b391a87e1bd0b1a27773c22ffe2a5dc18467 100644 (file)
@@ -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"
+  }
+}
+
index 17e9a8035561fac5f22292ab0b76dd48140b491b..59506f28d63059c1a72958d94439adff74c81192 100644 (file)
@@ -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 [
-  ]
-}