浏览代码

[ALSA] soc - fix s3c2410 PCM breakage

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

Signed-off-by: Davide Rizzo <davide@elpa.it>
Acked-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Davide Rizzo 17 年之前
父节点
当前提交
d6426171ba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/soc/s3c24xx/s3c24xx-pcm.c

+ 1 - 1
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;
 		}