From ef38c2f7b9279cfb8e4874f41756c2cb4337a8ec Mon Sep 17 00:00:00 2001 From: Santosh Mardi Date: Thu, 8 Nov 2012 14:39:06 +0530 Subject: [PATCH] init.qcom.audio.sh: Enable AUXPCM config file for MPQ Enable audio script to use AUXPCM config file for following condition, if target is apq and soc id is 130 (MPQ) and BTSOC is wc2324. Change-Id: Ia89d397030ba0933cb7f6a448ecec90ea5d1b0ce --- rootdir/etc/init.qcom.audio.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/rootdir/etc/init.qcom.audio.sh b/rootdir/etc/init.qcom.audio.sh index 1eefa815..08384db7 100755 --- a/rootdir/etc/init.qcom.audio.sh +++ b/rootdir/etc/init.qcom.audio.sh @@ -31,6 +31,7 @@ target="$1" btsoc="$2" +soc_hwid=`cat /sys/devices/system/soc/soc0/id` # No path is set up at this point so we have to do it here. PATH=/sbin:/system/sbin:/system/bin:/system/xbin @@ -44,6 +45,34 @@ case "$target" in ;; esac +case "$target" in + msm8960*) + echo "The TARGET ID is $target" + case $soc_hwid in + "130") + echo "The BTSOC ID is $btsoc" + 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 + setprop qcom.audio.init complete + exit 0 + ;; + *) + ;; + esac + ;; +*) + ;; +esac + echo "The BTSOC ID is $btsoc" case "$btsoc" in "ath3k")