On Fri, Oct 24, 2008 at 12:57:54AM -0700, Aaron Stellman wrote:
> Hello misc@,
> Compiled freshly checked out -current from 10/23/08 -- no sound.
> Looked through mixerctl and audioctl outputs, didn't find anything
> interesting.
> Downgraded azalia_codec.c to 1.49
>            azalia.h to 1.15
>            azalia.c to 1.55
> recompiled kernel -- sound works again.
> If needed, I could track down exact revision that causes the problem.
> Here's dmesg, GAMMA = GENERIC.MP + NTFS

> OpenBSD 4.4-current (GAMMA) #37: Fri Oct 24 00:47:46 PDT 2008
>     [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GAMMA
> real mem = 2090717184 (1993MB)
> avail mem = 2029920256 (1935MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
> bios0: vendor LENOVO version "7LETB9WW (2.19 )" date 06/06/2008
> bios0: LENOVO 7658CTO

I have run into the same problem.  Also, on a Lenovo ThinkPad T61
7658-CTO.

The regression happened in version 1.59 of azalia.c.  I don't have
access to the machine at the moment.  However, backing out this
particular change appears to fix it.

Index: azalia.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia.c,v
retrieving revision 1.61
diff -u -p -r1.61 azalia.c
--- azalia.c    23 Oct 2008 02:06:53 -0000      1.61
+++ azalia.c    24 Oct 2008 13:17:04 -0000
@@ -1562,7 +1562,8 @@ azalia_codec_connect_stream(codec_t *thi
                        this->comresp(this, nid, CORB_SET_DIGITAL_CONTROL_L,
                            v, NULL);
                }
-               startchan += WIDGET_CHANNELS(&this->w[nid]);
+               if (nchan > 2)
+                       startchan += WIDGET_CHANNELS(&this->w[nid]);
        }
 
 exit:

Reply via email to