summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorShenghao Ding <shenghao-ding@ti.com>2024-06-14 21:36:45 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-03 08:53:57 +0200
commit417fb74fa7920029a4907e343d975762e50e7cc3 (patch)
tree3b462b0461f7930b634f5839cd3c2c254df08256 /include/sound
parent93090f08cf7a56bfde4696e5c635c31325b13d24 (diff)
downloadlinux-417fb74fa7920029a4907e343d975762e50e7cc3.tar.gz
linux-417fb74fa7920029a4907e343d975762e50e7cc3.tar.bz2
linux-417fb74fa7920029a4907e343d975762e50e7cc3.zip
ASoc: tas2781: Enable RCA-based playback without DSP firmware download
[ Upstream commit 9f774c757e3fb2ac32dc4377e8f21f3364a8df81 ] In only loading RCA (Reconfigurable Architecture) binary case, no DSP program will be working inside tas2563/tas2781, that is dsp-bypass mode, do not support speaker protection, or audio acoustic algorithms in this mode. Fixes: ef3bcde75d06 ("ASoC: tas2781: Add tas2781 driver") Signed-off-by: Shenghao Ding <shenghao-ding@ti.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://msgid.link/r/20240614133646.910-1-shenghao-ding@ti.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/tas2781-dsp.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/sound/tas2781-dsp.h b/include/sound/tas2781-dsp.h
index 4ef0f5c6fe6c..af3319dab230 100644
--- a/include/sound/tas2781-dsp.h
+++ b/include/sound/tas2781-dsp.h
@@ -112,10 +112,17 @@ struct tasdevice_fw {
struct device *dev;
};
-enum tasdevice_dsp_fw_state {
- TASDEVICE_DSP_FW_NONE = 0,
+enum tasdevice_fw_state {
+ /* Driver in startup mode, not load any firmware. */
TASDEVICE_DSP_FW_PENDING,
+ /* DSP firmware in the system, but parsing error. */
TASDEVICE_DSP_FW_FAIL,
+ /*
+ * Only RCA (Reconfigurable Architecture) firmware load
+ * successfully.
+ */
+ TASDEVICE_RCA_FW_OK,
+ /* Both RCA and DSP firmware load successfully. */
TASDEVICE_DSP_FW_ALL_OK,
};