summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/adau17x1.h
diff options
context:
space:
mode:
authorDanny Smith <dannys@axis.com>2018-04-09 15:13:35 +0200
committerMark Brown <broonie@kernel.org>2018-04-13 11:39:16 +0100
commitd0f8b9c5a350ca6fa842b52bfb88b77b34ee485b (patch)
tree2ef9c5ec2e63a2b6c9737de30662ffcae84e4458 /sound/soc/codecs/adau17x1.h
parent65030ff305bc9c51cb75705483bdaac7813778f0 (diff)
ASoC: adau17x1: Handling of DSP_RUN register during fw setup
DSP_RUN needs to be disabled during firmware write otherwise we can end up with undefined behavior if writing to a dsp which is already running firmware. 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>
Diffstat (limited to 'sound/soc/codecs/adau17x1.h')
-rw-r--r--sound/soc/codecs/adau17x1.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/adau17x1.h b/sound/soc/codecs/adau17x1.h
index a7b1cb770814..e6fe87beec07 100644
--- a/sound/soc/codecs/adau17x1.h
+++ b/sound/soc/codecs/adau17x1.h
@@ -68,7 +68,8 @@ int adau17x1_resume(struct snd_soc_component *component);
extern const struct snd_soc_dai_ops adau17x1_dai_ops;
-int adau17x1_setup_firmware(struct adau *adau, unsigned int rate);
+int adau17x1_setup_firmware(struct snd_soc_component *component,
+ unsigned int rate);
bool adau17x1_has_dsp(struct adau *adau);
#define ADAU17X1_CLOCK_CONTROL 0x4000