]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card-utils: Fix device module clock
authorSameer Pujar <spujar@nvidia.com>
Wed, 10 Feb 2021 06:43:39 +0000 (12:13 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 11 Feb 2021 13:10:46 +0000 (13:10 +0000)
commitdec654dc2c053e79b52b9ad2e12d38411dd1f2bb
treed79e8887542a03f6d386f3a8efd6ace8ff471075
parent211c1a2739c656448eeaff81f6244eab14ca8e45
ASoC: simple-card-utils: Fix device module clock

If "clocks = <&xxx>" is specified from the CPU or Codec component
device node, the clock is not getting enabled. Thus audio playback
or capture fails.

Fix this by populating "simple_dai->clk" field when clocks property
is specified from device node as well. Also tidy up by re-organising
conditional statements of parsing logic.

Fixes: f83b93ed28f0 ("ASoC: simple-card-utils: add asoc_simple_card_parse_clk()")
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/1612939421-19900-2-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-card-utils.c