Video playback from Instagram stalls on Firefox when selecting a USB DAC via pavucontrol

未关闭
#503 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
12/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
c, linux

调研方向

The payload names no file or test in alsa-lib. The only code pointer is the PulseAudio log line about a failed resume, which points at pa_alsa_set_hw_params() in PulseAudio's ALSA sink code, outside this repository. Reproducing needs the reporter's hardware, kernel and library versions, and no maintainer has responded in 167 days. Done would mean identifying which change causes the resume failure, which the issue does not establish.

由索引模型根据 Issue 内容生成。

描述

This is a very weird one, and I'm not certain where the actual bug is but hope that the devs here might have an idea. The context is "retro-computing" though...

'm setting up a refurb G3 Elitebook (6th Gen i7 with HD520 GPU) with a retro install based on a self-updated "FrankUbuntu" 14.04LTS. 5.15.95 xanmod kernel, mesa v21.3.9, recent intel-media and intel-vaapi libraries, pulseaudio 17 and current alsa-libs. I'm hesitant to update libc so that has remained on 2.19 .
Video works and uses the HD driver from the intel-media package, but there is an issue with playback of Instagram videos. As soon as I select a USB DAC (e.g. via pavucontrol), playback halts but resumes as soon as switch back to the internal audio interface. Or to a USB audio->bluetooth dongle (= an audio interface that probably contains neither DAC nor amp but sends the incoming PCM data to a BT radio). The issue disappears when I boot an older (5.6) kernel but also when I boot a newer distro (Devuan "Chimaera") with the same kernel (but earlier Alsa and pulseaudio versions and a newer libc).

The only thing hinting at the possible error that I get appears in the syslog, from pulseaudio:

[ [alsa-sink-USB Audio] alsa-sink.c: Resume failed, couldn't restore original fragment settings. (Old: 576000/288000, New 529200/264600)]

That suggests something goes wrong in pa_alsa_set_hw_params() but could that explain the video halting too?

Fun fact: with alsa 1.2.15.2 the issue only affected IG "stories"; with 1.2.15.3 all videos are affected.

Video playback is fine on all other sites I tested (YT, Prime Video) and also in my standalone multimedia player (QMPlay2), all routed directly via PulseAudio or via ALSA's pulseaudio plugin.
Sadly there are no recent enough Chromium builds that I can test (other than via flatpak).

I'm aware that this could be a bug in PulseAudio or even Firefox, but given the intricate dependencies on hardware, kernel and possibly ALSA versions I thought I'd ask here first as I expect there'll be more devs who might be able to (guide me) put a finger on the underlying issue.

主要语言
C
星标
501
派生
227
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

alsa-project/alsa-lib 的其他 Issue

查看 alsa-project/alsa-lib 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。