aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-08 02:25:58 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-29 13:58:02 -0400
commitdd84f9259bfe8454ee7c9e6faf6ac13f45bb1ed2 (patch)
tree5e2f29c552f67159b497fcb43abec6027927c09b
parentf395a21853935ab7a2d0d760cda206ae55300194 (diff)
ASoC: wm_adsp: Provide defines for firmwares
For future work to have specific handling for some firmwares. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/wm_adsp.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index febb4c76535e..68eda929fbde 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -193,17 +193,25 @@ static void wm_adsp_buf_free(struct list_head *list)
193 193
194#define WM_ADSP_NUM_FW 4 194#define WM_ADSP_NUM_FW 4
195 195
196#define WM_ADSP_FW_MBC_VSS 0
197#define WM_ADSP_FW_TX 1
198#define WM_ADSP_FW_TX_SPK 2
199#define WM_ADSP_FW_RX_ANC 3
200
196static const char *wm_adsp_fw_text[WM_ADSP_NUM_FW] = { 201static const char *wm_adsp_fw_text[WM_ADSP_NUM_FW] = {
197 "MBC/VSS", "Tx", "Tx Speaker", "Rx ANC" 202 [WM_ADSP_FW_MBC_VSS] = "MBC/VSS",
203 [WM_ADSP_FW_TX] = "Tx",
204 [WM_ADSP_FW_TX_SPK] = "Tx Speaker",
205 [WM_ADSP_FW_RX_ANC] = "Rx ANC",
198}; 206};
199 207
200static struct { 208static struct {
201 const char *file; 209 const char *file;
202} wm_adsp_fw[WM_ADSP_NUM_FW] = { 210} wm_adsp_fw[WM_ADSP_NUM_FW] = {
203 { .file = "mbc-vss" }, 211 [WM_ADSP_FW_MBC_VSS] = { .file = "mbc-vss" },
204 { .file = "tx" }, 212 [WM_ADSP_FW_TX] = { .file = "tx" },
205 { .file = "tx-spk" }, 213 [WM_ADSP_FW_TX_SPK] = { .file = "tx-spk" },
206 { .file = "rx-anc" }, 214 [WM_ADSP_FW_RX_ANC] = { .file = "rx-anc" },
207}; 215};
208 216
209static int wm_adsp_fw_get(struct snd_kcontrol *kcontrol, 217static int wm_adsp_fw_get(struct snd_kcontrol *kcontrol,