Re: [PATCH 2/2] ASoC: Intel: avs: Fix type warning in avs_probe_compr_set_params()

Mark Brown
2026-04-07T11:28:31Z

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

On Tue, Apr 07, 2026 at 10:54:59AM +0200, Cezary Rojewski wrote:
> Expected argument type is snd_pcm_format_t.
> Found out by sparse.

> - bps = snd_pcm_format_physical_width(params->codec.format);
> + bps = snd_pcm_format_physical_width((__force snd_pcm_format_t)params->codec.format);

There was an earlier patch for this one that didn't get reviewed (and
every time I looked at it the __force looks super suspect):

https://patch.msgid.link/20260325021752.238203-1-songxiebing@kylinos.cn

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]