new file mode 100644
@@ -0,0 +1,68 @@
+Define.pbk_mux "SPK"
+
+If.1 {
+ Condition {
+ Type ControlExists
+ Control "name='Internal Speakers Switch'"
+ }
+
+ True {
+ Define.pbk_mux "HP"
+ SectionDevice."Speaker".EnableSequence [
+ cset "name='Internal Speakers Switch' on"
+ ]
+
+ SectionDevice."Speaker".DisableSequence [
+ cset "name='Internal Speakers Switch' off"
+ ]
+ }
+}
+
+SectionDevice."Speaker" {
+ Comment "Internal Speaker"
+
+ EnableSequence [
+ cset "name='Playback Mux' ${var:pbk_mux}"
+ ]
+
+ Value {
+ PlaybackMixerElem "Master Playback Volume"
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId}"
+ }
+
+ ConflictingDevice [
+ "Headphones"
+ ]
+}
+
+SectionDevice."Mic" {
+ Comment "Microphone"
+
+ Value {
+ CapturePriority 100
+ CapturePCM "hw:${CardId}"
+ CaptureMixerElem "Mic Capture Gain"
+ CaptureMasterElem "Master Capture Volume"
+ }
+}
+
+SectionDevice."Headphones" {
+ Comment "Headphones"
+
+ EnableSequence [
+ cset "name='Playback Mux' HP"
+ ]
+
+ Value {
+ PlaybackMixerElem "Master Playback Volume"
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId}"
+ JackControl "Headphones Jack"
+ JackHWMute "Speaker"
+ }
+
+ ConflictingDevice [
+ "Speaker"
+ ]
+}
new file mode 100644
@@ -0,0 +1,6 @@
+Syntax 4
+
+SectionUseCase."HiFi" {
+ File "/Rockchip/rk817-sound/HiFi.conf"
+ Comment "Play HiFi quality music"
+}
new file mode 120000
@@ -0,0 +1 @@
+../../Rockchip/rk817-sound/rk817-sound.conf
\ No newline at end of file
new file mode 120000
@@ -0,0 +1 @@
+../../Rockchip/rk817-sound/rk817-sound.conf
\ No newline at end of file