[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify strea
From: |
Zoltán Kővágó |
Subject: |
Re: [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify stream name |
Date: |
Wed, 28 Aug 2019 00:43:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 2019-08-27 07:42, Gerd Hoffmann wrote:
> On Mon, Aug 26, 2019 at 09:59:04PM +0200, Kővágó, Zoltán wrote:
>> This can be used to identify stream in tools like pavucontrol when one
>> creates multiple -audiodevs or runs multiple qemu instances.
>
> Hmm, can we create an useful name automatically, without yet another
> config option?
>
> Useful choices could be the device name (usb-audio, ...) or the device
> id (whatever -device id=xxx was specified on the command line).
I'm afraid this is not going to work with the current architecture: due
to mixeng even if you have multiple devices, they'll be mixed to a
single stream and the audio backend will only see this one mixed stream.
As a workaround we could do something like concat all device names or
ids, but I don't like that idea.
Alternatively we could use the id of the audiodev instead, and no more
problems with mixeng. However, with mixeng off (implemented in my next
patch series) suddenly soundcards will have suddenly end up as different
streams. (This can be worked around by creating multiple audiodevs,
like what you have to use now to get multiple streams from pa, so this
is probably a smaller problem.)
Currently I'm leaning for the audiodev's id option, unless someone
proposes something better.
Regards,
Zoltan
- [Qemu-devel] [PATCH v2 0/4] Audio: misc fixes for "Audio 20190821 patches", Kővágó, Zoltán, 2019/08/26
- [Qemu-devel] [PATCH v2 1/4] audio: fix invalid malloc size in audio_create_pdos, Kővágó, Zoltán, 2019/08/26
- [Qemu-devel] [PATCH v2 3/4] audio: paaudio: fix client name, Kővágó, Zoltán, 2019/08/26
- [Qemu-devel] [PATCH v2 2/4] audio: omitting audiodev= parameter is only deprecated, Kővágó, Zoltán, 2019/08/26
- [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify stream name, Kővágó, Zoltán, 2019/08/26
- Re: [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify stream name, Gerd Hoffmann, 2019/08/27
- Re: [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify stream name, Daniel P . Berrangé, 2019/08/28
- Re: [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify stream name, Maxim Levitsky, 2019/08/28
- Re: [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify stream name, Daniel P . Berrangé, 2019/08/28
- Re: [Qemu-devel] [PATCH v2 4/4] audio: paaudio: ability to specify stream name, Maxim Levitsky, 2019/08/28
Re: [Qemu-devel] [PATCH v2 0/4] Audio: misc fixes for "Audio 20190821 patches", Maxim Levitsky, 2019/08/26