Summary: | audio/pulseaudio: no microphone in firefox | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Tomasz "CeDeROM" CEDRO <tomek> |
Component: | Individual Port(s) | Assignee: | freebsd-desktop (Team) <desktop> |
Status: | Closed DUPLICATE | ||
Severity: | Affects Only Me | CC: | grahamperrin, hselasky |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(desktop) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any |
Description
Tomasz "CeDeROM" CEDRO
2021-11-05 14:44:49 UTC
Was pulseaudio started? Sure :-) No change in setup. I can hear audio outputs, change sinks on the fly, the microphones are on the list but no audio comes in after recent updates of firefox / pulseaudio. Pulseaudio plays with the mixer settings. Can you check that the volume for your mike is OK? --HPS Yup the mixer is okay. The same microphone works with oss and sndio. I have tried to rebuild PA with other settings, no change, removing /usr/local/etc/pulse and using default configs, no change, replaced pulse with pulse-rust in FF backend, no change. Cannot check with older version of FF because it uses older libraries and wont run. I will switch to OSS backend for now in FF. What is strange Firefox can see other microphones on the list but none of them give any data. Looking at PulseAudio Troubleshooting Microphone part: https://wiki.archlinux.org/title/PulseAudio/Troubleshooting#Microphone_not_detected_by_PulseAudio There is arecord utility that can help troubleshoot microphone issues. It should return card list when invoked with -l switch, but it gives "no soundcards found...". % arecord -l arecord: device_list:279: no soundcards found... Wow, this is strange, PulseAudio on my system is auto started by Enligthenment WM. I can see switch and control cards over E Mixer. But command line PA tools see no cards :-) % pacmd list-cards 0 card(s) available. PA daemon is running for sure with local user privileges. # ps aux|grep pulse cd 81045 0.0 0.1 109012 10416 - I 17:29 0:00.18 /usr/local/bin/pulseaudio --start --log-target=syslog % pacmd dump ### Configuration dump generated at Fri Nov 5 18:15:31 2021 load-module module-device-restore load-module module-stream-restore load-module module-card-restore load-module module-augment-properties load-module module-switch-on-port-available load-module module-oss device=/dev/dsp0 load-module module-oss device=/dev/dsp1 load-module module-oss device=/dev/dsp2 load-module module-oss device=/dev/dsp3 load-module module-oss device=/dev/dsp4 load-module module-native-protocol-unix load-module module-default-device-restore load-module module-always-sink load-module module-intended-roles load-module module-suspend-on-idle load-module module-console-kit load-module module-position-event-sounds load-module module-role-cork load-module module-filter-heuristics load-module module-filter-apply load-module module-cli-protocol-unix set-sink-volume oss_output.dsp0 0xc000 set-sink-mute oss_output.dsp0 no suspend-sink oss_output.dsp0 yes set-sink-volume oss_output.dsp1 0x4000 set-sink-mute oss_output.dsp1 no suspend-sink oss_output.dsp1 yes set-sink-volume oss_output.dsp2 0xc000 set-sink-mute oss_output.dsp2 no suspend-sink oss_output.dsp2 yes set-sink-volume oss_output.dsp3 0xd999 set-sink-mute oss_output.dsp3 no suspend-sink oss_output.dsp3 yes set-sink-volume oss_output.dsp4 0xc000 set-sink-mute oss_output.dsp4 no suspend-sink oss_output.dsp4 yes set-source-volume oss_output.dsp0.monitor 0x10000 set-source-mute oss_output.dsp0.monitor no suspend-source oss_output.dsp0.monitor yes set-source-volume oss_input.dsp1 0xc000 set-source-mute oss_input.dsp1 no suspend-source oss_input.dsp1 yes set-source-volume oss_output.dsp1.monitor 0x10000 set-source-mute oss_output.dsp1.monitor no suspend-source oss_output.dsp1.monitor yes set-source-volume oss_input.dsp2 0x8000 set-source-mute oss_input.dsp2 no suspend-source oss_input.dsp2 yes set-source-volume oss_output.dsp2.monitor 0x10000 set-source-mute oss_output.dsp2.monitor no suspend-source oss_output.dsp2.monitor yes set-source-volume oss_input.dsp3 0x000 set-source-mute oss_input.dsp3 no suspend-source oss_input.dsp3 yes set-source-volume oss_output.dsp3.monitor 0x10000 set-source-mute oss_output.dsp3.monitor no suspend-source oss_output.dsp3.monitor yes set-source-volume oss_input.dsp4 0x7333 set-source-mute oss_input.dsp4 no suspend-source oss_input.dsp4 yes set-source-volume oss_output.dsp4.monitor 0x10000 set-source-mute oss_output.dsp4.monitor no suspend-source oss_output.dsp4.monitor yes set-default-sink oss_output.dsp4 set-default-source oss_input.dsp4 ### EOF Okay so the best GUI control tool for PulseAudio is the pavucontrol. It allows simple control over everything in PA. Even display jumping bars per microphone input, and they jump, so the microphones are working from PA standpoint. Seems to be problem with Firefox? ;-) Did you try to ktrace -d firefox? Try to see what dsp devices it opens and what ioctls are used. --HPS Thank you HPS for your time and hints. I have no more time to play with it at the moment sorry. When switching to OSS mic works fine but audio output seems jittered and video playback hangs. That may be something wrong with my local setup. Lets see if anyone reports similar issue or how it behaves with following PA / FF updates. TANK U SIR! :-) :-) Sound jittering and streaming ripping is caused by dramatic Facebook solutions (also tested on current macOS). On BSD + PA when stream cuts several times per second output sink is destroyed and created again. It also consumes all of my memory and CPU. Who even use this FB crap anyway ;-) Everything else works fine :-) Problem report confirmation on the mailing lists showed up. Yuuup :-) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257639 Thank you HPS! :-) *** This bug has been marked as a duplicate of bug 257639 *** |