Closed
Bug 1278593
Opened 9 years ago
Closed 7 years ago
Need to restart browser to re-read ALSA config
Categories
(Core :: Audio/Video: cubeb, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: singpolyma, Unassigned)
References
Details
(Whiteboard: [needinfo 2016-08-14 to reporter])
Attachments
(1 file)
7.25 KB,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux i686; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20160211225047
Steps to reproduce:
When I plug in my HDMI cable, it creates /etc/asound.conf to set HDMI to the default output device.
Actual results:
Firefox continued to play though my laptop speakers. Even when loading new pages or new tabs.
Closing Firefox completely and opening it again caused it to play through HDMI.
Expected results:
Should have begun to play through HDMI next time an audio stream was opened (after pause/play or a new video is navigated to or a new tab is used to open a video).
Comment 1•9 years ago
|
||
Does it happen on latest release (https://www.mozilla.org/en-US/firefox/new/) and on latest Nightly build (https://nightly.mozilla.org/)?
Component: Untriaged → Audio/Video: cubeb
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86
Comment 2•9 years ago
|
||
Paul, Matthew -- Can either of you confirm this bug? If so, how much effort is it to resolve?
Flags: needinfo?(padenot)
Flags: needinfo?(kinetik)
Whiteboard: [needinfo 2016-06-12 to kinetik, padenot]
Comment 3•9 years ago
|
||
Does this work in other apps? If so, which ones -- I'm curious what they're doing, as ALSA doesn't really support device switching as far I understand it.
Except for working around a PA-ALSA plugin integration bug, our ALSA backend doesn't cache any ALSA config state across stream creations, so we're not doing anything that should actively prevent config changes at runtime if ALSA supports that.
Note that this should work seamlessly with the PulseAudio backend. We're in the process of deprecating the ALSA backend in favour of PA (there's a bug somewhere, but I can't find it right now), so unless the changes required to make this work are trivial it's unlikely they'll happen unless someone volunteers.
Flags: needinfo?(kinetik)
Updated•9 years ago
|
Flags: needinfo?(padenot)
Comment 4•9 years ago
|
||
Do other app have the behaviour you expect? We don't do anything special on Alsa, so it's a bit surprising.
Flags: needinfo?(singpolyma)
Whiteboard: [needinfo 2016-06-12 to kinetik, padenot] → [needinfo 2016-06-24 to reporter]
Reporter | ||
Comment 5•8 years ago
|
||
Well, on VLC I can just select my audio output manually, so it doesn't really come up.
I expect this has something to do with how ALSA is normally initialised generally, as you say, but if restarting the app fixes it then certainly something could be done without restarting the app?
For now I have worked around by configuring my ALSA to always emit to both HDMI and internal speakers, and then mute internal speakers when I connect HDMI.
Comment 6•8 years ago
|
||
Did the VLC info help? (trying to keep conversation going. This needinfo whiteboard system is imperfect)
Flags: needinfo?(singpolyma) → needinfo?(kinetik)
Whiteboard: [needinfo 2016-06-24 to reporter] → [needinfo 2016-08-12 to kinetik]
Comment 7•8 years ago
|
||
It looks like ALSA tries to re-read the config every time a stream is opened, but libcubeb's hack to work around bugs in the alsa-pulse plugin might be defeating the config reloading. This patch deletes the alsa-pulse workaround entirely, which will hopefully cause config changes to take effect the next time a stream is opened.
If this works, we'll probably need a better fix to commit that retains the alsa-pulse workaround but makes the detection of the plugin more focused -- I suspect the existing code triggers if alsa-pulse is present at all, but we really only need to apply the workaround if it's the device we're going to use. I doubt I'll have time to do this work, with bug 1247056 we're trying to deprecate ALSA support and direct our development energy towards the PA backend.
Updated•8 years ago
|
Assignee: nobody → kinetik
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 8•8 years ago
|
||
Test builds will appear at https://archive.mozilla.org/pub/firefox/try-builds/mgregan@mozilla.com-140fd862b6abf20b501e7deb4b644531ee0f2f31/ in a couple of hours. Please try them and let me know how you get on.
Assignee: kinetik → nobody
Status: ASSIGNED → UNCONFIRMED
Ever confirmed: false
Flags: needinfo?(kinetik) → needinfo?(singpolyma)
Updated•8 years ago
|
Whiteboard: [needinfo 2016-08-12 to kinetik] → [needinfo 2016-08-14 to reporter]
Updated•7 years ago
|
Updated•3 years ago
|
Flags: needinfo?(singpolyma)
You need to log in
before you can comment on or make changes to this bug.
Description
•