[PATCH] ASoC: rockchip: rockchip_sai: Set slot width for non-TDM mode
Alexey Charkov
alchark at flipper.net
Wed Mar 18 09:52:16 PDT 2026
On Wed, Mar 18, 2026 at 8:17 PM Mark Brown <broonie at kernel.org> wrote:
>
> On Wed, Mar 18, 2026 at 06:50:25PM +0400, Alexey Charkov wrote:
>
> > regmap_update_bits(sai->regmap, reg, SAI_XCR_VDW_MASK | SAI_XCR_CSR_MASK, val);
> >
> > + if (!sai->is_tdm)
> > + regmap_update_bits(sai->regmap, reg, SAI_XCR_SBW_MASK,
> > + SAI_XCR_SBW(params_physical_width(params)));
> > +
>
> What happens if playback and capture have different widths? I wonder if
> forcing a TDM configuration with the affected CODECs would be easier.
Playback and capture go to different "reg" each, and each has a slot
width field. The correct "reg" for the stream is selected 50 lines up
in the same function. So they shouldn't really get in each other's
way, from what I can tell.
Best regards,
Alexey
More information about the Linux-rockchip
mailing list