[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 06/10] audio: basic support for multichannel audio
From: |
Kővágó, Zoltán |
Subject: |
[PATCH v5 06/10] audio: basic support for multichannel audio |
Date: |
Mon, 30 Sep 2019 22:28:59 +0200 |
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 eddf013a53..f37ce1ce85 100644
--- a/audio/alsaaudio.c
+++ b/audio/alsaaudio.c
@@ -493,13 +493,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 (apdo->buffer_length) {
int dir = 0;
unsigned int btime = apdo->buffer_length;
diff --git a/audio/audio.c b/audio/audio.c
index c00f4deddd..7fc3aa9d16 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -242,7 +242,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.23.0
- [PATCH v5 00/10] Audio: Mixeng-free 5.1/7.1 audio support, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 01/10] audio: add mixing-engine option (documentation), Kővágó, Zoltán, 2019/09/30
- [PATCH v5 03/10] paaudio: get/put_buffer functions, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 02/10] audio: make mixeng optional, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 04/10] audio: support more than two channels in volume setting, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 07/10] usb-audio: do not count on avail bytes actually available, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 09/10] usbaudio: change playback counters to 64 bit, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 06/10] audio: basic support for multichannel audio,
Kővágó, Zoltán <=
- [PATCH v5 08/10] usb-audio: support more than two channels of audio, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 05/10] audio: replace shift in audio_pcm_info with bytes_per_frame, Kővágó, Zoltán, 2019/09/30
- [PATCH v5 10/10] paaudio: fix channel order for usb-audio 5.1 and 7.1 streams, Kővágó, Zoltán, 2019/09/30
- Re: [PATCH v5 00/10] Audio: Mixeng-free 5.1/7.1 audio support, no-reply, 2019/09/30