[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 46/50] audio: basic support for multichannel audi
From: |
Kővágó, Zoltán |
Subject: |
[Qemu-devel] [PATCH v3 46/50] audio: basic support for multichannel audio |
Date: |
Thu, 17 Jan 2019 00:37:19 +0100 |
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 <address@hidden>
---
audio/alsaaudio.c | 7 -------
audio/audio.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c
index 3e5c800d38..f6fe95b557 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -497,13 +497,6 @@ static int alsa_open(bool in, struct alsa_params_req *req,
goto err;
}
- if (nchannels != 1 && nchannels != 2) {
- alsa_logerr2 (err, typ,
- "Can not handle obtained number of channels %d\n",
- nchannels);
- goto err;
- }
-
if (pdo->buffer_count) {
if (pdo->buffer_len) {
int64_t req = pdo->buffer_len * pdo->buffer_count;
diff --git a/audio/audio.c b/audio/audio.c
index c89e82443d..f59dd0100f 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -240,7 +240,7 @@ static int audio_validate_settings (struct audsettings *as)
{
int invalid;
- invalid = as->nchannels != 1 && as->nchannels != 2;
+ invalid = as->nchannels < 1;
invalid |= as->endianness != 0 && as->endianness != 1;
switch (as->fmt) {
--
2.20.1
- [Qemu-devel] [PATCH v3 23/50] paaudio: fix playback glitches, (continued)
- [Qemu-devel] [PATCH v3 23/50] paaudio: fix playback glitches, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 17/50] audio: add audiodev properties to frontends, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 05/50] alsaaudio: port to -audiodev config, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 02/50] audio: use qapi AudioFormat instead of audfmt_e, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 28/50] coreaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 36/50] audio: remove remains of the old backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 04/50] audio: -audiodev command line option basic implementation, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 32/50] paaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 43/50] paaudio: get/put_buffer functions, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 35/50] wavaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 46/50] audio: basic support for multichannel audio,
Kővágó, Zoltán <=
- [Qemu-devel] [PATCH v3 44/50] audio: support more than two channels in volume setting, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 24/50] audio: remove read and write pcm_ops, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 45/50] audio: replace shift in audio_pcm_info with bytes_per_frame, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 37/50] audio: unify input and output mixeng buffer management, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 33/50] sdlaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 26/50] audio: api for mixeng code free backends, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 48/50] usb-audio: do not count on avail bytes actually available, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 41/50] audio: add mixeng option (documentation), Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 27/50] alsaaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16