-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Feature ? PipeWire audio system replaces the PulseAudio system. #38
Comments
Yes, no need to change the front end. Backend (snd_be) doesn't support PipeWire as a sound backend. There are two approaches to use PipeWire:
|
Thank you very much. Thank you give me a solution that adapts to pipewire audio system.
|
What are the errors exactly? Are you able to record with CLI arecord tool using the specified ALSA device? |
Hi @al1img , I will provide more information to discuss this issue.
# Sound cards
vsnd = [
[ 'CARD, buffer-size=1310720, short-name=VCard, long-name=Virtual sound card, channels-max=2,sample-rates=8000;22050;44100;48000, sample-formats=s8;u8;s16_le;s16_be;u16_le;u16_be;s24_le;s24_be;u24_le;u24_be;s32_le;s32_be;u32_le;u32_be;f32_le;f32_be;f64_le;f64_be;iec958_subframe_le;iec958_subframe_be;mu_law;a_law;ima_adpcm;mpeg;gsm',
'PCM, name=vsnd', 'STREAM, unique-id=alsa<pipewire>, type=p', 'STREAM, unique-id=alsa<pipewire>, type=c'
]
] Start domain-u with this configuration. pipewire PCM device created successfully.Both front-end and back-end are connected successfully. Playback
Capture using arecord in domain-U is unnormal.
Recording with tool audacity has the same result. Question: Q1.
Q2: Q3: Kernel version: Frontend: Linux5.11.0 Backend: snd_be release v0.2.1 Xen :xen-4.15.1 Domain0: AGL linux. DomainU:Ubuntu 20.04 |
**Do you have any development plans for SND_BE with support for pipewire ? |
Q1: Yes, once alsa device Q2: Yes, this error relates to the buffer-size parameter. For Alsa backend, this parameter should be the same as real device buffer. Can be obtained by the following command on Dom0: Q3: Regardless of underrun error, I see there are successful writes to the PCM device as well. Does read error occur immediately after launching arecord command or after some period of time? To resolve the issue I suggest the following:
Not yet, but we are happy to collaborate on this. |
New Feature ?
I want to use PipeWire instead of PulseAudio system. I think is that PulseAudio and PipeWireare at the same level,so I just change the configuration 'STREAM, unique-id=PipeWire, type=p'. I don't know whether it's correct.
Or should I write new code to adapt PipeWire system . Could you give me some advices.
I have used following configuration, but domainU does not work. I have installed PipeWire in domain0 and shut down all PulseAudio services.
I have checked “unique-id” process in Xen4.15.1. It just give it an id to process in backend.
I have read front code in linux5.11.0. It just use ALSA abstract interface to create CARD、PCM and STREAM,So i think front not to rewirite,Only just to adapt pipewire system in SND_BE?
The text was updated successfully, but these errors were encountered: