Skip to content

Commit 70408f7

Browse files
pujarsbroonie
authored andcommitted
ASoC: tegra: Balance runtime PM count
After successful application of volume/mute settings via mixer control put calls, the control returns without balancing the runtime PM count. This makes device to be always runtime active. Fix this by allowing control to reach pm_runtime_put() call. Fixes: e539891 ("ASoC: tegra: Add Tegra210 based MVC driver") Cc: stable@vger.kernel.org Signed-off-by: Sameer Pujar <spujar@nvidia.com> Link: https://lore.kernel.org/r/1637676459-31191-2-git-send-email-spujar@nvidia.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 12dc48f commit 70408f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/tegra/tegra210_mvc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static int tegra210_mvc_put_mute(struct snd_kcontrol *kcontrol,
164164
if (err < 0)
165165
goto end;
166166

167-
return 1;
167+
err = 1;
168168

169169
end:
170170
pm_runtime_put(cmpnt->dev);
@@ -236,7 +236,7 @@ static int tegra210_mvc_put_vol(struct snd_kcontrol *kcontrol,
236236
TEGRA210_MVC_VOLUME_SWITCH_MASK,
237237
TEGRA210_MVC_VOLUME_SWITCH_TRIGGER);
238238

239-
return 1;
239+
err = 1;
240240

241241
end:
242242
pm_runtime_put(cmpnt->dev);

0 commit comments

Comments
 (0)