From nobody Wed Nov 12 06:51:59 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1568576519; cv=none; d=zoho.com; s=zohoarc; b=RvzZwspTChdymPpp31PYl6xBDq12KmAwFjSa9cB39lv92/RFAm6s4aDO4ybjiPb8pas7OpS4M6gSknFt0HSNE0U5WWaDT7oUOB7hvV2BdpqVVR4j0Jevdr9sBGtvEk4VOoLnKWh4CUXmkmLI/e+m7nI6HH0/+/6A9GNMmemgr28= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1568576519; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=I/J8Dq/+F7R0/J6BZwd7lt84Aly4P3hEz64ceVDIF5c=; b=NMuVjNJXv8zYhlO8ca0oje33JXhfJeuWqYI1FwJThUxWBsr8q9WdigWptMgfdOxAblqUQ987VK2tQX8psDHadeJgGA2ebYEfGBplSfU2It6bZ1jJy/PlbNkiWDZJv8TThPKtFTe8Jeyxj4dMffAq2GAihBlmr2oZOiU1H4LPlD4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1568576519096953.855885383677; Sun, 15 Sep 2019 12:41:59 -0700 (PDT) Received: from localhost ([::1]:56692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9aPD-0007sV-HF for importer@patchew.org; Sun, 15 Sep 2019 15:41:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40129) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i9a7q-0006FA-Hj for qemu-devel@nongnu.org; Sun, 15 Sep 2019 15:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i9a7p-00022i-IZ for qemu-devel@nongnu.org; Sun, 15 Sep 2019 15:23:58 -0400 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:41882) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i9a7p-00022O-BZ for qemu-devel@nongnu.org; Sun, 15 Sep 2019 15:23:57 -0400 Received: by mail-ed1-x529.google.com with SMTP id z9so31223670edq.8 for ; Sun, 15 Sep 2019 12:23:57 -0700 (PDT) Received: from nullptr.home.dirty-ice.org (2a01-036c-0113-74ef-0000-0000-0000-0005.pool6.digikabel.hu. [2a01:36c:113:74ef::5]) by smtp.gmail.com with ESMTPSA id j20sm6480562edy.95.2019.09.15.12.23.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2019 12:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=I/J8Dq/+F7R0/J6BZwd7lt84Aly4P3hEz64ceVDIF5c=; b=m7U/F/dMZMQAUzd79fElEmIRt7mqeNxMvHIXfrOrMDvzuY7rHxMu+BqWtDuXvapNcQ 7TPZ5NUbeYYuoATHkoVX0x7DeDAYpBsbaEfTJiEtceANTUJDbAfHtlWzcW5vgMzYMscX xoak4oDt7YWFdZPeLsVcHnHkLlXis5gcU8c0XHv9lfr8DOIqiCScPvVcplkWLcGWR1ZL ECt6Yh7HB7TVR/mx1Vetz57JVwA0b82Dga9omD2x8ODvCIh+J9OHhrvHxa6BxshpxaJa JL2FD6UMfvIxy6n45ETktCbVsCkc8kYDM3+7EWjNlqdPVq3Fk1eT0FPh+MNGpUuQkvcV Tg+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=I/J8Dq/+F7R0/J6BZwd7lt84Aly4P3hEz64ceVDIF5c=; b=Ek76JV0u0liKyOZl8Qo0ZCFeLhHb3K9egLEli2fmLVq2nv6qBnRDQgztiZEZ9n4ZSi l8CEshjUoRc2XvMYXZ7lRVKyR886iatAZNrJdpT28ktJ4vxs0AFgVe1tcgw7gqD+OR/G pa5058RwgC/VBCZeLjhah7nMW21HGVGmE2SZd9+P9/b5900nMJfNWHcGl02KuWrhnBgP lQLW32O/Io0dFLGnC85N1O5W/v8iEHa9Lm7o9sBAgjc7z49HU87k+R3NdevemrUTFtcZ ezc/JKMgo353aTWN/boQHmzsWv1yc4KZl4rO3No6CThh6MO8VyYkZePIsdbS3Nh8su2E GEJQ== X-Gm-Message-State: APjAAAXtf8/Gnwwz7/RwaVbmAU3p3WRcXDvq673BKZv2NPsT3w2jA/ho SaXnaw/vyju735qhhAakUyzASNmf X-Google-Smtp-Source: APXvYqxCkI4zTkbV9wCo2OAUJmscygmgrSf+33wTnFnK7ywi6Jb6+EH5MJXe/5AjhbsV6reOlycqBw== X-Received: by 2002:a17:906:5606:: with SMTP id f6mr48473247ejq.110.1568575436287; Sun, 15 Sep 2019 12:23:56 -0700 (PDT) From: "=?UTF-8?q?K=C5=91v=C3=A1g=C3=B3=2C=20Zolt=C3=A1n?=" X-Google-Original-From: =?UTF-8?q?K=C5=91v=C3=A1g=C3=B3=2C=20Zolt=C3=A1n?= To: qemu-devel@nongnu.org Date: Sun, 15 Sep 2019 21:23:36 +0200 Message-Id: <00998152d6e1c25b3194b9b71e27f14c4d26f396.1568574965.git.DirtY.iCE.hu@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::529 Subject: [Qemu-devel] [PATCH v3 20/24] audio: basic support for multichannel audio X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) 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=C5=91v=C3=A1g=C3=B3, Zolt=C3=A1n --- 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; } =20 - if (nchannels !=3D 1 && nchannels !=3D 2) { - alsa_logerr2 (err, typ, - "Can not handle obtained number of channels %d\n", - nchannels); - goto err; - } - if (apdo->buffer_length) { int dir =3D 0; unsigned int btime =3D 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; =20 - invalid =3D as->nchannels !=3D 1 && as->nchannels !=3D 2; + invalid =3D as->nchannels < 1; invalid |=3D as->endianness !=3D 0 && as->endianness !=3D 1; =20 switch (as->fmt) { --=20 2.23.0