OSDN Git Service

ASoC: rsnd: adg: care clock-frequency size
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 6 Sep 2018 03:21:33 +0000 (03:21 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 6 Sep 2018 10:12:52 +0000 (11:12 +0100)
commit69235ccf491d2e26aefd465c0d3ccd1e3b2a9a9c
tree7e4c18d4919a0039d6b10093ec473e5d165e3f3a
parentae45893f74c72e632cbad882509f12558db2e4f3
ASoC: rsnd: adg: care clock-frequency size

ADG has buffer over flow bug if DT has more than 3 clock-frequency.
This patch fixup this issue, and uses first 2 values.

clock-frequency = <x y>; /* this is OK */
clock-frequency = <x y z>; /* this is NG */

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c