[ALSA] s3c24xx-pcm: fix hw_params dma handling
authorHarald Welte <laforge@openmoko.org>
Tue, 24 Jul 2007 10:49:39 +0000 (12:49 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 13:57:57 +0000 (15:57 +0200)
commit646ab160ff5e672838209dbd679d50af63fbd366
treeb2661fdcd378aa090f6135ef0e2507da8110998e
parentfca7f38892fa713d5221e26fd3ee57817b4bc031
[ALSA] s3c24xx-pcm: fix hw_params dma handling

Since the PCM emulation can call multiple times to hw_setup(), but we
can only once allocate/request the DMA channel, we have to handle
this gracefully.

Signed-off-by: Harald Welte <laforge@openmoko.org>
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/soc/s3c24xx/s3c24xx-pcm.c