sof-rt5682: Support cml being speical
parent
c90948fe88
commit
20cd1b1d63
|
@ -1,9 +1,18 @@
|
|||
If.custompcm {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "$${var:max98357apcm}"
|
||||
}
|
||||
False.Define.pcm ${var:max98357apcm}
|
||||
True.Define.pcm 0
|
||||
}
|
||||
|
||||
SectionDevice."Speaker" {
|
||||
Comment "Speaker"
|
||||
|
||||
Value {
|
||||
PlaybackPriority 100
|
||||
PlaybackPCM "hw:${CardId},0"
|
||||
PlaybackPCM "hw:${CardId},${var:pcm}"
|
||||
}
|
||||
EnableSequence [
|
||||
cset "name='Spk Switch' on"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# TODO: deal with the pcm numbers on cml being different
|
||||
|
||||
# headset codecs
|
||||
|
||||
If.rt5682 {
|
||||
|
|
|
@ -7,7 +7,8 @@ If.cml {
|
|||
String2 "Google_Hatch"
|
||||
}
|
||||
True {
|
||||
Define.cml y
|
||||
Define.max98357apcm 5
|
||||
Define.rt5682pcm 0
|
||||
Define.dmicpcm 1
|
||||
Define.hdmi hdmi234
|
||||
}
|
||||
|
@ -20,7 +21,6 @@ If.tgl {
|
|||
String2 "Google_Volteer"
|
||||
}
|
||||
True {
|
||||
Define.tgl y
|
||||
Define.dmicpcm 99
|
||||
Define.hdmi hdmi2345
|
||||
}
|
||||
|
@ -34,7 +34,6 @@ If.jsl {
|
|||
String "$${sys:class/dmi/id/product_name}"
|
||||
}
|
||||
True {
|
||||
Define.jsl y
|
||||
Define.dmicpcm 5
|
||||
Define.hdmi hdmi234
|
||||
}
|
||||
|
@ -47,7 +46,6 @@ If.adl {
|
|||
String "$${sys:class/dmi/id/product_family}"
|
||||
}
|
||||
True {
|
||||
Define.adl y
|
||||
Define.dmicpcm 99
|
||||
Define.hdmi hdmi2345
|
||||
}
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
If.custompcm {
|
||||
Condition {
|
||||
Type String
|
||||
Empty "$${var:rt5682pcm}"
|
||||
}
|
||||
False.Define.pcm ${var:rt5682pcm}
|
||||
True.Define.pcm 1
|
||||
}
|
||||
|
||||
SectionDevice."Headphones" {
|
||||
Comment "Headphones"
|
||||
|
||||
Value {
|
||||
PlaybackPriority 200
|
||||
PlaybackPCM "hw:${CardId},1"
|
||||
PlaybackPCM "hw:${CardId},${var:pcm}"
|
||||
PlaybackMixerElem "DAC1"
|
||||
JackControl "Headphone Jack"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue