From: Daniel Mack Date: Wed, 5 Dec 2012 17:20:38 +0000 (+0100) Subject: ASoC: McASP: implement a way to force BCLK/LRCLK ratios X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~39^2~8^2~65^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b3bc060fb008ddd75fe60c876c24784a517c10c;p=pandora-kernel.git ASoC: McASP: implement a way to force BCLK/LRCLK ratios Depending on the Codec, the the BCLK/LRCLK ratio might not be freely chosen by the CPU DAI. For example, some Codec might want to be supplied with 32-bit samples for both its channels regardless of the actual audio word size the CPU sends. In such cases, the rest of the bits on the data lines must be padded with zeros: _______________________________ LRCLK / \ --' `---------- ..... BCLK ||||||||||||||||||||||||||||||||||||||||||||||| ..... DATA ____||||||||||||||||_________________|||||||||| ..... |<-- data -->|<-- pads --> | This patch adds a new clock divider to configure the BCLK/LRCLK ratio. If the machine code uses that divider, the driver uses the specified value, instead of deriving that information from the audio word size. Otherwise, the original behaviour is retained. Signed-off-by: Daniel Mack Signed-off-by: Mark Brown --- Reading git-diff-tree failed