ASoC: sgtl5000: Do a sanity check on SYS_MCLK
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 2 Oct 2014 20:36:05 +0000 (17:36 -0300)
committerMark Brown <broonie@kernel.org>
Fri, 3 Oct 2014 10:20:38 +0000 (11:20 +0100)
commit6f4d2b3177ee3352e70c90f327e2dea3809c263e
tree4d4fe0f5128dc650730a36258b52230956b4bca3
parentfa558d0130debf847b6b8cd95880a2d7556770ac
ASoC: sgtl5000: Do a sanity check on SYS_MCLK

According to the sgtl5000 datasheet the valid range for SYS_MCLK is from 8 to
27 MHz.

Add a sanity check prior to enabling SYS_MCLK.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sgtl5000.c