diff options
| author | Clément Péron <[email protected]> | 2020-10-30 15:46:35 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-10-30 17:58:51 +0000 |
| commit | c779e2de0ac6156bea63e759481ee383587336cc (patch) | |
| tree | 5a4954756603f2d2bcf96134f8bf75e37c029207 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 93c0210671d8f3ec2262da703fab93a1497158a8 (diff) | |
ASoC: sun4i-i2s: Change set_chan_cfg() params
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 = <32> and then start a stream using S16_LE,
currently we would calculate BCLK for 32-bit slots, but program
lrck_period for 16-bit slots, making the sample rate double what we
expected.
To fix this, we need to check if these values are set or not but as
this logic is already done by the caller. Avoid duplicating this
logic and just pass the required values as params to set_chan_cfg().
Suggested-by: Samuel Holland <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Clément Péron <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions