summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/pcm512x.h
diff options
context:
space:
mode:
authorDimitris Papavasiliou <dpapavas@gmail.com>2018-11-24 23:05:42 +0300
committerMark Brown <broonie@kernel.org>2018-12-13 20:43:16 +0300
commit3500f1c589e92e0b6b1f8d31b4084fbde08d49cb (patch)
tree93dbd7ea91d2363c05305cbcdc78bc08ebe69f55 /sound/soc/codecs/pcm512x.h
parent165be3c260f88a5f8c55d89458ad1f1d9efd701f (diff)
downloadlinux-3500f1c589e92e0b6b1f8d31b4084fbde08d49cb.tar.xz
ASoC: pcm512x: Implement the digital_mute interface
Clicks and pops of various volumes can be produced while the device is opened, closed, put into and taken out of standby, or reconfigured. Fix this, by implementing the digital_mute interface, so that the output is muted during such operations. Signed-off-by: Dimitris Papavasiliou <dpapavas@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/pcm512x.h')
-rw-r--r--sound/soc/codecs/pcm512x.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/pcm512x.h b/sound/soc/codecs/pcm512x.h
index d70d9c0c2088..9dda8693498e 100644
--- a/sound/soc/codecs/pcm512x.h
+++ b/sound/soc/codecs/pcm512x.h
@@ -112,7 +112,9 @@
#define PCM512x_RQST_SHIFT 4
/* Page 0, Register 3 - mute */
+#define PCM512x_RQMR (1 << 0)
#define PCM512x_RQMR_SHIFT 0
+#define PCM512x_RQML (1 << 4)
#define PCM512x_RQML_SHIFT 4
/* Page 0, Register 4 - PLL */