Summary: | audio/alsa-plugins: one of last updates breaks webrtc in www/chromium | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Oleh Hushchenkov <o.hushchenkov> | ||||||
Component: | Individual Port(s) | Assignee: | Hans Petter Selasky <hselasky> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | chromium, hselasky, o.hushchenkov | ||||||
Priority: | --- | ||||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Oleh Hushchenkov
2022-02-07 09:33:06 UTC
Can you use chrome with sndiod in the meanwhile? Is this a custom build? Can you share some information about what kind of audio device you are using? --HPS (In reply to Hans Petter Selasky from comment #2) Yes, this is chromium from ports tree with ALSA enabled. (In reply to Hans Petter Selasky from comment #3) This is ThinkPad T440P laptop. cat /dev/sndstat Installed devices: pcm0: <Intel Haswell (HDMI/DP 8ch)> (play) pcm1: <Realtek ALC292 (Analog 2.0+HP/2.0)> (play/rec) default pcm2: <Realtek ALC292 (Left Analog Mic)> (rec) No devices installed from userspace. (In reply to Hans Petter Selasky from comment #1) I have no sndio installed and chromium built without sndio support. Created attachment 231599 [details]
ALSA plugins patch
Can you test this patch? With the latest alsa-plugins port?
(In reply to Hans Petter Selasky from comment #7) With the patch almost the same. Google meet: [6607:114276:0207/124146.333440:ERROR:alsa_output.cc(657)] ALSA returned 5292 of 1764 frames available. [6607:114276:0207/124146.333593:ERROR:alsa_output.cc(657)] ALSA returned 5292 of 1764 frames available. [6607:114276:0207/124146.344133:ERROR:alsa_output.cc(657)] ALSA returned 5292 of 1764 frames available. [6607:114276:0207/124146.344267:ERROR:alsa_output.cc(657)] ALSA returned 5292 of 1764 frames available. [6607:114276:0207/124146.354369:ERROR:alsa_output.cc(657)] ALSA returned 5292 of 1764 frames available. [6607:114276:0207/124146.354439:ERROR:alsa_output.cc(657)] ALSA returned 5292 of 1764 frames available. [6607:114276:0207/124146.365253:ERROR:alsa_output.cc(657)] ALSA returned 5292 of 1764 frames available. Skype web: [6636:100392:0207/124623.729582:ERROR:alsa_output.cc(657)] ALSA returned 12064 of 4096 frames available. [6636:100392:0207/124623.729749:ERROR:alsa_output.cc(657)] ALSA returned 12064 of 4096 frames available. [6636:100392:0207/124623.772094:ERROR:alsa_output.cc(657)] ALSA returned 12096 of 4096 frames available. [6636:100392:0207/124623.772259:ERROR:alsa_output.cc(657)] ALSA returned 12096 of 4096 frames available. [6636:100392:0207/124623.815172:ERROR:alsa_output.cc(657)] ALSA returned 12064 of 4096 frames available. [6636:100392:0207/124623.815753:ERROR:alsa_output.cc(657)] ALSA returned 12064 of 4096 frames available. [6636:100392:0207/124623.857242:ERROR:alsa_output.cc(657)] ALSA returned 12096 of 4096 frames available. [6636:100392:0207/124623.857384:ERROR:alsa_output.cc(657)] ALSA returned 12096 of 4096 frames available. [6636:100392:0207/124623.900581:ERROR:alsa_output.cc(657)] ALSA returned 12064 of 4096 frames available. [6636:100392:0207/124623.900720:ERROR:alsa_output.cc(657)] ALSA returned 12064 of 4096 frames available. [6636:100392:0207/124623.942799:ERROR:alsa_output.cc(657)] ALSA returned 12096 of 4096 frames available. [6636:100392:0207/124623.943068:ERROR:alsa_output.cc(657)] ALSA returned 12096 of 4096 frames available. Created attachment 231623 [details]
ALSA plugins patch v2
Please try this updated patch.
Thank you!
(In reply to Hans Petter Selasky from comment #9) Hi Hans, The second patch works. Thank you for the quick fix and all your efforts on FreeBSD audio and USB support. Thank you for testing! A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e66a5ac7ef614d579dcb68d7213b87fec617eee7 commit e66a5ac7ef614d579dcb68d7213b87fec617eee7 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2022-02-07 23:23:21 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2022-02-08 09:15:40 +0000 audio/alsa-plugins: Fix more oss_pointer() calculation bugs. Correctly set the water level based on min_avail to avoid infinite polling loops. Applications tested: chrome, musescore, aplay and arecord . PR: 261767 Approved by: pi (implicit) audio/alsa-plugins/Makefile | 2 +- audio/alsa-plugins/files/patch-oss_pcm__oss.c | 129 +++++++++++++++----------- 2 files changed, 76 insertions(+), 55 deletions(-) |