Audio garbled when using Multi plugin to record from 2+ USB soundcards on Raspberry Pi
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 12/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- c, linux, raspberry-pi
- Área
- audio-video-rtc, embedded-iot
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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 ?
- Lenguaje dominante
- C
- Estrellas
- 501
- Forks
- 227
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de alsa-project/alsa-lib
-
USB-Audio: ASUS ROG Zenith II S/PDIF output mapped to wrong PCM devicePosiblemente ocupada @byrcolin la tomó hace 49 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
alsa-project/alsa-lib#532 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
alsa-project/alsa-lib#530 · 9 reacciones ·
-
kernel driver
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
alsa-project/alsa-lib#529 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
alsa-project/alsa-lib#522 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
alsa-project/alsa-lib#519 ·
Todos los issues de alsa-project/alsa-lib
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fastfetch-cli/fastfetch#2780 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
elliotchance/vsql#2079 ·
Los mantenedores suelen responder en 1 día
-
docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
vim/vim#22107 · 1 comentario ·
Los mantenedores suelen responder en 13 días
-
threadpool: a failed `pthread_cond_wait` makes Mlucas hang instead of stoppingPosiblemente ocupada @leinardi la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
primesearch/Mlucas#398 ·