alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] soc - S3C2410 pcm - Update for changed s3c2410 DMA API change
@ 2008-05-05 12:13 Mark Brown
  2008-05-05 12:13 ` [PATCH 2/3] soc - S3C2410 i2s - Add support for master and left justified modes Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2008-05-05 12:13 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel, Mark Brown, ing. Davide Rizzo

From: ing. Davide Rizzo <davide@elpa.it>

S3C2410 pcm doesn't work.
s3c2410_dma_request() now returns the channel number and not 0 if OK.
Davide

This patch to update to a s3c2410_dma_request return value change

Signed-off-by: Davide Rizzo <davide@elpa.it>
Acked-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/s3c24xx/s3c24xx-pcm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/s3c24xx/s3c24xx-pcm.c b/sound/soc/s3c24xx/s3c24xx-pcm.c
index 6c70a81..7806ae6 100644
--- a/sound/soc/s3c24xx/s3c24xx-pcm.c
+++ b/sound/soc/s3c24xx/s3c24xx-pcm.c
@@ -171,7 +171,7 @@ static int s3c24xx_pcm_hw_params(struct snd_pcm_substream *substream,
 		ret = s3c2410_dma_request(prtd->params->channel,
 					  prtd->params->client, NULL);
 
-		if (ret) {
+		if (ret < 0) {
 			DBG(KERN_ERR "failed to get dma channel\n");
 			return ret;
 		}
-- 
1.5.5.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-05 12:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-05 12:13 [PATCH 1/3] soc - S3C2410 pcm - Update for changed s3c2410 DMA API change Mark Brown
2008-05-05 12:13 ` [PATCH 2/3] soc - S3C2410 i2s - Add support for master and left justified modes Mark Brown
2008-05-05 12:14   ` [PATCH 3/3] soc - Patch to add debug messages to the neo1973_wm8753 (GTA01) sound driver Mark Brown
2008-05-05 12:18     ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).