--- /dev/null
+<searchdir:ucm>
+
+SectionVerb {
+
+ Value {
+ TQ "HiFi"
+ # ALSA PCM device for HiFi
+ PlaybackPCM "hw:chtnau8824"
+ CapturePCM "hw:chtnau8824"
+ }
+
+ EnableSequence [
+ cdev "hw:chtnau8824"
+ <bytcr/PlatformEnableSeq.conf>
+ <nau8824/EnableSeq.conf>
+ ]
+
+ DisableSequence [
+ cdev "hw:chtnau8824"
+ <bytcr/PlatformDisableSeq.conf>
+ ]
+}
+
+<nau8824/Speaker.conf>
+<nau8824/HeadPhones.conf>
+
+<nau8824/InternalMic.conf>
+<nau8824/HeadsetMic.conf>
--- /dev/null
+Comment "chtnau8824 internal card"
+
+SectionUseCase."HiFi" {
+ File "HiFi.conf"
+ Comment "Default"
+}
--- /dev/null
+# Playback TDM configuration
+cset "name='DACL Channel Source' 0"
+cset "name='DACR Channel Source' 1"
+# Input Configuration
+cset "name='DMIC1 Enable Switch' off"
+cset "name='DMIC2 Enable Switch' off"
+cset "name='DMIC3 Enable Switch' off"
+cset "name='DMIC4 Enable Switch' off"
+cset "name='MIC1 Volume' 10"
+cset "name='MIC2 Volume' 10"
+# Button Configuration
+cset "name='THD for key media' 10"
+cset "name='THD for key voice command' 16"
+cset "name='THD for key volume up' 38"
+cset "name='THD for key volume down' 115"
--- /dev/null
+SectionDevice."Headphones" {
+ Comment "Headphones"
+
+ Value {
+ PlaybackChannels "2"
+ JackControl "Headphone Jack"
+ }
+
+ ConflictingDevice [
+ "MonoSpeaker"
+ "Speaker"
+ ]
+
+ EnableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='Headphone Switch' on"
+ ]
+
+ DisableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='Headphone Switch' off"
+ ]
+}
--- /dev/null
+SectionDevice."HeadsetMic" {
+ Comment "Headset Microphone"
+
+ Value {
+ CaptureChannels "2"
+ JackControl "Headset Mic Jack"
+ }
+
+ ConflictingDevice [
+ "InternalMic"
+ ]
+
+ EnableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='ADC CH0 Select' 1"
+ cset "name='ADC CH1 Select' 1"
+
+ cset "name='Headset Mic Switch' on"
+ cset "name='Right ADC HSMIC Switch' on"
+ cset "name='Left ADC HSMIC Switch' on"
+ ]
+
+ DisableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='Headset Mic Switch' off"
+ cset "name='Right ADC HSMIC Switch' off"
+ cset "name='Left ADC HSMIC Switch' off"
+ ]
+}
--- /dev/null
+SectionDevice."InternalMic" {
+ Comment "Internal Microphone"
+
+ Value {
+ CaptureChannels "2"
+ CapturePriority "150"
+ }
+
+ ConflictingDevice [
+ "HeadsetMic"
+ ]
+
+ EnableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='ADC CH0 Select' 0"
+ cset "name='ADC CH1 Select' 0"
+
+ cset "name='Int Mic Switch' on"
+ cset "name='Right ADC MIC Switch' on"
+ cset "name='Left ADC MIC Switch' on"
+ ]
+
+ DisableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='Int Mic Switch' off"
+ cset "name='Right ADC MIC Switch' off"
+ cset "name='Left ADC MIC Switch' off"
+ ]
+}
--- /dev/null
+SectionDevice."MonoSpeaker" {
+ Comment "Mono Speaker"
+
+ Value {
+ PlaybackChannels "2"
+ }
+
+ ConflictingDevice [
+ "Speaker"
+ "Headphones"
+ ]
+
+ EnableSequence [
+ cdev "hw:chtnau8824"
+
+ # nau8824 mono speaker boards have the speaker on the right chan
+ cset "name='Speaker Left DACL Volume' 0"
+ cset "name='Speaker Left DACR Volume' 0"
+ cset "name='Speaker Right DACL Volume' 1"
+ cset "name='Speaker Right DACR Volume' 1"
+ cset "name='Ext Spk Switch' on"
+ ]
+
+ DisableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='Ext Spk Switch' off"
+ ]
+}
--- /dev/null
+SectionDevice."Speaker" {
+ Comment "Speaker"
+
+ Value {
+ PlaybackChannels "2"
+ }
+
+ ConflictingDevice [
+ "MonoSpeaker"
+ "Headphones"
+ ]
+
+ EnableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='Speaker Left DACL Volume' 1"
+ cset "name='Speaker Left DACR Volume' 0"
+ cset "name='Speaker Right DACL Volume' 0"
+ cset "name='Speaker Right DACR Volume' 1"
+ cset "name='Ext Spk Switch' on"
+ ]
+
+ DisableSequence [
+ cdev "hw:chtnau8824"
+
+ cset "name='Ext Spk Switch' off"
+ ]
+}