Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2044102imm; Thu, 14 Jun 2018 07:57:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKcogIWFWmCLb6M8D1PC1vYamVyL0P/Et9Iye8fsBXX1ng6H7NK0zMeTXnUdn7qOIyZJ9VV X-Received: by 2002:a63:aa03:: with SMTP id e3-v6mr2613787pgf.169.1528988229848; Thu, 14 Jun 2018 07:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528988229; cv=none; d=google.com; s=arc-20160816; b=VfQVdwX/MP0xH4wasZDLlptwDszMXMe71BV6FSiE8xvEbfbKLZX5vA31dUszIoZ9ha hQTp8CqgNhVUfv+ZD00QJTVgLn5x1ET2uAKxihoE2tTN4wsI68/SSFw1YvsK1/uvpRMb ZHOe59dN3oeUOqZLEApXnGooCuiw4LO3qSEtEiI67UgxEV2PxBeJk4fXig7WqHO9dAuS bbyx0x0sTKZKfLWbyktCNkuCzHEzRXV2onzHBuOoJq1LvUfD9WriuIp8rBIWPyNqYK7V NMGugWT5sFSoGeTMVpmVJ1y7cb3l6bWtGeuu6bh31K0n+gXepWzWim3zYrk7gZDduldo DVVg== 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=bm7/WXP609aOgt+PQvGr7TmbLGct7hDW5yPG8Z03qfo=; b=KtwRn29kspq0Tufj8HldcW7IsYBUh3+wqETBaemmMfun/ukO3oEKYxaRG3J6boirrA gcxUSKeG7ezDwrRhJsB6LEzZjLUQHG1dwGBVWx9oQYa1qwEmUtIpBHJgsj0XTxrlt/hV mYIG0tIyaUL41B7DBQk4KOXj/3OMFBlhBYQkTAdr3dIkEJYdPHbgQkM44oUrAF9UqYqV uMTdppqzYj9spC4HDZwu6x2mEce5sDdouODAwUBKBJalKYxUWT6LSr1LDshcPeqBnfgt qZhr12PTvBZQrZZhf++wrhigHMq4QyaW9jEOzAJ+NVH/6RjOVSlyPiWXqRx+AozdVlqT SUoA== 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 u9-v6si5469044pls.462.2018.06.14.07.56.55; Thu, 14 Jun 2018 07:57:09 -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 S936252AbeFNOGP (ORCPT + 99 others); Thu, 14 Jun 2018 10:06:15 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:36950 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936206AbeFNOGF (ORCPT ); Thu, 14 Jun 2018 10:06:05 -0400 Received: from [148.252.241.226] (helo=ct-lt-1121.office.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1fTSt1-0005OK-4O; Thu, 14 Jun 2018 15:06:03 +0100 From: Jorge Sanjuan To: tiwai@suse.de Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, ruslan.bilovol@gmail.com Subject: [PATCH v2 4/4] ALSA: usb-audio: Always create the interrupt pipe for the mixer Date: Thu, 14 Jun 2018 15:05:58 +0100 Message-Id: <20180614140558.28277-5-jorge.sanjuan@codethink.co.uk> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180614140558.28277-1-jorge.sanjuan@codethink.co.uk> References: <20180612143201.29988-1-jorge.sanjuan@codethink.co.uk> <20180614140558.28277-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 An UAC3 BADD device may also include an interrupt status pipe to report changes on the HEADSET ADAPTER terminals. The creation of the status pipe is dependent on the device reporting that it has it. Signed-off-by: Jorge Sanjuan --- sound/usb/mixer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index 03b8a2ac93c8..b1dcf6dfc27e 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -3338,10 +3338,12 @@ int snd_usb_create_mixer(struct snd_usb_audio *chip, int ctrlif, err = snd_usb_mixer_controls(mixer); if (err < 0) goto _error; - err = snd_usb_mixer_status_create(mixer); - if (err < 0) - goto _error; } + + err = snd_usb_mixer_status_create(mixer); + if (err < 0) + goto _error; + err = create_keep_iface_ctl(mixer); if (err < 0) goto _error; -- 2.11.0