Bug 239062 - no sound from Realtek ALC282 (analog) chipset in Trident OS
Summary: no sound from Realtek ALC282 (analog) chipset in Trident OS
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-multimedia mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-09 13:12 UTC by mauro
Modified: 2019-07-27 16:40 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 mauro 2019-07-09 13:12:51 UTC
used Trueos 18.03 before and now Trident at his actual release.  I never could hear any sound played from my onboard audio chipset Realtek ALC282, although it appears as the working default audio item in the mixer. I can provisionally solve this by connecting a common usb audio device which then works fine, but I'd like to make my default audio chipset working as it is supposed to, since it is even detected in the mixer.  I point that on same pc with other OSes (Windows, Linux) have no sound problems with it.
Thank you
Comment 1 BorichL 2019-07-25 15:20:10 UTC
I have same problem on Acer V3-772G (Pegatron VA70HW rev 2.0) with FreeBSD 10, 11,12 - no sound and message from kernel "pcm0: ...... play interrupt timeout, channel dead". 
This codec works fine with Azalia driver on NetBSD or OpenBSD.
Please try sysctl dev.hdac.0.polling=1, this setting helps some people do this codec works.
Comment 2 mauro 2019-07-25 19:59:48 UTC
(In reply to BorichL from comment #1)

hi BorichL, do I have to write this command in the terminal window?
Comment 3 rkoberman 2019-07-25 21:21:23 UTC
(In reply to mauro from comment #2)
Well, I'm not BorichL and can't do much to help, but, yes, you need to enter this as a shell command. "sysctl dev.hdac.0.polling=1"
Comment 4 BorichL 2019-07-25 21:49:19 UTC
(In reply to mauro from comment #2)

You need to enter in the terminal window shell command

dmesg |grep hdaa 

and find in the output string like 

hdaa1: <Realtek ALC282 Audio Function Group> at nid 1 on hdacc1

In this example from my notebook codec having device number 1 (hdaa1) and command must be "sysctl dev.hdac.1.polling=1"

If this help, you may be add dev.hdac.0.polling=1 or dev.hdac.1.polling=1 in your /etc/sysctl.conf 

Even if this setting helps, we need patch for snd_hda driver. Pooling mode will be increase CPU load by comparison with interrupt mode.
Comment 5 mauro 2019-07-27 16:40:10 UTC
Very good!
Now I can hear sounds from the laptop speaker with:

dev.hdac.1.polling=1

(while dev.hdac.0.polling=1 did not work)

the only oddity remaining it that still no sound coming from my hearphones although connected to the combo audio port, I can still hear same sound/volume from laptop speaker, not from hearphones.

But it is going much more good tha before.
Thank you