[alsa-devel] [PATCH 27/28] Fix outstream start trigger for non-mmap adapters.
linux at audioscience.com
linux at audioscience.com
Thu Feb 10 05:26:20 CET 2011
From: Eliot Blennerhassett <eblennerhassett at audioscience.com>
Signed-off-by: Eliot Blennerhassett <eblennerhassett at audioscience.com>
---
pci/asihpi/asihpi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pci/asihpi/asihpi.c b/pci/asihpi/asihpi.c
index b2c0c8a..c0ae94f 100644
--- a/pci/asihpi/asihpi.c
+++ b/pci/asihpi/asihpi.c
@@ -632,7 +632,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;
--
1.7.0.4
More information about the Alsa-devel
mailing list