ASoC: cs35l41: Change monitor widgets to siggens
Subsystems (3)
PATCH 1/2 ASoC: cs35l41: Change monitor widgets to siggens
From: Charles Keepax <[email protected]>
Currently the internal monitor sources are input widgets, which means if the card is set to fully routed these will not enable unless connected to something in the machine driver. However, all these are internal monitor signals so it makes no sense to connect them to something in the machine driver. As such switch them to siggen widgets which will have the same behaviour except not require external linkage on a fully routed card.
--- sound/soc/codecs/cs35l41.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
sound/soc/codecs/cs35l41.c +7 -7
@@ -612,6 +612,12 @@ static const struct snd_soc_dapm_widget cs35l41_dapm_widgets[] = {SND_SOC_DAPM_AIF_OUT ("ASPTX3" ,NULL ,0 ,CS35L41_SP_ENABLES ,2 ,0 ),SND_SOC_DAPM_AIF_OUT ("ASPTX4" ,NULL ,0 ,CS35L41_SP_ENABLES ,3 ,0 ), +SND_SOC_DAPM_SIGGEN ("VSENSE" ), +SND_SOC_DAPM_SIGGEN ("ISENSE" ), +SND_SOC_DAPM_SIGGEN ("VP" ), +SND_SOC_DAPM_SIGGEN ("VBST" ), +SND_SOC_DAPM_SIGGEN ("TEMP" ), +SND_SOC_DAPM_ADC ("VMON ADC" ,NULL ,CS35L41_PWR_CTRL2 ,12 ,0 ),SND_SOC_DAPM_ADC ("IMON ADC" ,NULL ,CS35L41_PWR_CTRL2 ,13 ,0 ), SND_SOC_DAPM_ADC("VPMON ADC", NULL, CS35L41_PWR_CTRL2, 8, 0),
@@ -623,12 +629,6 @@ static const struct snd_soc_dapm_widget cs35l41_dapm_widgets[] = { cs35l41_main_amp_event, SND_SOC_DAPM_POST_PMD | SND_SOC_DAPM_POST_PMU), -SND_SOC_DAPM_INPUT ("VP" ), -SND_SOC_DAPM_INPUT ("VBST" ), -SND_SOC_DAPM_INPUT ("ISENSE" ), -SND_SOC_DAPM_INPUT ("VSENSE" ), -SND_SOC_DAPM_INPUT ("TEMP" ), -SND_SOC_DAPM_MUX ("ASP TX1 Source" ,SND_SOC_NOPM ,0 ,0 , &asp_tx1_mux),SND_SOC_DAPM_MUX ("ASP TX2 Source" ,SND_SOC_NOPM ,0 ,0 , &asp_tx2_mux), SND_SOC_DAPM_MUX("ASP TX3 Source", SND_SOC_NOPM, 0, 0, &asp_tx3_mux),
@@ -674,8 +674,8 @@ static const struct snd_soc_dapm_route cs35l41_audio_map[] = { {"VMON ADC", NULL, "VSENSE"}, {"IMON ADC", NULL, "ISENSE"}, {"VPMON ADC", NULL, "VP"}, - {"TEMPMON ADC", NULL, "TEMP"}, {"VBSTMON ADC", NULL, "VBST"}, + {"TEMPMON ADC", NULL, "TEMP"}, {"ASPRX1", NULL, "AMP Playback"}, {"ASPRX2", NULL, "AMP Playback"},
Signature · 1 line
2.25.1
PATCH 2/2 ASoC: cs35l41: DSP Support
Support for HALO DSP and firmware
--- sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/cs35l41-tables.c | 96 +++++++++ sound/soc/codecs/cs35l41.c | 312 +++++++++++++++++++++++++++++- sound/soc/codecs/cs35l41.h | 20 ++ 4 files changed, 426 insertions(+), 6 deletions(-)
sound/soc/codecs/Kconfig +4 -0
@@ -343,11 +343,15 @@ config SND_SOC_WM_ADSP default y if SND_SOC_WM5102=y default y if SND_SOC_WM5110=y default y if SND_SOC_WM2200=y + default y if SND_SOC_CS35L41_SPI=y + default y if SND_SOC_CS35L41_I2C=y default m if SND_SOC_MADERA=m default m if SND_SOC_CS47L24=m default m if SND_SOC_WM5102=m default m if SND_SOC_WM5110=m default m if SND_SOC_WM2200=m + default m if SND_SOC_CS35L41_SPI=m + default m if SND_SOC_CS35L41_I2C=m config SND_SOC_AB8500_CODEC tristate
sound/soc/codecs/cs35l41-tables.c +96 -0
120 lines not on this page · raw message
sound/soc/codecs/cs35l41.c +306 -6
437 lines not on this page · raw message
sound/soc/codecs/cs35l41.h +20 -0
@@ -13,9 +13,12 @@#include <linux/gpio/consumer.h> #include <linux/regmap.h> #include <linux/regulator/consumer.h> +#include <linux/firmware.h> #include <sound/core.h> #include <sound/cs35l41.h> +#include "wm_adsp.h" +#define CS35L41_FIRSTREG 0x00000000#define CS35L41_LASTREG 0x03804FE8#define CS35L41_DEVID 0x00000000
@@ -755,7 +758,24 @@ extern const struct cs35l41_otp_map_element_t#define CS35L41_REGSTRIDE 4 +enum cs35l41_cspl_mbox_status { +CSPL_MBOX_STS_RUNNING =0 , +CSPL_MBOX_STS_PAUSED =1 , +CSPL_MBOX_STS_RDY_FOR_REINIT =2 , +}; + +enum cs35l41_cspl_mbox_cmd { +CSPL_MBOX_CMD_NONE =0 , +CSPL_MBOX_CMD_PAUSE =1 , +CSPL_MBOX_CMD_RESUME =2 , +CSPL_MBOX_CMD_REINIT =3 , +CSPL_MBOX_CMD_STOP_PRE_REINIT =4 , +CSPL_MBOX_CMD_UNKNOWN_CMD =-1 , +CSPL_MBOX_CMD_INVALID_SEQUENCE =-2 , +}; +struct cs35l41_private { +struct wm_adsp dsp;/* needs to be first member */ struct snd_soc_codec *codec;struct cs35l41_platform_data pdata;struct device *dev;
Signature · 1 line
2.25.1
Re: [PATCH 2/2] ASoC: cs35l41: DSP Support
Quoted 4 lines · David Rhodes
Support for HALO DSP and firmware
Signed-off-by David Rhodes <[email protected]>---
Thanks,
Charles
Mark Brown
maintainerRe: (subset) [PATCH 1/2] ASoC: cs35l41: Change monitor widgets to siggens
In reply to David RhodesQuoted 11 lines · David Rhodes
From: Charles Keepax <[email protected]>
Currently the internal monitor sources are input widgets, which means if the card is set to fully routed these will not enable unless connected to something in the machine driver. However, all these are internal monitor signals so it makes no sense to connect them to something in the machine driver. As such switch them to siggen widgets which will have the same behaviour except not require external linkage on a fully routed card.
[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[2/2] ASoC: cs35l41: DSP Support
commit: bae9e13fc55cbc5ae25409385b2f1ba9187082d0
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark