diff options
author | Deven Patel <cdevenp@codeaurora.org> | 2015-12-04 17:31:11 -0800 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:13:43 -0700 |
commit | 8b7a1ee3b5af59c0fd5262bc8517b602a8ba754e (patch) | |
tree | 7e0d23defd36307790156791bc3acf0d060e3857 /sound/soc/codecs | |
parent | d1fcd1dbe8bd92f1daf75215bcd3909e6aca8be4 (diff) |
ASoC: codecs: Skip bandwidth voting for I2C interface
For audio usecases bus bandwidth voting is required only for
slimbus. Add the check to gracefully handle I2C cases.
Change-Id: I4dcbd0e6a84f8ca9f5429ed0ec0b4795e591981d
Signed-off-by: Deven Patel <cdevenp@codeaurora.org>
Diffstat (limited to 'sound/soc/codecs')
-rwxr-xr-x | sound/soc/codecs/wcd9335.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 14c58df61614..f4992acb5468 100755 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -11958,6 +11958,10 @@ static int tasha_codec_vote_max_bw(struct snd_soc_codec *codec, bool vote) { u32 bw_ops; + struct tasha_priv *tasha = snd_soc_codec_get_drvdata(codec); + + if (tasha->intf_type == WCD9XXX_INTERFACE_TYPE_I2C) + return 0; if (vote) bw_ops = SLIM_BW_CLK_GEAR_9; |