From: Eliot Blennerhassett Date: Thu, 10 Feb 2011 04:26:20 +0000 (+1300) Subject: ALSA: asihpi - Fix outstream start trigger for non-mmap adapters. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c4ed97d9e7ec9b8c8453af4ce55497d85970426c;p=openwrt%2Fstaging%2Fblogic.git ALSA: asihpi - Fix outstream start trigger for non-mmap adapters. Signed-off-by: Eliot Blennerhassett Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index b824df11dd02..0ac1f98d91a1 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c @@ -625,7 +625,8 @@ static int snd_card_asihpi_trigger(struct snd_pcm_substream *substream, VPRINTK1(KERN_INFO "start\n"); /* start the master stream */ snd_card_asihpi_pcm_timer_start(substream); - if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) + if ((substream->stream == SNDRV_PCM_STREAM_CAPTURE) || + !card->support_mmap) hpi_handle_error(hpi_stream_start(dpcm->h_stream)); break;