El Tue, 05 Mar 2024 17:10:36 +0100 rol...@mhsmail.ch escribió: > > Synopsis: No audio on the headphone output when playing an > > audio file with `aucat -i file.wav` > > Category: system, amd64 > > Environment: > System : OpenBSD 7.4 > Details : OpenBSD 7.4 (GENERIC.MP) #3: Wed Feb 28 > 06:23:33 MST 2024 > r...@syspatch-74-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > > Description: > Headphones plugged into the analog headphones output, then > playing an audio file by entering `aucat -i file.wav`. > No audio can be heard. After a couple of seconds, a message > appears: "default: audio device gone, stopping". > `cat > /dev/audio0 < /dev/zero &`, followed by `audioctl > play.{bytes,errors}` shows: "play.bytes=0, play.errors=0". > Robert Nagy (rob...@openbsd.org) recommended trying > `sndioctl server.device=1`, `sndioctl server.device=2`, `sndioctl > server.device=3`, but neither of those helped. Error message: > "default: can't open conrol device". > After that, Robert wrote: "I think at this point it is > better to send a bug report to bugs@". > > How-To-Repeat: > 1. Plug headphones into the headphones output of the PC. > 2. Type `sndioctl` and make sure there's a reasonable > `output.level` and `output.mute=0` and `server.device=0`. > 3. Type `aucat -i file.wav`. > 4. To: bugs@openbsd.org > Subject: aucat -i file.wav # message: "default: audio device gone, > stopping" > From: rol...@mhsmail.ch > Reply-To: rolf.f@mhsmail.chResult: No audio signal on the headphones. > > Fix: > Work around (sort of): > 1. Connect a USB-to-headphones adapter to a USB outlet of > the PC, and connect the headphones to the adapter. > 2. Type `sndioctl server.device=1`, as described in > `https://www.openbsd.org/faq/faq13.html#usbaudio`. > 3. Type `aucat -i file.wav`. > 4. Result: The audio signal can be heard on the headphones. >
Your audio hardware: azalia1 at pci15 dev 0 function 6 "AMD 17h/1xh HD Audio" rev 0x00: apic azalia1: codecs: Realtek ALC897 Welcome to group...I have: "AMD 17h/1xh HD Audio" with Realtek ALC892, and the same issue. This issue is old and well known, it mostly affects AMD Ryzen users, and it seems to be some kind of bug in AMD's hardware interrupt handling, but it has not been able to be solved in OpenBSD, at least what has been tried, works temporarily before we run out of audio and have to restart the system to recover (until the bug appears again). -- ********************************************************* Dios en su cielo, todo bien en la Tierra