]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: davinci-mcasp: Add support for multichannel playback
authorMichal Bachraty <michal.bachraty@streamunlimited.com>
Thu, 28 Feb 2013 15:07:08 +0000 (16:07 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Mar 2013 03:09:13 +0000 (11:09 +0800)
commita3e6de299ad2a4e1e95948d2eeed50f8940d8695
tree4bbc01aefee1411cb3334e56d9d4bd82bc19af93
parent5d5acf7f3e8c669857f1288b923731e4b4ceb550
ASoC: davinci-mcasp: Add support for multichannel playback

Davinci McASP has support for I2S multichannel playback.
For I2S playback/receive, each serializer is capable to play 2 channels
(L/R) audio data.Serializer function (Playback-receive-none) is configured
in DT, depending on hardware specification. It is possible to play less
channels than configured in DT. For that purpose,only specific number of
active serializers are enabled. McASP FIFO need to have DMA transfer Bcnt
set to number of enabled serializers, otherwise no data are transfered to
McASP and Alsa generates "DMA/IRQ playback write error (DMA or IRQ trouble?)"
error. For TDM mode, McASP is capable to play or receive 32 channels for one
serializer. McAsp has support for max 16 serializer, therefore max channels
is 32 * 8.

Signed-off-by: Michal Bachraty <michal.bachraty@streamunlimited.com>
Tested-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-pcm.c
sound/soc/davinci/davinci-pcm.h