NetBSD Problem Report #57087

From www@netbsd.org  Sat Nov 19 01:00:12 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 76CCD1A921F
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 19 Nov 2022 01:00:12 +0000 (UTC)
Message-Id: <20221119010011.4CAAB1A9239@mollari.NetBSD.org>
Date: Sat, 19 Nov 2022 01:00:11 +0000 (UTC)
From: bmelo@protonmail.com
Reply-To: bmelo@protonmail.com
To: gnats-bugs@NetBSD.org
Subject: audio from speaker not working
X-Send-Pr-Version: www-1.0

>Number:         57087
>Category:       kern
>Synopsis:       audio from speaker not working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 19 01:05:00 +0000 2022
>Originator:     Bruno
>Release:        NetBSD 10-CURRENT
>Organization:
>Environment:
NetBSD  9.99.106 NetBSD 9.99.106 (GENERIC) #0: Sun Nov 13 21:57:12 UTC 2022  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
audio is not working from the speakers, only from headphones.
audio0 is HDMI and audio1 headphones (but should be speakers too)

[     1.029804] hdaudio0 at pci3 dev 0 function 1: HD Audio Controller
[     1.029804] hdaudio0: interrupting at msi1 vec 0
[     1.029804] hdaudio0: HDA ver. 1.0, OSS 4, ISS 0, BSS 0, SDO 1, 64-bit
[     1.029804] hdafg0 at hdaudio0: ATI R6xx HDMI
[     1.029804] hdafg0: HDMI00 2ch: Digital Out [Jack]
[     1.029804] hdafg0: 2ch/0ch 32000Hz 44100Hz 48000Hz PCM16 AC3
[     1.029804] audio0 at hdafg0: playback
[     1.029804] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[     1.029804] spkr1 at audio0: PC Speaker (synthesized)
[     1.029804] hdaudio1 at pci3 dev 0 function 6: HD Audio Controller
[     1.029804] hdaudio1: interrupting at msi4 vec 0
[     1.029804] hdaudio1: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
[     1.029804] hdafg1 at hdaudio1: Realtek product 0230
[     1.029804] hdafg1: DAC00 2ch: HP Out [Jack]
[     1.029804] hdafg1: ADC02 2ch: Mic In [Built-In]
[     1.029804] hdafg1: ADC03 2ch: Mic In [Jack]
[     1.029804] hdafg1: 2ch/2ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
[     1.029804] audio1 at hdafg1: playback, capture, full duplex, independent
[     1.029804] audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[     1.029804] audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[     1.029804] spkr2 at audio1: PC Speaker (synthesized)

pcictl pci0 list:

000:00:0: AMD Family17h/1xh Root Complex (host bridge)
000:00:2: AMD Family17h/1xh IOMMU (IOMMU system)
000:01:0: AMD Family17h PCIe (host bridge)
000:01:1: AMD Family17h/1xh PCIe (PCI bridge)
000:01:2: AMD Family17h/1xh PCIe (PCI bridge)
000:08:0: AMD Family17h PCIe (host bridge)
000:08:1: AMD Family17h/1xh PCIe (PCI bridge)
000:20:0: AMD X370/X399 SMBus Controller (SMBus serial bus, revision 0x61)
000:20:3: AMD FCH LPC (ISA bridge, revision 0x51)
000:24:0: AMD Family17h/1xh Data Fabric (host bridge)
000:24:1: AMD Family17h/1xh Data Fabric (host bridge)
000:24:2: AMD Family17h/1xh Data Fabric (host bridge)
000:24:3: AMD Family17h/1xh Data Fabric (host bridge)
000:24:4: AMD Family17h/1xh Data Fabric (host bridge)
000:24:5: AMD Family17h/1xh Data Fabric (host bridge)
000:24:6: AMD Family17h/1xh Data Fabric (host bridge)
000:24:7: AMD Family17h/1xh Data Fabric (host bridge)
001:00:0: vendor 1e95 product 9100 (Flash mass storage, NVMe I/O, revision 0x03)
002:00:0: Atheros Communications product 0042 (miscellaneous network, revision 0x31)
003:00:0: ATI Technologies product 15d8 (VGA display, revision 0xc1)
003:00:1: ATI Technologies product 15de (mixed mode multimedia, HD Audio 1.0)
003:00:2: AMD Family17h/1xh Platform Security Processor (miscellaneous crypto)
003:00:3: AMD Family17h/1xh USB 3.1 xHCI (USB serial bus, xHCI)
003:00:4: AMD Family17h/1xh USB 3.1 xHCI (USB serial bus, xHCI)
003:00:6: AMD Family17h/1xh HD Audio Controller (mixed mode multimedia, HD Audio 1.0)


mixerctl -a for hdafg0 just one line: outputs.dacsel=HDMI00
mixerctl -a for hdafg1:

inputs.dac=174,174
inputs.reclvl=92,92
inputs.reclvl.mute=on
inputs.reclvl2=92,92
inputs.reclvl2.mute=on
record.monitor=0,0
inputs.dac2=0,0
inputs.dac2.mute=off
record.mic=0,0
outputs.master=128,128
outputs.master.mute=on
record.mic2=0,0
record.mic2.mute=on
outputs.dacsel=DAC00
record.source=ADC02,ADC03


Do you need any more infos?
>How-To-Repeat:
I just installed the system.
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.