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)
commitf4a43caba7d495699f98532b4faee90fd9980732
treee788e62dba97bae9329ea747dd78cdf866aaf4aa
parentcf4f7fc3e7336e2e946880890e60ed36178889ea
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