android_kernel_google_msm/sound/soc/samsung
Dylan Reid a4dd7e6c27 ASoC: samsung dma - Don't indicate support for pause/resume.
commit 57b2d68863 upstream.

The pause and resume operations indicate that the stream can be
un-paused/resumed from the exact location they were paused/suspended.
This is not true for this driver, the pause and suspend triggers share
the same code path with stop, they flush all pending DMA transfers.
This drops all pending samples.  The pause_release/resume triggers are
the same as start, except that prepare won't be called beforehand,
nothing will be enqueued to the DMA engine and nothing will happen (no
audio).  Removing the pause flag will let apps know that it isn't
supported.  Removing the resume flag will cause user space to call
prepare and start instead of resume, so audio will continue playing when
the system wakes up.

Before removing the pause and resume flags, I tested this on an exynos
5250, using 'aplay -i'. Pause/un-pause leads to silence followed by a
write error.  Suspend/resume testing led to the same result.  Removing
the two flags fixes suspend/resume (since snd_pcm_prepare is called
again). And leads to a proper reporting of pause not supported.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-02 10:30:05 -07:00
..
ac97.c ASoC: Samsung: Update email id of the author 2012-02-29 23:37:57 +00:00
dma.c ASoC: samsung dma - Don't indicate support for pause/resume. 2012-10-02 10:30:05 -07:00
dma.h ASoC: Samsung: Update DMA interface 2011-09-14 11:10:04 +05:30
goni_wm8994.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
h1940_uda1380.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
i2s-regs.h
i2s.c ASoC: Samsung: Added to support mono recording 2012-03-16 18:50:41 +00:00
i2s.h ASoC: Samsung: Update email id of the author 2012-02-29 23:37:57 +00:00
idma.c ASoC: Fix idma build after update for channel count check 2012-01-08 23:04:28 -08:00
idma.h ASoC: Fix __iomem annotation for IDMA registers 2011-11-29 17:28:16 +00:00
jive_wm8750.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
Kconfig ARM: S3C24XX: change the ARCH_S3C2410 to ARCH_S3C24XX 2012-03-03 07:44:51 +09:00
littlemill.c ASoC: samsung: Enable accessory detect for WM8994 on Littlemill 2012-02-06 14:04:51 +00:00
ln2440sbc_alc650.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
lowland.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
Makefile ASoC: Rename Speyside WM8962 to Tobermory 2011-11-30 20:49:05 +00:00
neo1973_wm8753.c Merge branch 'topic/asoc' into for-linus 2012-03-18 18:22:37 +01:00
pcm.c ASoC: Samsung: Update email id of the author 2012-02-29 23:37:57 +00:00
pcm.h
regs-i2s-v2.h
rx1950_uda1380.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c-i2s-v2.c ASoC: samsung: s3c-i2s-v2.c needs module.h 2011-10-03 21:34:12 +01:00
s3c-i2s-v2.h
s3c24xx-i2s.c ASoC: Convert Samsung directory to module_platform_driver 2011-11-25 13:03:03 +00:00
s3c24xx-i2s.h
s3c24xx_simtec.c ASoC: core: Add support for DAI and machine kcontrols. 2012-02-04 12:40:11 +00:00
s3c24xx_simtec.h
s3c24xx_simtec_hermes.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c24xx_simtec_tlv320aic23.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c24xx_uda134x.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
s3c2412-i2s.c ASoC: s3c2412-i2s: Fix dai registration 2012-04-30 23:45:25 +01:00
s3c2412-i2s.h
smartq_wm8987.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk2443_wm9710.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_spdif.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm8580.c ASoC: Samsung: Update email id of the author 2012-02-29 23:37:57 +00:00
smdk_wm8580pcm.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm8994.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm8994pcm.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
smdk_wm9713.c ASoC: Samsung: Update email id of the author 2012-02-29 23:37:57 +00:00
spdif.c ASoC: Convert Samsung directory to module_platform_driver 2011-11-25 13:03:03 +00:00
spdif.h
speyside.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00
tobermory.c ASoC: samsung: Add .owner to struct snd_soc_card 2011-12-22 11:04:18 +00:00