ASoC: rt711-sdca: fix the function number of SDCA control for feature unit 0x1E
Subsystems (3)
PATCH 1/1 ASoC: rt711-sdca: fix the function number of SDCA control for feature unit 0x1E
From: Shuming Fan <[email protected]>
The function number should be FUNC_NUM_MIC_ARRAY(0x2) for the feature unit 0x1E.
--- sound/soc/codecs/rt711-sdca.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/rt711-sdca.c +2 -2
@@ -683,13 +683,13 @@ static int rt711_sdca_set_fu1e_capture_ctl(struct rt711_sdca_priv *rt711) ch_r = (rt711->fu1e_dapm_mute || rt711->fu1e_mixer_r_mute) ?0x01 :0x00 ; err =regmap_write (rt711->regmap, -SDW_SDCA_CTL (FUNC_NUM_JACK_CODEC ,RT711_SDCA_ENT_USER_FU1E , +SDW_SDCA_CTL (FUNC_NUM_MIC_ARRAY ,RT711_SDCA_ENT_USER_FU1E ,RT711_SDCA_CTL_FU_MUTE ,CH_L ), ch_l);if (err <0 )return err; err =regmap_write (rt711->regmap, -SDW_SDCA_CTL (FUNC_NUM_JACK_CODEC ,RT711_SDCA_ENT_USER_FU1E , +SDW_SDCA_CTL (FUNC_NUM_MIC_ARRAY ,RT711_SDCA_ENT_USER_FU1E ,RT711_SDCA_CTL_FU_MUTE ,CH_R ), ch_r);if (err <0 )return err;
Signature · 1 line
2.29.0
Quoted 5 lines · On 5/4/21 5:04 AM, [email protected] wrote:
From: Shuming Fan <[email protected]>
The function number should be
FUNC_NUM_MIC_ARRAY(0x2)for the feature unit0x1E.Signed-off-by Shuming Fan <[email protected]>
This fixes the issue we saw, the test reports are fine with this patch. Thanks Shuming!
Quoted 25 lines
--- sound/soc/codecs/rt711-sdca.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)sound/soc/codecs/rt711-sdca.c +2
-2@@ -683,13 +683,13 @@ static int rt711_sdca_set_fu1e_capture_ctl(struct rt711_sdca_priv *rt711) ch_r = (rt711->fu1e_dapm_mute || rt711->fu1e_mixer_r_mute) ?0x01 :0x00 ; err =regmap_write (rt711->regmap, -SDW_SDCA_CTL (FUNC_NUM_JACK_CODEC ,RT711_SDCA_ENT_USER_FU1E , +SDW_SDCA_CTL (FUNC_NUM_MIC_ARRAY ,RT711_SDCA_ENT_USER_FU1E ,RT711_SDCA_CTL_FU_MUTE ,CH_L ), ch_l);if (err <0 )return err; err =regmap_write (rt711->regmap, -SDW_SDCA_CTL (FUNC_NUM_JACK_CODEC ,RT711_SDCA_ENT_USER_FU1E , +SDW_SDCA_CTL (FUNC_NUM_MIC_ARRAY ,RT711_SDCA_ENT_USER_FU1E ,RT711_SDCA_CTL_FU_MUTE ,CH_R ), ch_r);if (err <0 )return err;
Mark Brown
maintainerQuoted 1 line · On Tue, 4 May 2021 18:04:24 +0800, [email protected] wrote:
The function number should be
FUNC_NUM_MIC_ARRAY(0x2)for the feature unit0x1E.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: rt711-sdca: fix the function number of SDCA control for feature unit 0x1E
commit: 682ae59ca2876f83396ccc5674235da99beed06c
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