summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm_adsp.h
diff options
context:
space:
mode:
authorRichard Fitzgerald2018-08-08 18:13:39 +0200
committerMark Brown2018-08-08 18:32:29 +0200
commit605391d0f4bfdff2f2c6c5477ce0ccf776d8d5c0 (patch)
tree02023ce3b25af91a2725dac7489d40b0542200dd /sound/soc/codecs/wm_adsp.h
parentMerge branch 'asoc-4.18' into asoc-4.19 wmadsp dep (diff)
downloadkernel-qcow2-linux-605391d0f4bfdff2f2c6c5477ce0ccf776d8d5c0.tar.gz
kernel-qcow2-linux-605391d0f4bfdff2f2c6c5477ce0ccf776d8d5c0.tar.xz
kernel-qcow2-linux-605391d0f4bfdff2f2c6c5477ce0ccf776d8d5c0.zip
ASoC: wm_adsp: Make DSP name configurable by codec driver
Instead of harcoding that a core must always be called "DSPn" add a name member to struct wm_adsp so that the owning codec driver can provide a custom name. This allows for re-use of the wm_adsp driver with parts where the processing cores are named differently. If no name is provided the default DSPn name is used. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.h')
-rw-r--r--sound/soc/codecs/wm_adsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 8d58cb9d9bb9..4b8778b0b06c 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -57,6 +57,8 @@ struct wm_adsp_compr_buf;
struct wm_adsp {
const char *part;
+ const char *name;
+ const char *fwf_name;
int rev;
int num;
int type;