diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-05-14 11:20:00 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-18 05:46:55 +0200 |
commit | b0b80c8075add488ca2632393670da31b174195d (patch) | |
tree | 56a2ca72069cfd032ad37650ff912e26e826fb9f /sound/soc/codecs/max98090.c | |
parent | ASoC: max98088: Replace direct snd_soc_codec dapm field access (diff) | |
download | linux-b0b80c8075add488ca2632393670da31b174195d.tar.xz linux-b0b80c8075add488ca2632393670da31b174195d.zip |
ASoC: max98090: Remove unnecessary snd_soc_dapm_sync()
max98090_jack_work() doesn't modify the DAPM graph other than what's done
in snd_soc_jack_report(). snd_soc_jack_report() already calls
snd_soc_dapm_sync() internally, so there is no need to call it manually
and can be removed.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98090.c')
-rw-r--r-- | sound/soc/codecs/max98090.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index c5736b2f7c76..5a0bd8a0c9e9 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2186,7 +2186,6 @@ static void max98090_jack_work(struct work_struct *work) struct max98090_priv, jack_work.work); struct snd_soc_codec *codec = max98090->codec; - struct snd_soc_dapm_context *dapm = &codec->dapm; int status = 0; int reg; @@ -2265,8 +2264,6 @@ static void max98090_jack_work(struct work_struct *work) snd_soc_jack_report(max98090->jack, status, SND_JACK_HEADSET | SND_JACK_BTN_0); - - snd_soc_dapm_sync(dapm); } static irqreturn_t max98090_interrupt(int irq, void *data) |