summaryrefslogtreecommitdiffstats
path: root/sound/sparc
diff options
context:
space:
mode:
authorRichard Fitzgerald <rf@opensource.cirrus.com>2021-08-05 17:11:06 +0100
committerMark Brown <broonie@kernel.org>2021-08-05 20:17:15 +0100
commit3a5d89a9c6fe306d35dce4496abbb464c1454da0 (patch)
treeb1fd3cb5f243930786bdf2bfb5d67e2b6c5976a1 /sound/sparc
parent0c2f2ad4f16a58879463d0979a54293f8f296d6f (diff)
downloadlinux-3a5d89a9c6fe306d35dce4496abbb464c1454da0.tar.bz2
ASoC: cs42l42: Constrain sample rate to prevent illegal SCLK
The lowest valid SCLK corresponds to 44.1 kHz at 16-bit. Sample rates less than this would produce SCLK below the minimum when using a normal I2S frame. A constraint must be applied to prevent this. The constraint is not applied if the machine driver sets SCLK, to allow setups where the host generates additional bits per LRCLK phase to increase the SCLK frequency. In these cases the machine driver would always have to inform this driver of the actual SCLK, and it must select a legal SCLK. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20210805161111.10410-3-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/sparc')
0 files changed, 0 insertions, 0 deletions