ASoC: codecs: es*: controls that write each other's bits
v2 cover ASoC: codecs: es*: controls that write each other's bits
Both the Kcontrols for the ES8326 and ES8375 have an issue where they write to other bits. This patch will fix that issue.
v2 -> v1:
-Add Fixes and Reviewed-by tags. No code changes.
Zhang Yi (2):
ASoC: codecs: es*: Modify the registers related to ALC RECOVERY
ASoC: codecs: es*: Modify the maximum value of DMIC_GAIN
sound/soc/codecs/es8326.c | 2 +- sound/soc/codecs/es8375.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
PATCH v2 1/2 ASoC: codecs: es*: Modify the registers related to ALC RECOVERY
The register related to "ALC Capture Recovery Level" is ES8326_ALC_RECOVERY, not ES8326_ALC_LEVEL.
--- sound/soc/codecs/es8326.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/es8326.c +1 -1
@@ -353,7 +353,7 @@ static const struct snd_kcontrol_new es8326_snd_controls[] = {SOC_SINGLE_TLV ("DRE Gate Volume" ,ES8326_ADC_DRE_GATE ,4 ,0x07 ,0 , dre_gate_tlv),SOC_SINGLE ("ALC Capture Switch" ,ES8326_ALC_RECOVERY ,3 ,1 ,0 ), -SOC_SINGLE_TLV ("ALC Capture Recovery Level" ,ES8326_ALC_LEVEL , +SOC_SINGLE_TLV ("ALC Capture Recovery Level" ,ES8326_ALC_RECOVERY ,0 ,4 ,0 , drc_recovery_tlv),SOC_ENUM ("ALC Capture Winsize" , alc_winsize), SOC_SINGLE_TLV("ALC Capture Target Level", ES8326_ALC_LEVEL,
Signature · 1 line
2.17.1
PATCH v2 2/2 ASoC: codecs: es*: Modify the maximum value of DMIC_GAIN
In reply to Zhang YiThe Kcontrol related to DMIC_GAIN affects bits[3:2].
However, the old code sets ES8375_DMIC_GAIN_MAX to 4, which causes the Kcontrol to affect bits [4:2],this is incorrect. Therefore, change ES8375_DMIC_GAIN_MAX to 3.
--- sound/soc/codecs/es8375.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/es8375.h +1 -1
@@ -94,7 +94,7 @@// Function values #define ES8375_ADC_OSR_GAIN_MAX 0x3F -#define ES8375_DMIC_GAIN_MAX 0x04 +#define ES8375_DMIC_GAIN_MAX 0x03#define ES8375_ADC_AUTOMUTE_ATTN_MAX 0x1F#define ES8375_AUTOMUTE_NG_MAX 0x07#define ES8375_ADC_VOLUME_MAX 0xFF
Signature · 1 line
2.17.1
Mark Brown
maintainerQuoted 9 lines · Zhang Yi
ASoC: codecs: es*: controls that write each other's bits
Both the Kcontrols for the ES8326 and ES8375 have an issue where they write to other bits. This patch will fix that issue.
v2 -> v1:
-Add Fixes and Reviewed-by tags. No code changes.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[1/2] ASoC: codecs: es*: Modify the registers related to ALC RECOVERY
https://git.kernel.org/broonie/sound/c/dd64271fe1b9 [2/2] ASoC: codecs: es*: Modify the maximum value of DMIC_GAIN https://git.kernel.org/broonie/sound/c/29b867d8351d
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