On Tue, Dec 23, 2008 at 11:54:03PM +0100, Alexandre Ratchov wrote:
> On Tue, Dec 23, 2008 at 09:39:31AM -0700, Steven wrote:
> > * Jacob Meuser <[email protected]> [081223 01:30]:
> >> On Mon, Dec 22, 2008 at 09:32:17PM -0700, Steven wrote:
> >>> Hi,
> >>>
> >>> I can't seem to get any sound when I run aucat -l.  In /usr/lib I
> >>> have libsndio.so.3.2 as my only libsndio.so.  I've ran make 
> >>> DO_AUTEST=1 and didn't get any errors.
> >>
> >>> eap0 at pci0 dev 14 function 0 "Ensoniq CT5880" rev 0x03: irq 5
> >>> ac97: codec id 0x83847608 (SigmaTel STAC9708/11)
> >>> ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
> >>
> >> hmmm, another ac97 eap having problems with aucat.
> >>
> >> just out of curiousity, can you try the following:
> >>
> >> $ aucat -l &
> >> $ audioctl {play,record}.block_size
> >
> > $ sudo aucat -l &
> > $ sudo audioctl {play,record}.block_size play.block_size=8832
> > record.block_size=9600
> >
> 
> outch! block sizes should always match; aucat verifies this at
> start up and fails with a "can't open device" error message. I
> don't understand how this happened.

hmmm, maybe this helps?  this makes sense, whether it fixes
the problem or not.

-- 
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org

Index: eap.c
===================================================================
RCS file: /home2/cvs/OpenBSD/src/sys/dev/pci/eap.c,v
retrieving revision 1.35
diff -u -r1.35 eap.c
--- eap.c       25 Oct 2008 22:30:43 -0000      1.35
+++ eap.c       23 Dec 2008 23:38:19 -0000
@@ -645,7 +645,7 @@
                /*
                 * Must properly reprogram sample rate converter,
                 * or it locks up.  Set some defaults for the life of the
-                * machine, and set up a sb default sample rate.
+                * machine, and set up an ac97 default sample rate.
                 */
                EWRITE4(sc, E1371_SRC, E1371_SRC_DISABLE);
                for (i = 0; i < 0x80; i++)
@@ -660,9 +660,9 @@
                eap1371_src_write(sc, ESRC_DAC1_VOLR, ESRC_SET_DAC_VOLI(1));
                eap1371_src_write(sc, ESRC_DAC2_VOLL, ESRC_SET_DAC_VOLI(1));
                eap1371_src_write(sc, ESRC_DAC2_VOLR, ESRC_SET_DAC_VOLI(1));
-               eap1371_set_adc_rate(sc, 22050);
-               eap1371_set_dac_rate(sc, 22050, 1);
-               eap1371_set_dac_rate(sc, 22050, 2);
+               eap1371_set_adc_rate(sc, 48000);
+               eap1371_set_dac_rate(sc, 48000, 1);
+               eap1371_set_dac_rate(sc, 48000, 2);
             
                EWRITE4(sc, E1371_SRC, 0);

Reply via email to