ASoC: adau17x1: Do not reload dsp-fw if samplerate has not changed
authorDanny Smith <dannys@axis.com>
Mon, 9 Apr 2018 13:13:36 +0000 (15:13 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 16 Apr 2018 11:58:54 +0000 (12:58 +0100)
commit728815e3feec751769b3a9fe406fbc529de7cdc0
tree31ebc9dc8a143f0b1282b31ed56170be573bb97e
parent953de782cccf7a84e8a20cea72aea2a056fea3bf
ASoC: adau17x1: Do not reload dsp-fw if samplerate has not changed

Reloading fw causes an audiable popping sound, we can avoid this
by not reloading if the samplerate is the same as before.

Signed-off-by: Danny Smith <dannys@axis.com>
Signed-off-by: Robert Rosengren <robert.rosengren@axis.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau17x1.c