Received: by 10.192.165.148 with SMTP id m20csp499000imm; Fri, 20 Apr 2018 10:07:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx49qoF3fynUFob1ojI2Rjx89X5cSdsXfWQHjbziC43w2HTnYI6mF/miIKOWmGHM/RcDQipfC X-Received: by 10.101.81.11 with SMTP id f11mr9194728pgq.137.1524244026323; Fri, 20 Apr 2018 10:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524244026; cv=none; d=google.com; s=arc-20160816; b=z68irCJZVrOIupivLUZrmCFXo3ZjxHKdrcp0D+ql/aPh8cSQSHrZdkDW82yj9ZPF6m z3B51sKAT3DwajOcb+aNWQzFGbxobyoyrCHWGOwczE2a3irq1OIdxtgBxHRg42R8p4g4 XCTQ1I3sxScOka5iWo2YjoV6AY18s5L7xyOSMSLd9AlyLcZKcnBiOF7DOBz009gvgJFQ t3KdcjYbO15fMerbD0zm6LcEmU+5b7G296xCkcW+2Yx2NHr3DGbgxRMtbJOJJstTdywh akMY0oLtAKPCC2up8jDJPujuXDivqcwAvaQaqM7b2eV5FpHd1ZDVq3dSVPOXGSwll81W pN0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=XSUFj/rnM2wvkkzTb5CWv+T3ENM4/ujWBA3LYpLAFT4=; b=BTuJhvxsxv8Hwa9UrINrQZU9mHcJ/jqmp6j1tPUqmRJauWoVb2fGW0AAdXA7DhevvE IU7oOlFv5UwV4X7OsKa9ewPd5HkqXE6bumC9e05E5CUrTTzrngEK1a3D/lyEqNyYXtkm iES3lZMI7NzcOy7goRlwJQCzTDUDO0n8envamQw3gYQ8+zfLr8iZCDEPyaniKbEUoiai y173jDjTaD5HFfK6X3HLgJ+hJ4HE+2UdjRkIinDdaAfbeWcTEf/KimI98Gt2jJiOGYjp iUnL5MuU31+CZLqTSbIEZNy/KINKv9JALkfTbQzg7xPoK6e4cHQKTTgG5cfjLb05d0Z9 5YJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3-v6si5582291plp.471.2018.04.20.10.06.51; Fri, 20 Apr 2018 10:07:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753460AbeDTRDm (ORCPT + 99 others); Fri, 20 Apr 2018 13:03:42 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:47056 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753325AbeDTRDl (ORCPT ); Fri, 20 Apr 2018 13:03:41 -0400 Received: from 167-98-27-229.cust-167.exponential-e.net ([167.98.27.229] helo=ct-lt-1121.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1f9ZRi-0007hw-Rw; Fri, 20 Apr 2018 18:03:38 +0100 From: Jorge Sanjuan To: tiwai@suse.com Cc: alsa-devel@alsa-project.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Michael Drake Subject: [PATCH 2/4] ALSA: usb-audio: ADC3: Fix channel mapping conversion for ADC3. Date: Fri, 20 Apr 2018 18:03:25 +0100 Message-Id: <20180420170327.31569-3-jorge.sanjuan@codethink.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180420170327.31569-1-jorge.sanjuan@codethink.co.uk> References: <20180420170327.31569-1-jorge.sanjuan@codethink.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Drake The channel mapping is defined by bChRelationship, not bChPurpose. Signed-off-by: Michael Drake --- sound/usb/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/stream.c b/sound/usb/stream.c index 6a8f5843334e..956be9f7c72a 100644 --- a/sound/usb/stream.c +++ b/sound/usb/stream.c @@ -349,7 +349,7 @@ snd_pcm_chmap_elem *convert_chmap_v3(struct uac3_cluster_header_descriptor * TODO: this conversion is not complete, update it * after adding UAC3 values to asound.h */ - switch (is->bChPurpose) { + switch (is->bChRelationship) { case UAC3_CH_MONO: map = SNDRV_CHMAP_MONO; break; -- 2.11.0