Re: [PATCH v7 01/14] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-12 Thread Maxime Ripard
On Sun, Oct 11, 2020 at 10:22:11PM +0200, Clément Péron wrote: > As slots and slot_width can be set manually using set_tdm(). > These values are then kept in sun4i_i2s struct. > So we need to check if these values are set or not. > > This is not done actually and will trigger a bug. > For

[PATCH v7 01/14] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-11 Thread Clément Péron
As slots and slot_width can be set manually using set_tdm(). These values are then kept in sun4i_i2s struct. So we need to check if these values are set or not. This is not done actually and will trigger a bug. For example, if we set to the simple soundcard in the device-tree dai-tdm-slot-width =