summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.24/1060-s3c24xx-pcm-suspend.patch.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-14 15:52:42 +0000
commit16defbb2bd9478f9e5384b9722f20a694e6bae41 (patch)
treef52e202c30c7fca103b196ece1223e18446e4dfc /target/linux/s3c24xx/patches-2.6.24/1060-s3c24xx-pcm-suspend.patch.patch
parentb4644aedce6526b5d07b336187c8e6417c7dd75e (diff)
downloadmtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.zip
mtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.tar.gz
mtk-20170518-16defbb2bd9478f9e5384b9722f20a694e6bae41.tar.bz2
nuke obsolete kernel stuff
SVN-Revision: 14875
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1060-s3c24xx-pcm-suspend.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1060-s3c24xx-pcm-suspend.patch.patch85
1 files changed, 0 insertions, 85 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1060-s3c24xx-pcm-suspend.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1060-s3c24xx-pcm-suspend.patch.patch
deleted file mode 100644
index 2b496ff..0000000
--- a/target/linux/s3c24xx/patches-2.6.24/1060-s3c24xx-pcm-suspend.patch.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-From 1179eb1bf9d827aaa2b4b6adc4ba135bf9074bcc Mon Sep 17 00:00:00 2001
-From: mokopatches <mokopatches@openmoko.org>
-Date: Sun, 13 Apr 2008 07:23:53 +0100
-Subject: [PATCH] s3c24xx-pcm-suspend.patch
-
----
- sound/soc/s3c24xx/s3c24xx-pcm.c | 48 ++++++++++++++++++++------------------
- 1 files changed, 25 insertions(+), 23 deletions(-)
-
-diff --git a/sound/soc/s3c24xx/s3c24xx-pcm.c b/sound/soc/s3c24xx/s3c24xx-pcm.c
-index 4107a87..e9f3b60 100644
---- a/sound/soc/s3c24xx/s3c24xx-pcm.c
-+++ b/sound/soc/s3c24xx/s3c24xx-pcm.c
-@@ -49,7 +49,9 @@ static const struct snd_pcm_hardware s3c24xx_pcm_hardware = {
- .info = SNDRV_PCM_INFO_INTERLEAVED |
- SNDRV_PCM_INFO_BLOCK_TRANSFER |
- SNDRV_PCM_INFO_MMAP |
-- SNDRV_PCM_INFO_MMAP_VALID,
-+ SNDRV_PCM_INFO_MMAP_VALID |
-+ SNDRV_PCM_INFO_PAUSE |
-+ SNDRV_PCM_INFO_RESUME,
- .formats = SNDRV_PCM_FMTBIT_S16_LE |
- SNDRV_PCM_FMTBIT_U16_LE |
- SNDRV_PCM_FMTBIT_U8 |
-@@ -176,28 +178,6 @@ static int s3c24xx_pcm_hw_params(struct snd_pcm_substream *substream,
- }
- }
-
-- /* channel needs configuring for mem=>device, increment memory addr,
-- * sync to pclk, half-word transfers to the IIS-FIFO. */
-- if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
-- s3c2410_dma_devconfig(prtd->params->channel,
-- S3C2410_DMASRC_MEM, S3C2410_DISRCC_INC |
-- S3C2410_DISRCC_APB, prtd->params->dma_addr);
--
-- s3c2410_dma_config(prtd->params->channel,
-- prtd->params->dma_size,
-- S3C2410_DCON_SYNC_PCLK |
-- S3C2410_DCON_HANDSHAKE);
-- } else {
-- s3c2410_dma_config(prtd->params->channel,
-- prtd->params->dma_size,
-- S3C2410_DCON_HANDSHAKE |
-- S3C2410_DCON_SYNC_PCLK);
--
-- s3c2410_dma_devconfig(prtd->params->channel,
-- S3C2410_DMASRC_HW, 0x3,
-- prtd->params->dma_addr);
-- }
--
- s3c2410_dma_set_buffdone_fn(prtd->params->channel,
- s3c24xx_audio_buffdone);
-
-@@ -246,6 +226,28 @@ static int s3c24xx_pcm_prepare(struct snd_pcm_substream *substream)
- if (!prtd->params)
- return 0;
-
-+ /* channel needs configuring for mem=>device, increment memory addr,
-+ * sync to pclk, half-word transfers to the IIS-FIFO. */
-+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
-+ s3c2410_dma_devconfig(prtd->params->channel,
-+ S3C2410_DMASRC_MEM, S3C2410_DISRCC_INC |
-+ S3C2410_DISRCC_APB, prtd->params->dma_addr);
-+
-+ s3c2410_dma_config(prtd->params->channel,
-+ prtd->params->dma_size,
-+ S3C2410_DCON_SYNC_PCLK |
-+ S3C2410_DCON_HANDSHAKE);
-+ } else {
-+ s3c2410_dma_config(prtd->params->channel,
-+ prtd->params->dma_size,
-+ S3C2410_DCON_HANDSHAKE |
-+ S3C2410_DCON_SYNC_PCLK);
-+
-+ s3c2410_dma_devconfig(prtd->params->channel,
-+ S3C2410_DMASRC_HW, 0x3,
-+ prtd->params->dma_addr);
-+ }
-+
- /* flush the DMA channel */
- s3c2410_dma_ctrl(prtd->params->channel, S3C2410_DMAOP_FLUSH);
- prtd->dma_loaded = 0;
---
-1.5.6.5
-