summaryrefslogtreecommitdiffstats
path: root/tools/scripts/Makefile.include
diff options
context:
space:
mode:
authorNicolin Chen2017-09-14 05:07:09 +0200
committerMark Brown2017-09-19 14:15:55 +0200
commitb0a7043d5c2ccdd306959f295bf1a62be025cbf5 (patch)
tree1248070818a6b852714387f2f73de881d47bb8d4 /tools/scripts/Makefile.include
parentASoC: fsl_spdif: make const arrays rate static (diff)
downloadkernel-qcow2-linux-b0a7043d5c2ccdd306959f295bf1a62be025cbf5.tar.gz
kernel-qcow2-linux-b0a7043d5c2ccdd306959f295bf1a62be025cbf5.tar.xz
kernel-qcow2-linux-b0a7043d5c2ccdd306959f295bf1a62be025cbf5.zip
ASoC: fsl_ssi: Caculate bit clock rate using slot number and width
The set_sysclk() now is used to override the output bit clock rate. But this is not a common way to implement a set_dai_sysclk(). And this creates a problem when a general machine driver (simple-card for example) tries to do set_dai_sysclk() by passing an input clock rate for the baud clock instead of setting the bit clock rate as fsl_ssi driver expected. So this patch solves this problem by firstly removing set_sysclk() since the hw_params() can calculate the bit clock rate. Secondly, in order not to break those TDM use cases which previously might have been using set_sysclk() to override the bit clock rate, this patch changes the driver to calculate the bit clock rate using the slot number and the slot width from the via set_tdm_slot(). The patch also removes an obsolete comment of the dir parameter. Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/scripts/Makefile.include')
0 files changed, 0 insertions, 0 deletions