Received: by 10.192.165.148 with SMTP id m20csp4914089imm; Tue, 24 Apr 2018 10:26:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx48EdqWkK7YzSciGuU5bwOzqAF38SfyNshISBh5gJNhj59KbVjxIbjx3kPgHGnFRbHU6m3ZB X-Received: by 2002:a17:902:2804:: with SMTP id e4-v6mr23668285plb.153.1524590785858; Tue, 24 Apr 2018 10:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524590785; cv=none; d=google.com; s=arc-20160816; b=KJVDTOEB8g0dlf6ofgt36CaArMvA7w5ANn3BSbm4q1ind9ISCDSLzxUPCQ2uEwwHZB 8LwlMfJoPCT0gjSz5YiwEdwjWVc+N+9+qME4kcuQ9uhtz2lQISl2Qpad8816JDBrqovt K+6XdNnXiolea5y1Af/rR++e6gZot3iEM1pezFnGx3OGdj++9NPKXRA8NrRoXziyEm2k GdylZP0zQb4GCJBHGQ/wTwXj0HlzoEE84Nm4xAu4A8QwiKZSIzP9OTr1jy4lAB0BiZlZ XVtWocg0RO/JU9v1/4otYdVa6Gnu7CYyuciMaHiIGECLtPuTy3BZhG1yG4O5FxBzQRu4 WIRg== 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=CeCZd2qiVNsjiyYGAPXv1LdlRhzGfUySnUWgFWh9ozE=; b=NZGXNBlefFawcxf9u6YkAX5SfCZGMFOLG9e6tZ8UnFblThA/zlhdKy7tsWQ8IXB5hd WPNl9hHqSMVdymfQWAdFVNisqZj3Msehls/SO4vn7IFViZNv/rs2A2F4+WolbERVgVKp BpKmHOWWbqFsslUZ1hmcBQ/7lBpwyrhQMhpBtwmgWpbfltm4PVZiXxqPM3F+j8t5QFe/ VOqGUy0lz/Z6DXZJXCZgMYolJqRjafVlYc8e9J9jGyZAjuWjXAUBqtvyJFM3BXnIsxZm SIkCLmckNwoFpvHvMRacRjET8ZmltLIkUoHLT8IdwRiVWl07iWXi+Oh0Tva1TTtsGPTU ZaAQ== 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 r8-v6si10858776pli.119.2018.04.24.10.26.11; Tue, 24 Apr 2018 10:26:25 -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 S1752642AbeDXRZJ (ORCPT + 99 others); Tue, 24 Apr 2018 13:25:09 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:46176 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751454AbeDXRY6 (ORCPT ); Tue, 24 Apr 2018 13:24:58 -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 1fB1gV-0005ev-0N; Tue, 24 Apr 2018 18:24:55 +0100 From: Jorge Sanjuan To: tiwai@suse.com Cc: alsa-devel@alsa-project.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Michael Drake , Jorge Sanjuan Subject: [PATCH v2 2/4] ALSA: usb-audio: ADC3: Fix channel mapping conversion for ADC3. Date: Tue, 24 Apr 2018 18:24:43 +0100 Message-Id: <20180424172445.31928-3-jorge.sanjuan@codethink.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180424172445.31928-1-jorge.sanjuan@codethink.co.uk> References: <20180420170327.31569-1-jorge.sanjuan@codethink.co.uk> <20180424172445.31928-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. Fixes: 9a2fe9b801f5 ("ALSA: usb: initial USB Audio Device Class 3.0 support") Reviewed-by: Ruslan Bilovol Signed-off-by: Michael Drake Signed-off-by: Jorge Sanjuan --- 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