Re: [PATCH AUTOSEL 5.14 132/252] ALSA: pci: cs46xx: Fix set up buffer type properly
From: Takashi Iwai
Date: Thu Sep 09 2021 - 07:55:44 EST
On Thu, 09 Sep 2021 13:39:06 +0200,
Sasha Levin wrote:
>
> From: Takashi Iwai <tiwai@xxxxxxx>
>
> [ Upstream commit 4d9e9153f1c64d91a125c6967bc0bfb0bb653ea0 ]
>
> CS46xx driver switches the buffer depending on the number of periods,
> and in some cases it switches to the own buffer without updating the
> buffer type properly. This may cause a problem with the mmap on
> exotic architectures that require the own mmap call for the coherent
> DMA buffer.
>
> This patch addresses the potential breakage by replacing the buffer
> setup with the proper macro. It also simplifies the source code,
> too.
>
> Link: https://lore.kernel.org/r/20210809071829.22238-4-tiwai@xxxxxxx
> Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>
This change is superfluous for 5.14. Please drop.
thanks,
Takashi