From 40503be4e2656ba2ffc1f4e087087694328fe254 Mon Sep 17 00:00:00 2001 From: Viswanath L Date: Fri, 25 Jul 2014 13:09:31 +0530 Subject: ASoC:Tegra: AHUB connection for BT voice call Provide unconditional DL path for BT voice call Bug 200021925 Change-Id: I9beec87d9d672ddbe946417aed0f393c01a6b29c Signed-off-by: Viswanath L Reviewed-on: http://git-master/r/447503 Reviewed-by: Alvin Park Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Gabby Lee --- sound/soc/tegra/tegra30_i2s.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index 16dce5c0aaa7..dafa9a461016 100644 --- a/sound/soc/tegra/tegra30_i2s.c +++ b/sound/soc/tegra/tegra30_i2s.c @@ -1571,12 +1571,9 @@ int tegra30_make_bt_voice_call_connections(struct codec_config *codec_info, /*make ahub connections*/ - /*if this is the only user of i2s tx, make i2s rx connection*/ - if (codec_i2s->playback_ref_count == 1) { - tegra30_ahub_set_rx_cif_source( - TEGRA30_AHUB_RXCIF_I2S0_RX0 + codec_info->i2s_id, - TEGRA30_AHUB_TXCIF_DAM0_TX0 + codec_i2s->dam_ifc); - } + tegra30_ahub_set_rx_cif_source(TEGRA30_AHUB_RXCIF_I2S0_RX0 + + codec_info->i2s_id, TEGRA30_AHUB_TXCIF_DAM0_TX0 + + codec_i2s->dam_ifc); tegra30_ahub_set_rx_cif_source(TEGRA30_AHUB_RXCIF_I2S0_RX0 + bb_info->i2s_id, TEGRA30_AHUB_TXCIF_DAM0_TX0 + @@ -1723,11 +1720,9 @@ int tegra30_break_bt_voice_call_connections(struct codec_config *codec_info, tegra30_dam_free_controller(codec_i2s->dam_ifc); /* Disconnect the ahub connections */ - /* If this is the only user of i2s tx then break ahub - i2s rx connection */ - if (codec_i2s->playback_ref_count == 1) - tegra30_ahub_unset_rx_cif_source( - TEGRA30_AHUB_RXCIF_I2S0_RX0 + codec_info->i2s_id); + + tegra30_ahub_unset_rx_cif_source(TEGRA30_AHUB_RXCIF_I2S0_RX0 + + codec_info->i2s_id); tegra30_ahub_unset_rx_cif_source(TEGRA30_AHUB_RXCIF_I2S0_RX0 + bb_info->i2s_id); -- cgit v1.2.3