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>
This commit is contained in:

committed by
Mark Brown

parent
7c21a78104
commit
d486fea6ba
@@ -38,7 +38,7 @@ struct davinci_audio_dev {
|
||||
u8 num_serializer;
|
||||
u8 *serial_dir;
|
||||
u8 version;
|
||||
u8 bclk_lrclk_ratio;
|
||||
u16 bclk_lrclk_ratio;
|
||||
|
||||
/* McASP FIFO related */
|
||||
u8 txnumevt;
|
||||
|
Reference in New Issue
Block a user