ACK: [J] [PATCH 1/1] Revert "ASoC: soc-pcm: Don't zero TDM masks in __soc_pcm_open()"

Stefan Bader stefan.bader at canonical.com
Wed Feb 22 08:50:11 UTC 2023


On 22.02.23 05:51, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/2007798
> 
> This reverts commit 793e7ce5571a9213c7bc9bd5ea22a3394f4b4d6b.
> 
> When the PCM gets opened at second time, the audio playback becomes
> silent.
> 
> Newer kernels that get this commit via stable update are unaffected.
> 
> Instead of finding the implicit dependency that may introduce new
> regression, revert the offending commit to fix the issue.
> 
> Signed-off-by: Kai-Heng Feng <kai.heng.feng at canonical.com>
Acked-by: Stefan Bader <stefan.bader at canonical.com>
> ---
>   sound/soc/soc-pcm.c | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
> index 3b673477f621..de837bacf219 100644
> --- a/sound/soc/soc-pcm.c
> +++ b/sound/soc/soc-pcm.c
> @@ -759,6 +759,11 @@ static int soc_pcm_open(struct snd_pcm_substream *substream)
>   		ret = snd_soc_dai_startup(dai, substream);
>   		if (ret < 0)
>   			goto err;
> +
> +		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
> +			dai->tx_mask = 0;
> +		else
> +			dai->rx_mask = 0;
>   	}
>   
>   	/* Dynamic PCM DAI links compat checks use dynamic capabilities */

-- 
- Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE8675DEECBEECEA3.asc
Type: application/pgp-keys
Size: 44613 bytes
Desc: OpenPGP public key
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230222/4f277c80/attachment-0001.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20230222/4f277c80/attachment-0001.sig>


More information about the kernel-team mailing list