[PATCH] ucm: Dell WD15 set lineout controls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The lineout playback switch should be enabled and disabled when enabling
and disabling the device.

This commit needs to be tested by dell.

Signed-off-by: Curtis Malainey <cujomalainey@xxxxxxxxxxxx>
Cc: Dylan Reid <dgreid@xxxxxxxxxxxx>
Cc: Crag Wang <crag.wang@xxxxxxxx>
---
 src/conf/ucm/Dell-WD15-Dock/HiFi.conf | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/conf/ucm/Dell-WD15-Dock/HiFi.conf b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf
index 1b6bd212..cab13c5d 100644
--- a/src/conf/ucm/Dell-WD15-Dock/HiFi.conf
+++ b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf
@@ -1,3 +1,11 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:Dock"
+	]
+	DisableSequence [
+	]
+}
+
 SectionDevice."Headphone" {
 	Comment "Headphone"
 
@@ -14,6 +22,14 @@ SectionDevice."LineOut" {
 		PlaybackChannels "2"
 		PlaybackPCM "hw:Dock,1"
 	}
+	EnableSequence [
+		cdev "hw:Dock"
+		cset "name='Line Playback Switch' on"
+	]
+	DisableSequence [
+		cdev "hw:Dock"
+		cset "name='Line Playback Switch' off"
+	]
 }
 
 SectionDevice."Mic" {
-- 
2.22.0.rc2.383.gf4fbbf30c2-goog

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux