Skip to contentSkip to conversation

S3C2410 pcm audio broken

PATCH Liam Girdwood 1 participant 1 message May 4, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Liam Girdwood

author Acked-by
#1 lore raw
Quoted 11 lines · ing. Davide Rizzo

S3C2410 pcm doesn't work.
s3c2410_dma_request() now returns the channel number and not 0 if OK. Davide
plain text document attachment (s3c24xx-pcm.patch)
This patch to update to a s3c2410_dma_request return value change

================================================================================

sound/soc/s3c24xx/s3c24xx-pcm.c static int s3c24xx_pcm_hw_params(struct

Quoted 9 lines
sound/soc/s3c24xx/s3c24xx-pcm.c +1 -2
@@ -171,7 +171,7 @@ static int s3c24xx_pcm_hw_params(struct 
 		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;
 		}
-------------------------------------------------------------------