forked from alsa-project/alsa-ucm-conf
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7be751
commit fd175b2
Showing
16 changed files
with
223 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# NAU8825 specific volume control settings | ||
|
||
BootSequence [ | ||
cset "name='Mic Volume' 230" | ||
cset "name='Frontend PGA Volume' 24" | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,25 @@ | ||
SectionVerb { | ||
} | ||
# Stock firmware exposes a 4ch dmic while MrChromebox firmware exposes a 2ch dmic for windows support | ||
# Stock firmware version string includes "Google_<board>" while MrChromebox firmware string is "MrChromebox-<version>" | ||
|
||
If.4ch { | ||
Condition { | ||
Type String | ||
Haystack "${sys:devices/virtual/dmi/id/bios_version}" | ||
Needle "Google" | ||
} | ||
True { | ||
SectionDevice."Internal Mic" { | ||
Comment "Internal Microphone" | ||
True.Define.DmicChannels 4 | ||
False.Define.DmicChannels 2 | ||
} | ||
|
||
Value { | ||
CapturePriority 100 | ||
CapturePCM "hw:${CardId},2" | ||
CaptureChannels 4 | ||
} | ||
If.dspvol { | ||
Condition { | ||
Type ControlExists | ||
Control "name='DMIC FE DMIC Volume'" | ||
} | ||
True { | ||
EnableSequence [ | ||
cset "name='DMIC FE DMIC Volume' 2147483647" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
False { | ||
SectionDevice."Internal Mic" { | ||
Comment "Internal Microphone" | ||
SectionDevice."Internal Mic" { | ||
Comment "Internal Microphone" | ||
|
||
Value { | ||
CapturePriority 100 | ||
CapturePCM "hw:${CardId},2" | ||
CaptureChannels 2 | ||
} | ||
If.dspvol { | ||
Condition { | ||
Type ControlExists | ||
Control "name='DMIC FE DMIC Volume'" | ||
} | ||
True { | ||
EnableSequence [ | ||
cset "name='DMIC FE DMIC Volume' 2147483647" | ||
] | ||
} | ||
} | ||
} | ||
Value { | ||
CapturePriority 100 | ||
CapturePCM "hw:${CardId},2" | ||
CaptureChannels "${var:DmicChannels}" | ||
} | ||
EnableSequence [ | ||
cset "name='DMIC Volume' 2147483647" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
SectionDevice."Mic" { | ||
Comment "Internal Microphone" | ||
|
||
Value { | ||
CapturePCM "hw:${CardId},1" | ||
CaptureChannels 4 | ||
} | ||
EnableSequence [ | ||
cset "name='Sto1 ADC MIXL DMIC Switch' on" | ||
cset "name='Sto1 ADC MIXR DMIC Switch' on" | ||
cset "name='Sto2 ADC MIXL DMIC Switch' on" | ||
cset "name='Sto2 ADC MIXR DMIC Switch' on" | ||
] | ||
DisableSequence [ | ||
cset "name='Sto1 ADC MIXL DMIC Switch' off" | ||
cset "name='Sto1 ADC MIXR DMIC Switch' off" | ||
cset "name='Sto2 ADC MIXL DMIC Switch' off" | ||
cset "name='Sto2 ADC MIXR DMIC Switch' off" | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Syntax 6 | ||
|
||
SectionUseCase."HiFi" { | ||
File "HiFi.conf" | ||
} | ||
|
||
BootSequence [ | ||
cset "name='ADC1 Capture Volume' 55" | ||
cset "name='ADC2 Capture Volume' 55" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Syntax 6 | ||
|
||
SectionUseCase."HiFi" { | ||
File "HiFi.conf" | ||
Comment "Default" | ||
} | ||
|
||
Include.codec-init.File "/codecs/da7219/init.conf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
Syntax 6 | ||
|
||
If.osiris { | ||
Condition { | ||
Type String | ||
Haystack "${sys:devices/virtual/dmi/id/product_name}" | ||
Needle "Osiris" | ||
} | ||
True.SectionUseCase."HiFi" { | ||
File "HiFi.osiris.conf" | ||
Comment "Default" | ||
} | ||
SectionUseCase."HiFi" { | ||
File "HiFi.conf" | ||
Comment "Default" | ||
} | ||
|
||
If.kano { | ||
Include.platform.File "/platforms/intel-sof/platform.conf" | ||
Include.codec.File "/platforms/intel-sof/codecs.conf" | ||
Include.codec-init.File "/codecs/nau8825/init.conf" | ||
|
||
If.max98373 { | ||
Condition { | ||
Type String | ||
Haystack "${sys:devices/virtual/dmi/id/product_name}" | ||
Needle "Kano" | ||
} | ||
True.SectionUseCase."HiFi" { | ||
File "HiFi.kano.conf" | ||
Comment "Default" | ||
Empty "$${var:max98373}" | ||
} | ||
False.Include.max98373-init.File "/codecs/max98373/init.conf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.