Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp670323pxb; Mon, 25 Oct 2021 16:18:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDNXcjaJkdQicVzo9gscMHEkw8l6E9pncGpMY0vqXBNd6dm0+OiLDim3LPHbanZm+hrTia X-Received: by 2002:a05:6402:176e:: with SMTP id da14mr6509524edb.264.1635203914993; Mon, 25 Oct 2021 16:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635203914; cv=none; d=google.com; s=arc-20160816; b=ChovFHl10YzJpq0KLctxX1speunpb+eXg1yyoi8pNY2kLCjN4NVJanrzERVGcP/aiC wyJMOxZrKjtrdCUTwJrz/ftrLZyY96qza7C6YZKQmFqKZ33Z4KoV0pc4Jn3tmrdIpN7c 71Oo17WxKU9qyzAQnqQFym1g/3DUsH5xN3moCLGzAsMKSV2t1VL9VEVqdGCKVl2fL5f5 5YtwA6P3Nj2bAJNgFAhmjwr0oaG6MXeR8UNmzwypZHpZVuKk96hd4l0oMrVQuV6WFGtZ ZyN6lFh7LopRcqaxNp+Nit093UPv9cfftasDSwrSMmg6zxqGjspKAh2riG8zFJTnYX/j HO2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EvfoCqDjLKDirMjZy2j1rdmmbS4M3Zkx9O/UkSYyiLM=; b=hq1fIbdR2HFw02ilMHI37A6tPzcYBC8mfMVgCDQwHEMM1H+jsMj3BPR+LncoyBrRmv BqNMgGBmaPrIxWzmroSZWTJV9YfAvxzOcqymKKLF/SzPOW3cuhrOPKlAXQWyVP0b3bJN X4RW53tToTOw+EYN4aAAJHXEPFzshHsumwnVD4g2fnUfGN/T3sVy/GZWh7vI035Xx8xp qRXqYoXYItJwXhpzmYb+tnmr6UnY/2i20pdt1/1VRYIcECz/msjvWMtXDlT6Fsjsz6fI QQyWCTE1h9wRA+eonEHLgn2QDD08IEZ75Th48EZ6wdd/TBrF1IVfUCiEK6t4uDUplOJi S1Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KC7wnumM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si39139825edc.228.2021.10.25.16.18.11; Mon, 25 Oct 2021 16:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KC7wnumM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234584AbhJYTXw (ORCPT + 99 others); Mon, 25 Oct 2021 15:23:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:39156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234783AbhJYTWB (ORCPT ); Mon, 25 Oct 2021 15:22:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 79C7F610EA; Mon, 25 Oct 2021 19:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635189578; bh=6KaK6RnVPDbO2lV/+9Ca3txKPwMLULQk7yN2RcOQQK0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KC7wnumM0XYaaOSd7+vb+L7eKX/07mS5nKMcCSLDDpeGv2c1H6lYWfdLd61yvKF5w K84BjarFNEtY60zYsbaP0KLpPxHOjaRMBMWz06Uhxr8rC8TdpM7KRWzcAAjx/78mK/ cjMt4qeRJQzQjEhfacV1mznWDKa0baZXn/Hu+mxw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brendan Grieve , Takashi Iwai Subject: [PATCH 4.9 38/50] ALSA: usb-audio: Provide quirk for Sennheiser GSP670 Headset Date: Mon, 25 Oct 2021 21:14:25 +0200 Message-Id: <20211025190939.727055302@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190932.542632625@linuxfoundation.org> References: <20211025190932.542632625@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brendan Grieve commit 3c414eb65c294719a91a746260085363413f91c1 upstream. As per discussion at: https://github.com/szszoke/sennheiser-gsp670-pulseaudio-profile/issues/13 The GSP670 has 2 playback and 1 recording device that by default are detected in an incompatible order for alsa. This may have been done to make it compatible for the console by the manufacturer and only affects the latest firmware which uses its own ID. This quirk will resolve this by reordering the channels. Signed-off-by: Brendan Grieve Cc: Link: https://lore.kernel.org/r/20211015025335.196592-1-brendan@grieve.com.au Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/quirks-table.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) --- a/sound/usb/quirks-table.h +++ b/sound/usb/quirks-table.h @@ -3446,5 +3446,37 @@ AU0828_DEVICE(0x2040, 0x7270, "Hauppauge } } }, +{ + /* + * Sennheiser GSP670 + * Change order of interfaces loaded + */ + USB_DEVICE(0x1395, 0x0300), + .bInterfaceClass = USB_CLASS_PER_INTERFACE, + .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { + .ifnum = QUIRK_ANY_INTERFACE, + .type = QUIRK_COMPOSITE, + .data = &(const struct snd_usb_audio_quirk[]) { + // Communication + { + .ifnum = 3, + .type = QUIRK_AUDIO_STANDARD_INTERFACE + }, + // Recording + { + .ifnum = 4, + .type = QUIRK_AUDIO_STANDARD_INTERFACE + }, + // Main + { + .ifnum = 1, + .type = QUIRK_AUDIO_STANDARD_INTERFACE + }, + { + .ifnum = -1 + } + } + } +}, #undef USB_DEVICE_VENDOR_SPEC