ASoC: Tegra: Fix device switching during BT voice call
Ravindra Lokhande [Mon, 29 Apr 2013 14:15:03 +0000 (19:15 +0530)]
In BT voice call when device is switched to speaker or wired headset
kernel crash is observed. This change fixes this crash issue

Change-Id: If326240a29c2d0554cfab774291571151daa7ded
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/223890
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

sound/soc/tegra/tegra_aic325x.c

index bb832f4..957e283 100644 (file)
@@ -784,7 +784,7 @@ static void tegra_aic325x_voice_call_shutdown(
        machine->codec_info[HIFI_CODEC].rate = 0;
        machine->codec_info[HIFI_CODEC].channels = 0;
 
-       machine->is_device_bt = 0;
+       return;
 }
 
 static int tegra_aic325x_bt_voice_call_hw_params(
@@ -837,7 +837,7 @@ static void tegra_aic325x_bt_voice_call_shutdown(
        machine->codec_info[BT_SCO].rate = 0;
        machine->codec_info[BT_SCO].channels = 0;
 
-       machine->is_device_bt = 0;
+       return;
 }
 
 static struct snd_soc_ops tegra_aic325x_hifi_ops = {