Skip to content

Commit

Permalink
[ALSA] soc - fix s3c2410 PCM breakage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Davide Rizzo authored and Takashi Iwai committed May 5, 2008
1 parent 2e75d05 commit d642617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/s3c24xx/s3c24xx-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d642617

Please sign in to comment.