Skip to content

Commit

Permalink
ASoC: max98090: Generate notifications on changes for custom control
Browse files Browse the repository at this point in the history
[ Upstream commit 13fcf67 ]

The max98090 driver has some custom controls which share a put() function
which returns 0 unconditionally, meaning that events are not generated
when the value changes. Fix that.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220420193454.2647908-2-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
broonie authored and gregkh committed May 18, 2022
1 parent ce154bd commit 31606a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/max98090.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ static int max98090_put_enab_tlv(struct snd_kcontrol *kcontrol,
mask << mc->shift,
sel << mc->shift);

return 0;
return *select != val;
}

static const char *max98090_perf_pwr_text[] =
Expand Down

0 comments on commit 31606a7

Please sign in to comment.