Martin Povišer 330f0a552b ASoC: tas2770: Fix handling of mute/unmute
commit 1e5907bcb3a3b569be0a03ebe668bba2ed320a50 upstream.

Because the PWR_CTRL field is modeled as the power state of the DAC
widget, and at the same time it is used to implement mute/unmute, we
need some additional book-keeping to have the right end result no matter
the sequence of calls. Without this fix, one can mute an ongoing stream
by toggling a speaker pin control.

Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA kernel driver")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220808141246.5749-5-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-25 11:38:05 +02:00
..
2021-03-25 09:04:04 +01:00
2021-05-14 09:50:38 +02:00
2018-02-27 10:41:34 +00:00
2020-01-07 22:29:38 +00:00
2018-04-26 12:44:15 +01:00
2020-03-23 18:17:22 +00:00
2020-01-10 13:31:49 +00:00
2020-01-09 21:22:36 +00:00
2020-09-10 12:49:44 +01:00
2020-05-07 13:18:04 +01:00
2020-05-07 13:18:04 +01:00
2019-07-26 13:10:09 +01:00
2018-05-18 11:20:11 +01:00
2018-06-01 12:05:30 +01:00
2020-07-20 15:34:29 +01:00
2022-07-21 21:20:15 +02:00
2020-10-02 21:05:29 +01:00
2020-05-04 19:23:59 +01:00
2020-05-26 10:55:37 +01:00