On Fri, Oct 23, 2009 at 11:12:34AM +0200, pet...@schwertfisch.de wrote:
> After a fresh install of OpenBSD 4.6 my sound card stopped working,
> i.e., I can hear nothing when playing audio. It worked just fine in 4.5.
> The card is an M-Audio Audiophile 2496 using envy(4).
> I run "aucat -l" before playing audio.
> 

i guess this is because codecs aren't initialized.
could you try the diff below?

It should show in dmesg as ``M-Audio Audiophile 2496'', and
should work as in 4.5 except that there will be the right
number of ``inputs'' and ``outputs'' mixer controls.

i'm interested in the output of dmesg, audioctl and mixerctl
with the diff applied, even if it works :)

-- Alexandre

Index: envy.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/envy.c,v
retrieving revision 1.29
diff -u -p -r1.29 envy.c
--- envy.c      11 Oct 2009 12:59:29 -0000      1.29
+++ envy.c      23 Oct 2009 10:19:21 -0000
@@ -39,10 +39,12 @@
 #include <dev/audio_if.h>
 #include <machine/bus.h>
 
+#define ENVY_DEBUG
+
 #ifdef ENVY_DEBUG
 #define DPRINTF(...) do { if (envydebug) printf(__VA_ARGS__); } while(0)
 #define DPRINTFN(n, ...) do { if (envydebug > (n)) printf(__VA_ARGS__); } 
while(0)
-int envydebug = 1;
+int envydebug = 2;
 #else
 #define DPRINTF(...) do {} while(0)
 #define DPRINTFN(n, ...) do {} while(0)
@@ -230,6 +232,13 @@ struct envy_card envy_cards[] = {
                PCI_ID_CODE(0x1412, 0xd63b),
                "M-Audio Delta 1010LT",
                8, &ak4524_adc, 8, &ak4524_dac,
+               delta_init,
+               delta_codec_write,
+               NULL
+       }, {
+               PCI_ID_CODE(0x1412, 0xd634),
+               "M-Audio Audiophile 2496",
+               2, &ak4524_adc, 2, &ak4524_dac,
                delta_init,
                delta_codec_write,
                NULL

Reply via email to