linux/sound/soc
Timur Tabi be41e941d5 ALSA: asoc: restrict sample rate and size in Freescale MPC8610 sound drivers
The Freescale MPC8610 SSI device has the option of using one clock for both
transmit and receive (synchronous mode), or independent clocks (asynchronous).
The SSI driver, however, programs the SSI into synchronous mode and then
tries to program the clock registers independently.  The result is that the wrong
sample size is usually generated during recording.

This patch fixes the discrepancy by restricting the sample rate and sample size
of the playback and capture streams.  The SSI driver remembers which stream
is opened first.  When a second stream is opened, that stream is constrained
to the same sample rate and size as the first stream.

A future version of this driver will lift the sample size restriction.
Supporting independent sample rates is more difficult, because only certain
codecs provide dual independent clocks.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-07-29 12:27:10 +02:00
..
at32 ALSA: asoc: at32 - DAI struct merge and enable_pin() change. 2008-07-10 09:32:54 +02:00
at91 Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2008-07-14 16:06:58 -07:00
au1x ALSA: Au1xpsc: psc not disabled when TX is idle 2008-07-15 15:08:28 +02:00
codecs ALSA: soc - wm9712 mono mixer 2008-07-20 17:39:38 +02:00
davinci ALSA: asoc: machines - add Digital Audio Interface (DAI) control functions. 2008-07-10 09:32:51 +02:00
fsl ALSA: asoc: restrict sample rate and size in Freescale MPC8610 sound drivers 2008-07-29 12:27:10 +02:00
omap ALSA: asoc: kbuild - only show menus for the current ASoC CPU platform. 2008-07-14 09:01:01 +02:00
pxa ALSA: sound/soc/pxa/tosa.c: removed duplicated include 2008-07-29 12:27:03 +02:00
s3c24xx ALSA: asoc: machines - add Digital Audio Interface (DAI) control functions. 2008-07-10 09:32:51 +02:00
sh ALSA: asoc: sh - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:46 +02:00
Kconfig ALSA: ASoC: Au12x0/Au1550 PSC Audio support 2008-07-10 09:33:07 +02:00
Makefile ALSA: ASoC: Au12x0/Au1550 PSC Audio support 2008-07-10 09:33:07 +02:00
soc-core.c ALSA: asoc: core - add Digital Audio Interface (DAI) control functions. 2008-07-10 09:32:50 +02:00
soc-dapm.c ALSA: ASoC: Factor PGA DAPM handling into main 2008-07-17 16:17:17 +02:00