]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: blackfin I2S(TDM mode) CPU DAI driver
authorBarry Song <21cnbao@gmail.com>
Mon, 27 Jul 2009 10:06:39 +0000 (18:06 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Jul 2009 21:15:27 +0000 (22:15 +0100)
commit7bdbc631eb4583a14f6422eb508d89bf512f91c8
treef12ef7f14cee59b081fa3bc9ab77876e128fc6ae
parent29c66dd79d94b3df11f53f13e0282c79dc82ad93
ASoC: blackfin I2S(TDM mode) CPU DAI driver

The I2S DAI driver for blackfin SPORT, but works in TDM mode.
I2S is not a special case of TDM with only left and right two slots for
SPORT interface. I2S coordinates with TDM in SPORT, but not a part of
TDM. TDM require different hardware configuration with I2S, not only
different slot number.  One is "Stereo Serial Operation" mode of SPORT,
the other one is "Multichannel Operation" mode. They are incompatible
at the same time.
Hardware and DMA description and data transfer flow are much different
for I2S and TDM. Merging them as a whole will be very ugly and difficult
to maintain.
So we don't define a new DAI type, but give two DAI instances for standard
I2S and TDM, both in I2S-family DAI type. The TDM instance still uses the
I2S-family DAI type.

Signed-off-by: Barry Song <21cnbao@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/blackfin/Kconfig
sound/soc/blackfin/Makefile
sound/soc/blackfin/bf5xx-tdm-pcm.c [new file with mode: 0644]
sound/soc/blackfin/bf5xx-tdm-pcm.h [new file with mode: 0644]
sound/soc/blackfin/bf5xx-tdm.c [new file with mode: 0644]
sound/soc/blackfin/bf5xx-tdm.h [new file with mode: 0644]