OSDN Git Service

ASoC: wm_adsp: Make DSP name configurable by codec driver
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 8 Aug 2018 16:13:39 +0000 (17:13 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 8 Aug 2018 16:32:29 +0000 (17:32 +0100)
commit605391d0f4bfdff2f2c6c5477ce0ccf776d8d5c0
tree02023ce3b25af91a2725dac7489d40b0542200dd
parent35ef57a4190d4253b73720cf0402158eda0f1bc8
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>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h