linux/sound/soc
Peter Ujfalusi 6b87a91f54 ASoC: TWL4030: Fix for the constraint handling
The original implementation of the constraints were good against sane
applications.
If the opening sequence is:
stream1_open, stream1_hw_params, stream2_open, stream2_hw_params -> the
constraints are set correctly for stream2.

But if the sequence is:
stream1_open, stream2_open, stream2_hw_params, stream1_hw_params -> than stream2
would receive constraint rate = 0, sample_bits = 0, since the stream1 has not
yet called hw_params...

The command to trigger this event:
gst-launch-0.10 alsasrc device=hw:0 ! alsasink device=hw:0 sync=false

This patch does some 'black magic' in order to always set the correct
constraints and sets it only when it is needed for the other stream.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-04-17 16:02:23 +01:00
..
atmel ASoC: Merge dai_ops factor out 2009-03-11 16:51:31 +00:00
au1x ASoC: make ops a pointer in 'struct snd_soc_dai' 2009-03-04 22:29:47 +00:00
blackfin dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
codecs ASoC: TWL4030: Fix for the constraint handling 2009-04-17 16:02:23 +01:00
davinci ASoC: Merge dai_ops factor out 2009-03-11 16:51:31 +00:00
fsl ASoC: fsl_dma: Pass the proper device for dma mapping routines 2009-04-06 23:35:42 +01:00
omap Merge branch 'for-2.6.30' into for-2.6.31 2009-04-16 14:14:35 +01:00
pxa Merge branch 'for-2.6.30' into for-2.6.31 2009-04-16 14:14:35 +01:00
s3c24xx Merge branch 'for-2.6.30' into for-2.6.31 2009-04-16 14:14:35 +01:00
s6000 ASoC: correct s6000 I2S clock polarity 2009-04-06 11:18:39 +01:00
sh ASoC: Fix some missing dai_ops conversions 2009-03-16 14:13:57 +00:00
Kconfig ASoC: Add driver for s6000 I2S interface 2009-04-04 15:28:22 +01:00
Makefile ASoC: Add driver for s6000 I2S interface 2009-04-04 15:28:22 +01:00
soc-core.c ASoC: Volume controls are never of boolean type 2009-04-16 11:03:10 +01:00
soc-dapm.c ASoC: Support DAPM events for DACs and ADCs 2009-04-13 11:59:01 +01:00
soc-jack.c ASoC: Staticise workqueue function for GPIO jack detection 2009-03-06 13:37:19 +00:00