Merge "init.qcom.audio.sh: Enable AUXPCM config file for 8974 liquid"
This commit is contained in:
commit
1a62e9c6b2
|
@ -79,25 +79,45 @@ esac
|
|||
echo "The BTSOC ID is $btsoc"
|
||||
case "$btsoc" in
|
||||
"ath3k")
|
||||
echo "Setting soft links for auxpcm files"
|
||||
rm /etc/snd_soc_msm/snd_soc_msm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_mpq 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_Sitar 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_auxpcm /etc/snd_soc_msm/snd_soc_msm 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_2x_auxpcm /etc/snd_soc_msm/snd_soc_msm_2x 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_2x_mpq_auxpcm /etc/snd_soc_msm/snd_soc_msm_2x_mpq 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3_auxpcm /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_Sitar_auxpcm /etc/snd_soc_msm/snd_soc_msm_Sitar 2>/dev/null
|
||||
;;
|
||||
case "$target" in
|
||||
msm8974*)
|
||||
echo "Setting soft links for auxpcm files"
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_Taiko_liquid 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_Taiko_liquid_auxpcm /etc/snd_soc_msm/snd_soc_msm_Taiko_liquid 2>/dev/null
|
||||
;;
|
||||
msm8960*)
|
||||
echo "Setting soft links for auxpcm files"
|
||||
rm /etc/snd_soc_msm/snd_soc_msm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_mpq 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_Sitar 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_auxpcm /etc/snd_soc_msm/snd_soc_msm 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_2x_auxpcm /etc/snd_soc_msm/snd_soc_msm_2x 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_2x_mpq_auxpcm /etc/snd_soc_msm/snd_soc_msm_2x_mpq 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3_auxpcm /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 2>/dev/null
|
||||
ln -s /etc/snd_soc_msm/snd_soc_msm_Sitar_auxpcm /etc/snd_soc_msm/snd_soc_msm_Sitar 2>/dev/null
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
*)
|
||||
echo "Not setting soft links, remove Auxpcm UCM files"
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_mpq_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_Sitar_auxpcm 2>/dev/null
|
||||
case "$target" in
|
||||
msm8974*)
|
||||
echo "Not setting soft links, remove Auxpcm UCM files"
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_Taiko_liquid_auxpcm 2>/dev/null
|
||||
;;
|
||||
msm8960*)
|
||||
echo "Not setting soft links, remove Auxpcm UCM files"
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_mpq_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_2x_Fusion3_auxpcm 2>/dev/null
|
||||
rm /etc/snd_soc_msm/snd_soc_msm_Sitar_auxpcm 2>/dev/null
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in New Issue