ASoC: McASP: calculate values for channel size
authorDaniel Mack <zonque@gmail.com>
Wed, 5 Dec 2012 17:20:37 +0000 (18:20 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 7 Dec 2012 05:47:01 +0000 (14:47 +0900)
Change davinci_config_channel_size() to derive the values for XSSZ and
XROT in DAVINCI_MCASP_[RT]XFMT_REG from the configured word length
rather than hard-coding them in a switch/case block.

Also, by directly passing the word length to
davinci_config_channel_size(), we can get rid of the
DAVINCI_AUDIO_WORD_* enum.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found