Audio garbled when using Multi plugin to record from 2+ USB soundcards on Raspberry Pi
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 12/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- c, linux, raspberry-pi
调研方向
The problem sits in the pcm_multi plugin of alsa-lib, and the reporter links the upstream commit 369df322577034ea872978d6470edbadf30d81a9 as the change they believe matters. Start by reading that commit and the pcm_multi source it touches, then reproduce with two identical USB PnP capture devices on a Raspberry Pi. The issue asks for advice on a workaround rather than naming a change, so there is no clear definition of done yet.
由索引模型根据 Issue 内容生成。
描述
I have been trying to use the multi plugin to record multiple channels from multiple soundcards on the Raspberry Pi. The results are a garbled mess.
==== EDIT 26/08 ====
Having probed the issue some more, I would like to add more detail:
The devices and drivers I try to use are:
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Device_1 [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
...Curiously, I have actually had success using the multi plugin to record using a pro audio interface AND ONE USB PnP Sound Device, in this set up
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: USB [Scarlett 2i2 USB], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
HOWEVER, if I try to add another USB PnP Sound Device to the multi setup, then the result is a garbled mess. My conclusion is that the multi plugin works generally, but it does NOT work for two or more USB PnP Sound Device. Something tells me that the plugin cannot differentiate the addresses of the audio frames held in two or more of these cheap USB microphones.
I have a more verbose post of my issue here: https://www.reddit.com/r/linuxaudio/comments/1m24po8/recording_on_multiple_usb_mics_on_raspberry_pi/
===EDIT 26/08 The following diagnosis was wrong:
I have diagnosed the reasons as thus:
- current raspberry Pi OS uses alsa v1.2.8+rpt1
- the "fix" for the multi plugin was implemented in v1.2.9 : https://github.com/alsa-project/alsa-lib/commit/369df322577034ea872978d6470edbadf30d81a9
I am aware that the multi plugin was not meant to be used on multiple soundcards that are not in sync, however if the clock drifts over time, this is ok for my application.
I am here to seek advice on how I should go about creating a workaround. The limitations are that I need to use cheap USB microphones (it is a weight issue).
Without going along the microcontroller route, I thought one way was to make an external plugin, based on the newly patched pcm_multi plugin. I am working on this, while climbing the steep learning curve. Perhaps I can contribute an external plugin for the project...
In the meantime, does a developer have a better suggestion that I might have success with? Or any tips if you are familiar with the pcm_multi plugin? @perexg ?
- 主要语言
- C
- 星标
- 501
- 派生
- 227
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
alsa-project/alsa-lib 的其他 Issue
-
USB-Audio: ASUS ROG Zenith II S/PDIF output mapped to wrong PCM device可能已有人在做 @byrcolin 于 49 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
alsa-project/alsa-lib#532 ·
-
难度 5/5 一周以上 新手友好度 12/100
alsa-project/alsa-lib#530 · 9 个 reaction ·
-
kernel driver
难度 5/5 一周以上 新手友好度 12/100
alsa-project/alsa-lib#529 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 55/100
alsa-project/alsa-lib#522 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 15/100
alsa-project/alsa-lib#519 ·
查看 alsa-project/alsa-lib 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
fastfetch-cli/fastfetch#2780 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
elliotchance/vsql#2079 ·
维护者通常 1 天内回复
-
category:port-update
难度 2/5 1-3 小时 新手友好度 64/100
维护者通常 2 天内回复
-
docs
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
meshcore-dev/MeshCore#4015 ·
维护者通常 2 天内回复