]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb2c8fc156e252fd644609aea5c5e5d1abb800d7
treeebe7a30d63d4f26389c928b0f5bc271ff1a085a3
parent24b24563e4108d396563c7777a482014eb23167b
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