ASoC: McASP: make AHCLK direction configurable
authorDaniel Mack <zonque@gmail.com>
Thu, 4 Oct 2012 13:08:41 +0000 (15:08 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Oct 2012 02:24:47 +0000 (11:24 +0900)
commit5b66aa2d0cafd8093e0b8959d32e694c92390b8c
tree827af1cbbf3b20babe0d70b2015c770c929b2d7d
parent4ed8c9b737b61030d7b6ac71294d698de85b5b7e
ASoC: McASP: make AHCLK direction configurable

Add a .set_sysclk function to pass the direction of the clock down to
the driver. Only enable AHCLKX in the PDIR register when the CPU is
driving the clock.

This also removes the modification of the AHCLKXE/AHCLKRE bits in the
hw_params callback, and users must set the desired configuration using
snd_soc_dai_set_sysclk(), which this patch also does for the only user
in mainline (davinci-evm).

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-evm.c
sound/soc/davinci/davinci-mcasp.c