diff options
author | 2018-04-08 17:33:54 -0700 | |
---|---|---|
committer | 2018-04-16 13:04:40 +0100 | |
commit | 8a2278b7fb3df67cd415c679ba1a0e5e4a1761a7 (patch) | |
tree | d53889272ca23930fc49af307484cb228df55e13 /include/uapi | |
parent | ASoC: adau17x1: Do not reload dsp-fw if samplerate has not changed (diff) | |
download | linux-dev-8a2278b7fb3df67cd415c679ba1a0e5e4a1761a7.tar.xz linux-dev-8a2278b7fb3df67cd415c679ba1a0e5e4a1761a7.zip |
ASoC: fsl_esai: Add freq check in set_dai_sysclk()
The freq parameter indicates the physical frequency of an actual
input clock or a desired frequency of an output clock for HCKT/R.
It should never be passed 0. This might cause Division-by-zero.
So this patch adds a check to fix it.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions