[Qemu-devel] [PATCH 00/11] Multiple simultaneous audio backends

2019-07-09 Thread Kővágó, Zoltán
Hello, This is my next set of audio patches. This series makes it possible to use multiple audio backends in a single qemu instance, and contains a few random cleanup/fix patches. Regards, Zoltan Kővágó, Zoltán (11): audio: reduce glob_audio_state usage audio: basic support for multi

[Qemu-devel] [PATCH 05/11] paaudio: do not move stream when sink/source name is specified

2019-07-09 Thread Kővágó, Zoltán
Unless we disable stream moving, pulseaudio can easily move the stream on connect, effectively ignoring the source/sink specified by the user. Signed-off-by: Kővágó, Zoltán --- audio/paaudio.c | 5 + 1 file changed, 5 insertions(+) diff --git a/audio/paaudio.c b/audio/paaudio.c index

[Qemu-devel] [PATCH 07/11] audio: remove audio_MIN, audio_MAX

2019-07-09 Thread Kővágó, Zoltán
There's already a MIN and MAX macro in include/qemu/osdep.h, use them instead. Signed-off-by: Kővágó, Zoltán --- audio/audio.h | 17 - audio/alsaaudio.c | 6 +++--- audio/audio.c | 20 ++-- audio/coreaudio.c | 2 +- audio

[PATCH v6 06/10] audio: basic support for multichannel audio

2019-10-13 Thread Kővágó, Zoltán
Which currently only means removing some checks. Old code won't require more than two channels, but new code will need it. Signed-off-by: Kővágó, Zoltán --- audio/alsaaudio.c | 7 --- audio/audio.c | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/audio/alsaaudio.c

[PATCH v6 09/10] usbaudio: change playback counters to 64 bit

2019-10-13 Thread Kővágó, Zoltán
rod % USBAUDIO_PACKET_SIZE(channels) assertion no longer holds true, which will result in overflowing the buffer. With 64 bit variables, it would take about 762000 years to overflow. Signed-off-by: Kővágó, Zoltán --- hw/usb/dev-audio.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) d

[PATCH v6 04/10] audio: support more than two channels in volume setting

2019-10-13 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/audio.c | 30 ++ audio/audio.h | 10 ++ audio/audio_int.h | 4 ++-- audio/paaudio.c| 20 audio/spiceaudio.c | 14 -- 5 files changed, 54 insertions(+), 24 deletions

[PATCH v6 05/10] audio: replace shift in audio_pcm_info with bytes_per_frame

2019-10-13 Thread Kővágó, Zoltán
The bit shifting trick worked because the number of bytes per frame was always a power-of-two (since QEMU only supports mono, stereo and 8, 16 and 32 bit samples). But if we want to add support for surround sound, this no longer holds true. Signed-off-by: Kővágó, Zoltán --- audio/alsaaudio.c

[PATCH v6 01/10] audio: add mixing-engine option (documentation)

2019-10-13 Thread Kővágó, Zoltán
://wiki.qemu.org/Internships/ProjectIdeas/AudioGStreamer Signed-off-by: Kővágó, Zoltán --- Notes: Changes from v1: * renamed mixeng to mixing-engine Changes from v5: * better documentation Changes from v1: * renamed mixeng to mixing-engine qapi/audio.json | 6

[PATCH v6 03/10] paaudio: get/put_buffer functions

2019-10-13 Thread Kővágó, Zoltán
This lets us avoid some buffer copying when using mixeng. Signed-off-by: Kővágó, Zoltán --- audio/paaudio.c | 83 + 1 file changed, 83 insertions(+) diff --git a/audio/paaudio.c b/audio/paaudio.c index ed31f863f7..6ccdf31415 100644 --- a/audio

[PATCH v6 02/10] audio: make mixeng optional

2019-10-13 Thread Kővágó, Zoltán
Implementation of the previously added mixing-engine option. Signed-off-by: Kővágó, Zoltán --- Notes: Changes from v4: * audio_pcm_hw_add_* always returns a new HW (or fails) when not using mixeng audio/audio.c | 70 ++ audio

[PATCH v6 00/10] Audio: Mixeng-free 5.1/7.1 audio support

2019-10-13 Thread Kővágó, Zoltán
Hi, I've updated my mixeng-free patches. This time it's only documentation fixes in the first patch, otherwise it's identical to v5. Regards, Zoltan Kővágó, Zoltán (10): audio: add mixing-engine option (documentation) audio: make mixeng optional paaudio: get/put_buffer functions audio

[PATCH v6 08/10] usb-audio: support more than two channels of audio

2019-10-13 Thread Kővágó, Zoltán
device that supports 5.1 and 7.1 audio. Signed-off-by: Kővágó, Zoltán --- Notes: According to the spec the channel order is front left, front right, center, lfe, surround left, surround right for 5.1 sound. But alsa uses front left, front right, surround left, surround right, center

[PATCH v6 10/10] paaudio: fix channel order for usb-audio 5.1 and 7.1 streams

2019-10-13 Thread Kővágó, Zoltán
Signed-off-by: Kővágó, Zoltán --- audio/paaudio.c | 50 - 1 file changed, 45 insertions(+), 5 deletions(-) diff --git a/audio/paaudio.c b/audio/paaudio.c index d195b1caa8..6ff0d17537 100644 --- a/audio/paaudio.c +++ b/audio/paaudio.c @@ -338,17

[PATCH v6 07/10] usb-audio: do not count on avail bytes actually available

2019-10-13 Thread Kővágó, Zoltán
This assumption is no longer true when mixeng is turned off. Signed-off-by: Kővágó, Zoltán --- hw/usb/dev-audio.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c index ae42e5a2f1..74c99b1f12 100644

[RFC PATCH] audio: proper support for float samples in mixeng

2020-02-02 Thread Kővágó, Zoltán
This adds proper support for float samples in mixeng by adding a new audio format for it. Limitations: only native endianness is supported. Signed-off-by: Kővágó, Zoltán --- This patch is meant to be applied on top of "[PATCH] coreaudio: fix coreaudio playback" by Volker Rümelin,

[PATCH] audio/dsound: fix invalid parameters error

2020-02-02 Thread Kővágó, Zoltán
Windows (unlike wine) bails out when IDirectSoundBuffer8::Lock is called with zero length. Also, hw->pos_emul handling was incorrect when calling this function for the first time. Signed-off-by: Kővágó, Zoltán Reported-by: KJ Liew --- I've tested this patch on wine and a borrowed Windows

<    2   3   4   5   6   7