Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68feb6c9 authored by Deven Patel's avatar Deven Patel Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarDeven Patel <cdevenp@codeaurora.org>
parent cbac2b43
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -11728,6 +11728,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;