Skip to content

Instantly share code, notes, and snippets.

@elhenro
Last active August 17, 2018 17:38
Show Gist options
  • Save elhenro/5ff9ddb4cd03f0343bdc19589a486b53 to your computer and use it in GitHub Desktop.
Save elhenro/5ff9ddb4cd03f0343bdc19589a486b53 to your computer and use it in GitHub Desktop.
=== * HiFi.conf ===
SectionVerb {
EnableSequence [
cdev "hw:sklnau8825max"
cset "name='codec1_out mo media0_in mi Switch' off"
cset "name='codec0_out mo media0_in mi Switch' on"
cset "name='DAC Oversampling Rate' 128"
cset "name='Headset Mic Switch' off"
cset "name='media0_out mo codec0_in mi Switch' off"
cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
cset "name='Pin5-Port0 Mux' 1"
cset "name='Pin6-Port0 Mux' 2"
cset "name='Pin7-Port0 Mux' 3"
]
DisableSequence [
cdev "hw:sklnau8825max"
]
Value {
TQ "HiFi"
CapturePCM "hw:sklnau8825max,1"
PlaybackPCM "hw:sklnau8825max,0"
}
}
SectionDevice."Speaker".0 {
Value {
CoupledMixers "Left Master,Right Master"
PlaybackChannels "2"
PlaybackPriority "1"
}
EnableSequence [
]
DisableSequence [
]
}
SectionDevice."Headphone".0 {
Value {
JackName "sklnau8825max Headset Jack"
PlaybackChannels "2"
PlaybackPriority "2"
}
EnableSequence [
cdev "hw:sklnau8825max"
cset "name='codec0_out mo media0_in mi Switch' off"
cset "name='codec1_out mo media0_in mi Switch' on"
cset "name='Headphone Jack Switch' on"
]
DisableSequence [
cdev "hw:sklnau8825max"
cset "name='codec0_out mo media0_in mi Switch' on"
cset "name='codec1_out mo media0_in mi Switch' off"
cset "name='Headphone Jack Switch' off"
]
}
SectionDevice."Mic".0 {
Value {
JackName "sklnau8825max Headset Jack"
}
EnableSequence [
cdev "hw:sklnau8825max"
cset "name='Headset Mic Switch' on"
cset "name='media0_out mo codec0_in mi Switch' on"
cset "name='media0_out mo dmic01_hifi_in mi Switch' off"
]
DisableSequence [
cdev "hw:sklnau8825max"
cset "name='Headset Mic Switch' off"
cset "name='media0_out mo codec0_in mi Switch' off"
cset "name='media0_out mo dmic01_hifi_in mi Switch' on"
]
}
=== * sklnau8825max.conf ===
Comment "Caroline internal card"
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Default"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment