Skip to content

Commit 13fcf67

Browse files
committed
ASoC: max98090: Generate notifications on changes for custom control
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2fbe467 commit 13fcf67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/max98090.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ static int max98090_put_enab_tlv(struct snd_kcontrol *kcontrol,
430430
mask << mc->shift,
431431
sel << mc->shift);
432432

433-
return 0;
433+
return *select != val;
434434
}
435435

436436
static const char *max98090_perf_pwr_text[] =

0 commit comments

Comments
 (0)