]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_ssi: refine ipg clock usage in this module
authorShengjiu Wang <shengjiu.wang@freescale.com>
Tue, 16 Sep 2014 02:13:16 +0000 (10:13 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 17 Sep 2014 18:30:15 +0000 (11:30 -0700)
commit95ddae90947d334891a503b6b6e22986f2155aa1
treee788e62dba97bae9329ea747dd78cdf866aaf4aa
parente4c20aff119c58a6268666b9c063e2065332a2a2
ASoC: fsl_ssi: refine ipg clock usage in this module

Check if ipg clock is in clock-names property, then we can move the
ipg clock enable and disable operation to startup and shutdown, that
is only enable ipg clock when ssi is working and keep clock is disabled
when ssi is in idle.
But when the checking is failed, remain the clock control as before.

Tested-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c