On Fri, May 09, 2025 at 02:08:45AM +0200, Christian Schulte wrote:
> Hi @misc,
> 
> when the kernel attaches the audio drivers, there is audible noise in the
> headphones immediately. Way before sndiod is started. That noise is permanent.
> I thought this is normal due to the audio hardware being crappy so did not
> care. Helping someone with a hard drive, I booted that same machine into
> Windows 10 from that harddrive and was supprised that there is no noise at 
> all.
> Is there something I can do to make it not produce noise on OpenBSD as well?
> Windows loads some Realtek HD Audio driver whatsoever. Could it be that driver
> knows about any hardware shortcomings and suppresses that noise in the driver
> which the azalia driver does not and cannot do, as it is a common driver for
> many devices? Where to start?

> bios0: LENOVO 20AL00ETGE
...
> azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x04: msi
> azalia1: codecs: Realtek ALC292

try this, the quirk is described as:
'Close PC beep passthrough to avoid headphone noise'

Index: sys/dev/pci/azalia_codec.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
diff -u -p -r1.189 azalia_codec.c
--- sys/dev/pci/azalia_codec.c  8 Sep 2022 01:35:39 -0000       1.189
+++ sys/dev/pci/azalia_codec.c  8 May 2025 00:52:37 -0000
@@ -206,6 +206,8 @@ azalia_codec_init_vtbl(codec_t *this)
                    this->subid == 0x503617aa ||
                    this->subid == 0x503c17aa)
                        this->qrks |= AZ_QRK_WID_TPDOCK2;
+               if (this->subid == 0x221417aa)
+                       this->qrks |= AZ_QRK_WID_CLOSE_PCBEEP;
                break;
        case 0x10ec0293:
                if (PCI_VENDOR(this->subid) == PCI_VENDOR_DELL)

Reply via email to