From: "Tan N." <tannayir@gmail.com> To: marex@denx.de Cc: alexandre.torgue@st.com, alsa-devel@alsa-project.org, broonie@kernel.org, stable@vger.kernel.org, tiwai@suse.de Subject: Re: [PATCH] ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min Date: Tue, 17 May 2022 02:53:47 +0300 [thread overview] Message-ID: <c2163c71-2f71-9011-3966-baeab8e8dc8f@gmail.com> (raw) In-Reply-To: <ee74ed25-cd10-1047-9700-7546c7ee7052@denx.de> The same changes that are applied to the snd_soc_put_volsw should also be applied to the volsw_sx and xr_sx put callback functions. Most of the Qualcomm codecs set the volume levels of controls like this -- SOC_SINGLE_SX_TLV("IIR1 INP1 Volume", LPASS_CDC_IIR1_GAIN_B1_CTL, 0, -84, 40, digital_gain) -- which causes the values from the caller to be rejected incorrectly on the put callback function. It took me a lot of time to debug this but because those two functions aren't changed in this patch, it creates an issue where some Android phones have extremely high amplification on the sidetone mixer during calls which in turn causes a feedback loop because the kernel can't set the correct level on the controls.
WARNING: multiple messages have this Message-ID (diff)
From: "Tan N." <tannayir@gmail.com> To: marex@denx.de Cc: tiwai@suse.de, alsa-devel@alsa-project.org, broonie@kernel.org, alexandre.torgue@st.com, stable@vger.kernel.org Subject: Re: [PATCH] ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min Date: Tue, 17 May 2022 02:53:47 +0300 [thread overview] Message-ID: <c2163c71-2f71-9011-3966-baeab8e8dc8f@gmail.com> (raw) In-Reply-To: <ee74ed25-cd10-1047-9700-7546c7ee7052@denx.de> The same changes that are applied to the snd_soc_put_volsw should also be applied to the volsw_sx and xr_sx put callback functions. Most of the Qualcomm codecs set the volume levels of controls like this -- SOC_SINGLE_SX_TLV("IIR1 INP1 Volume", LPASS_CDC_IIR1_GAIN_B1_CTL, 0, -84, 40, digital_gain) -- which causes the values from the caller to be rejected incorrectly on the put callback function. It took me a lot of time to debug this but because those two functions aren't changed in this patch, it creates an issue where some Android phones have extremely high amplification on the sidetone mixer during calls which in turn causes a feedback loop because the kernel can't set the correct level on the controls.
next prev parent reply other threads:[~2022-05-16 23:53 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-15 13:06 [PATCH] ASoC: ops: Shift tested values in snd_soc_put_volsw() by +min Marek Vasut 2022-02-16 18:01 ` Mark Brown 2022-02-23 14:55 ` Takashi Iwai 2022-02-23 16:32 ` Mark Brown 2022-02-23 16:44 ` Takashi Iwai 2022-02-23 16:52 ` Marek Vasut 2022-02-23 16:52 ` Marek Vasut 2022-05-16 23:53 ` Tan N. [this message] 2022-05-16 23:53 ` Tan N. 2022-05-17 1:12 ` [PATCH] ASoC: ops: Fix the bounds checking in snd_soc_put_volsw_sx and snd_soc_put_xr_sx Tan Nayir 2022-05-17 1:12 ` Tan Nayir 2022-05-17 13:04 ` Mark Brown 2022-05-17 13:04 ` Mark Brown 2022-05-17 14:25 ` Tan Nayır 2022-05-17 14:25 ` Tan Nayır 2022-05-17 18:20 ` Mark Brown 2022-05-17 18:20 ` Mark Brown 2022-05-17 19:58 ` Tan Nayır 2022-05-17 19:58 ` Tan Nayır 2022-05-18 12:07 ` Mark Brown 2022-05-18 12:07 ` Mark Brown 2022-05-18 23:56 ` Tan Nayır 2022-05-18 23:56 ` Tan Nayır 2022-05-19 15:47 ` Mark Brown 2022-05-19 15:47 ` Mark Brown
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=c2163c71-2f71-9011-3966-baeab8e8dc8f@gmail.com \ --to=tannayir@gmail.com \ --cc=alexandre.torgue@st.com \ --cc=alsa-devel@alsa-project.org \ --cc=broonie@kernel.org \ --cc=marex@denx.de \ --cc=stable@vger.kernel.org \ --cc=tiwai@suse.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.