HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/share/alsa/ucm2/sof-soundwire/rt1316-1.conf
# Use case Configuration for sof-soundwire card

SectionDevice."Speaker" {
	Comment	"Speaker"

	If.lrswitch {
		Condition {
			Type ControlExists
			Control "name='rt1316-1 DAC L Switch'"
		}
		True {
			EnableSequence [
				cset "name='rt1316-1 DAC L Switch' 1"
				cset "name='rt1316-1 DAC R Switch' 1"
				cset "name='Speaker Switch' on"
			]

			DisableSequence [
				cset "name='rt1316-1 DAC L Switch' 0"
				cset "name='rt1316-1 DAC R Switch' 0"
				cset "name='Speaker Switch' off"
			]
		}
		False {
			EnableSequence [
				cset "name='rt1316-1 DAC Switch' 1"
				cset "name='Speaker Switch' on"
			]

			DisableSequence [
				cset "name='rt1316-1 DAC Switch' 0"
				cset "name='Speaker Switch' off"
			]
		}
	}

	Value {
	      PlaybackPriority 100
	      PlaybackPCM "hw:${CardId},2"
	}
}