提交 7ce4283c 编写于 作者: C Charles Keepax 提交者: Mark Brown

ASoC: wm_adsp: Add debug audio trace firmware

The audio trace firmware allows the capture of arbitrary streams of
audio from the DSP and commonly used for debugging other firmwares. This
patch adds support for this firwmare into the ADSP driver.
Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 e6d00f34
...@@ -367,6 +367,24 @@ static const struct wm_adsp_fw_caps ctrl_caps[] = { ...@@ -367,6 +367,24 @@ static const struct wm_adsp_fw_caps ctrl_caps[] = {
}, },
}; };
static const struct wm_adsp_fw_caps trace_caps[] = {
{
.id = SND_AUDIOCODEC_BESPOKE,
.desc = {
.max_ch = 8,
.sample_rates = {
4000, 8000, 11025, 12000, 16000, 22050,
24000, 32000, 44100, 48000, 64000, 88200,
96000, 176400, 192000
},
.num_sample_rates = 15,
.formats = SNDRV_PCM_FMTBIT_S16_LE,
},
.num_regions = ARRAY_SIZE(default_regions),
.region_defs = default_regions,
},
};
static const struct { static const struct {
const char *file; const char *file;
int compr_direction; int compr_direction;
...@@ -386,7 +404,12 @@ static const struct { ...@@ -386,7 +404,12 @@ static const struct {
.caps = ctrl_caps, .caps = ctrl_caps,
}, },
[WM_ADSP_FW_ASR] = { .file = "asr" }, [WM_ADSP_FW_ASR] = { .file = "asr" },
[WM_ADSP_FW_TRACE] = { .file = "trace" }, [WM_ADSP_FW_TRACE] = {
.file = "trace",
.compr_direction = SND_COMPRESS_CAPTURE,
.num_caps = ARRAY_SIZE(trace_caps),
.caps = trace_caps,
},
[WM_ADSP_FW_SPK_PROT] = { .file = "spk-prot" }, [WM_ADSP_FW_SPK_PROT] = { .file = "spk-prot" },
[WM_ADSP_FW_MISC] = { .file = "misc" }, [WM_ADSP_FW_MISC] = { .file = "misc" },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册