aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm_adsp.h
diff options
context:
space:
mode:
authorLi Xu <li.xu@cirrus.com>2019-11-15 13:54:13 -0600
committerMark Brown <broonie@kernel.org>2019-11-18 16:12:07 +0000
commiteb65ccdb083639f8a9b6919c94d1df570396a9a1 (patch)
treefe22b7d2f5f5de4e49a05599ccf811ce9bbd97f1 /sound/soc/codecs/wm_adsp.h
parentASoC: tlv320aic31xx: configure output common-mode voltage (diff)
downloadlinux-dev-eb65ccdb083639f8a9b6919c94d1df570396a9a1.tar.xz
linux-dev-eb65ccdb083639f8a9b6919c94d1df570396a9a1.zip
ASoC: wm_adsp: Expose mixer control API
Expose mixer control API for reading and writing controls from the kernel. This API can be used by ALSA kernel drivers with ADSP support to read and write firmware-defined memory regions. Signed-off-by: Li Xu <li.xu@cirrus.com> Signed-off-by: David Rhodes <david.rhodes@cirrus.com> Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/1573847653-17094-2-git-send-email-david.rhodes@cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--sound/soc/codecs/wm_adsp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index aa634ef6c9f5..4c481cf20275 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -201,5 +201,9 @@ int wm_adsp_compr_pointer(struct snd_compr_stream *stream,
struct snd_compr_tstamp *tstamp);
int wm_adsp_compr_copy(struct snd_compr_stream *stream,
char __user *buf, size_t count);
+int wm_adsp_write_ctl(struct wm_adsp *dsp, const char *name, int type,
+ unsigned int alg, void *buf, size_t len);
+int wm_adsp_read_ctl(struct wm_adsp *dsp, const char *name, int type,
+ unsigned int alg, void *buf, size_t len);
#endif