ASoC: davinci-mcasp: Add Support BCLK-to-LRCLK ratio for TDM modes
authorMichal Bachraty <michal.bachraty@streamunlimited.com>
Fri, 19 Apr 2013 13:28:44 +0000 (15:28 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 23 Apr 2013 13:50:30 +0000 (14:50 +0100)
commitd486fea6babfe3ff0c382c9e4baf18f535fcee7d
treeebe7a30d63d4f26389c928b0f5bc271ff1a085a3
parent7c21a78104d7f2c155e2c12279282f659d773d05
ASoC: davinci-mcasp: Add Support BCLK-to-LRCLK ratio for TDM modes

For TDM mode, BCLK-to-LCLK ratio is computed as (tdm_slots) x (word_length).
I2S mode is only subset of TDM mode with specific tdm_slots = 2 channels.
Also bclk_lrclk_ratio can be greater than 255, therefore u16 need to be used.

Signed-off-by: Michal Bachraty <michal.bachraty@streamunlimited.com>
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-mcasp.c
sound/soc/davinci/davinci-mcasp.h