Bug 238587 - [hdac] AMD hdac + Realtek codec: occasionally stops working with interrupt mode and needs polling
Summary: [hdac] AMD hdac + Realtek codec: occasionally stops working with interrupt mo...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-multimedia mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-15 20:30 UTC by Greg V
Modified: 2019-08-12 01:42 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg V 2019-06-15 20:30:38 UTC
(Ryzen 1st gen on an MSI X370 SLI PLUS)

hdac1: <AMD (0x1457) HDA Controller> mem 0xfcf00000-0xfcf07fff irq 43 at device 0.3 on pci14
hdacc1: <Realtek ALC892 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC892 Audio Function Group> at nid 1 on hdacc1
pcm6: <Realtek ALC892 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa1
pcm7: <Realtek ALC892 (Front Analog)> at nid 27 and 25 on hdaa1

Occasionally (not very often, sometimes it's like, a week without this)

- the sound stops working (playback starts stuttering on the same sample and the progress in the music/video player stops going forward)
- I don't think any messages are logged (I'll recheck next time it happens)
- sysctl dev.hdac.1.polling=1 fixes the problem and playback resumes fine
Comment 1 Conrad Meyer freebsd_committer 2019-06-15 20:59:48 UTC
I've observed similar symptoms very occasionally also (1st gen Zen Threadripper, X399 board).  In my instances, it's hdac0 rather than hdac1; and "devctl disable -f hdac0 ; devctl enable hdac0" resolves the issue.