ALSA: asihpi - Fix outstream start trigger for non-mmap adapters.

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Eliot Blennerhassett 2011-02-10 17:26:20 +13:00 committed by Takashi Iwai
parent 7f41b61b3b
commit c4ed97d9e7
1 changed files with 2 additions and 1 deletions

View File

@ -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;