Update of /cvsroot/alsa/alsa-kernel/isa/opti9xx
In directory sc8-pr-cvs1:/tmp/cvs-serv16269
Modified Files:
opti92x-ad1848.c
Log Message:
- fixed the capture open, passing the capture_substream correctly.
- added a small delay to the trigger START for the capture.
Index: opti92x-ad1848.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/opti9xx/opti92x-ad1848.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- opti92x-ad1848.c 31 Jan 2003 15:19:57 -0000 1.21
+++ opti92x-ad1848.c 13 Mar 2003 09:24:03 -0000 1.22
@@ -987,9 +987,11 @@
s = s->link_next;
} while (s != substream);
spin_lock(&chip->lock);
- if (cmd == SNDRV_PCM_TRIGGER_START)
+ if (cmd == SNDRV_PCM_TRIGGER_START) {
snd_opti93x_out_mask(chip, OPTi93X_IFACE_CONF, what, what);
- else
+ if (what & OPTi93X_CAPTURE_ENABLE)
+ udelay(50);
+ } else
snd_opti93x_out_mask(chip, OPTi93X_IFACE_CONF, what, 0x00);
spin_unlock(&chip->lock);
break;
@@ -1207,6 +1209,7 @@
return error;
runtime->hw = snd_opti93x_capture;
snd_pcm_set_sync(substream);
+ chip->capture_substream = substream;
snd_pcm_limit_isa_dma_size(chip->dma2, &runtime->hw.buffer_bytes_max);
snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
&hw_constraints_rates);
return error;
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog