author | Michal Bachraty <michal.bachraty@streamunlimited.com> | |
Fri, 19 Apr 2013 13:28:44 +0000 (15:28 +0200) | ||
committer | Misael Lopez Cruz <misael.lopez@ti.com> | |
Fri, 21 Jun 2013 21:56:39 +0000 (16:56 -0500) | ||
commit | d6beff83829317e88e3dc1e57d071b26b6754826 | |
tree | 5ec4797b3de7a72080778c89776c2eebe40fd345 | tree | snapshot (tar.xz tar.gz zip) |
parent | b9b15e50eeb8ba841f59c2a51c761ef5f49cac18 | commit | diff |
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>
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 | diff | blob | history | |
sound/soc/davinci/davinci-mcasp.h | diff | blob | history |