DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th September 2023
hulten hulten is online now
Port Guard
 
Join Date: Dec 2014
Posts: 42
Question audio stopped working

I have an ThinkPad P14s with azalia(4) audio (see dmesg attached).

Last week audio playback and recording still worked. As of sometime this week not anymore.

I found issues on misc@ with AMD audio and MSI, but it is not the exact same device as I have. Apparently audio can stop working. There is a workaround for this in OpenBSD disabling MSI, but there is no complete solution, mostly due to lacking documentation from AMD, I understood. For this, this thread is relevant.

However, even as I had this issue (at random times audio not working anymore), now the issue is that audio output does not work at all (i.e., just no sound, still bytes go through). Rebooting the system does not help.

Any ideas how to go about this?
Attached Files
File Type: txt dmesg.txt (27.7 KB, 14 views)

Last edited by hulten; 6th September 2023 at 12:59 PM. Reason: corrected the problem description
Reply With Quote
  #2   (View Single Post)  
Old 6th September 2023
hulten hulten is online now
Port Guard
 
Join Date: Dec 2014
Posts: 42
Default mixerctl

Controls show all positive values and nothing is muted:
Quote:
$ mixerctl
inputs.dac-2:3=174,174
inputs.dac-0:1=174,174
record.adc-0:1_mute=off
record.adc-0:1=124,124
record.adc-2:3_mute=off
record.adc-2:3=124,124
outputs.spkr_source=dac-2:3
outputs.spkr_mute=off
outputs.spkr_eapd=on
inputs.mic=85,85
outputs.mic_dir=input-vr80
outputs.hp_source=dac-0:1
outputs.hp_mute=off
outputs.hp_boost=off
outputs.hp_eapd=on
record.adc-2:3_source=mic
record.adc-0:1_source=mic
outputs.mic_sense=unplugged
outputs.hp_sense=unplugged
outputs.spkr_muters=hp
outputs.master=200,200
outputs.master.mute=off
outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp
record.volume=124,124
record.volume.mute=off
record.volume.slaves=adc-0:1,adc-2:3
record.enable=sysctl
Reply With Quote
  #3   (View Single Post)  
Old 6th September 2023
hulten hulten is online now
Port Guard
 
Join Date: Dec 2014
Posts: 42
Default

I think I did not understand my problem properly. Through a headset, I also do not have sound. It is not a problem specific to the azalia audio device.
Reply With Quote
  #4   (View Single Post)  
Old 6th September 2023
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,999
Default

The azalia(4) driver is a generic HD audio driver that manages any hardware which meets the HD Audio 1.0 standard. You're running on the September 3 amd64 snapshot kernel. I just updated to it, and my HD audio hardware -- which is different than yours -- still works.


To figure out what happened with your hardware, I recommend you build kernels, bisecting between a known good kernel and a known bad kernel, to isolate which commit caused the regression. I'd start with HEAD -- just in case there's something uncommitted in the snapshot that caused this, or, if the regression was already found and fixed since the snapshot was built. If there is still an audio failure from your new built kernel, I'd then drop back to a known good kernel and bisect back and forth through commit history to find the culprit.

If you've never built kernels from source before, the release(8) man page has complete instructions. If you clone OpenBSD's github mirror of the src repository into your local /usr/src working directory, git-bisect(1) automates the bisecting process. You just tell it known good and known bad commits, let it select a point-in-time, build, test, and report if its good or bad, lather, rinse, repeat. I can usually find a problem kernel commit in about 7 build/boot/test cycles.
Reply With Quote
  #5   (View Single Post)  
Old 4th October 2023
hulten hulten is online now
Port Guard
 
Join Date: Dec 2014
Posts: 42
Thumbs up

This afternoon I decided to go back to my audio issue. I built and booted a new kernel, but only then I found out that the problem was not in the OpenBSD kernel but a bad environment setting (I had set AUDIOPLAYDEVICE=snd/play, testing different sndiod_flags). Audio works again after removing those.

Thanks for the help. Also, now I know how to build and boot new kernels!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
azalia Intel SCH HD Audio strange audio issues tehsean OpenBSD General 3 26th August 2012 12:21 AM
soud suddenly stopped working Brainfsck NetBSD General 0 25th August 2011 07:00 PM
Power Supply Fan Suddenly Stopped IdOp General Hardware 16 26th June 2010 08:36 PM
Apache with php stopped working after upgrade map7 FreeBSD Ports and Packages 7 7th December 2008 10:39 PM
System stopped sending e-mail messages. bigb89 FreeBSD General 4 30th June 2008 05:20 PM


All times are GMT. The time now is 03:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick