4266e41791
Signed-off-by: Caleb Connolly <caleb@connolly.tech>
22 lines
801 B
Text
22 lines
801 B
Text
_dt_compatible="$(cat /sys/firmware/devicetree/base/compatible | \
|
|
tr '\0' '|' | cut -d'|' -f1)"
|
|
|
|
# Set q6voice_card and q6voice_device based on compatible string
|
|
# shift,axolotl: q6voice_card=0, q6voice_device=12
|
|
# oneplus,enchilada: q6voice_card=0, q6voice_device=6
|
|
# oneplus,fajita: q6voice_card=0, q6voice_device=6
|
|
# xiaomi,beryllium: q6voice_card=0, q6voice_device=4
|
|
case "$_dt_compatible" in
|
|
"shift,axolotl")
|
|
q6voice_card=0
|
|
q6voice_device=12
|
|
;;
|
|
"oneplus,enchilada"|"oneplus,fajita")
|
|
q6voice_card=0
|
|
q6voice_device=6
|
|
;;
|
|
"xiaomi,beryllium-tianma"|"xiaomi,beryllium-ebbg")
|
|
q6voice_card=0
|
|
q6voice_device=4
|
|
;;
|
|
esac
|