]> 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)
commitc859f5e4e4dfc143e34618930ccf825dadaf6b99
treeebe7a30d63d4f26389c928b0f5bc271ff1a085a3
parent4fa2f99933cf3465dbc41a4ac1db484b5cdf4c0a
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