]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: Fix possible NULL pointer dereference
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 21 Apr 2017 00:41:20 +0000 (00:41 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 21 Apr 2017 16:51:48 +0000 (17:51 +0100)
commit6697822329da2f8249ab362398fe114d732a4c4a
tree2ae9efc7f10f342bc93ff235facea2ead65a68d3
parente2a8a234dbedd7e31d4b0b9767cfd9df7e64e314
ASoC: rsnd: Fix possible NULL pointer dereference

c05cda96fbf4cd65c2700e90d3216812f5a01f58
("ASoC: rsnd: enable clock-frequency for both 44.1kHz/48kHz")
supports both 44.1kHz/48kHz clock-frequency settings for ADG
which will be used for AUDIO_OLKOUTn.
But some board doesn't need it, thus, it is not mandatory.

But, above patch didn't care about the case of "clock-frequency" DT
property was not present.
This patch ignores ADG settings if AUDIO_OLKOUTn was not used.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
[Kuninori: tidyup not to break non AUDIO_OLKOUTn case]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c