ASoC: davinci-mcasp: Validate tdm_slots parameter at probe time
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 10 Nov 2014 10:32:15 +0000 (12:32 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 Nov 2014 15:00:01 +0000 (15:00 +0000)
commit1a5923da4e2e6997f03545a2b88f2cd2dea1a5c2
treefc8e903860d1f10ccf22460b7972f00c238c730b
parentbb372af0f7040fb637bfe0859aaa0ba49018506b
ASoC: davinci-mcasp: Validate tdm_slots parameter at probe time

Instead of validating the tdm_slots parameter every time at hw_params we
can do it once during probe. If the parameter is not valid (<2 or >32)
print an error and fix it up.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c
This page took 0.089316 seconds and 5 git commands to generate.