Received: by 10.192.165.156 with SMTP id m28csp509576imm; Thu, 19 Apr 2018 02:57:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx490yQweYPf27nOvTupXONFW6dDpnZCefBcntilVg7CRu9ROGHu8o6VqQGbQePjbkFDBB1lZ X-Received: by 10.99.7.86 with SMTP id 83mr4695467pgh.211.1524131854104; Thu, 19 Apr 2018 02:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524131854; cv=none; d=google.com; s=arc-20160816; b=E/V9asuJO4X+Q5mWSqD4XDxKaW2gSErS3ACMSWFhjNvQZFvNB5qIIF+L5qPSmKo9t+ lp5LCnioT9MGnfnfQKzbWP5KN5JPO2eABrOolB55hSIOjBgdV5UfuVbFkHJ2d8h0rJcT qcWfUZSnUJI2Ht9OaHZAp/Gveqv3dwzhyJ3lQwtNKLlQqiEOAVCLxueeHd4kHUgoaVKr epdFdyGL8DRPTCmoITfPtTpys0WwGtjmzotdBtvXPpg+CgKtnDc2Y0uLbn/ZlurL4XtE APcEM2Dd54vsPkLPCv8HZvjQKLM3W6nMxQUqfgCId2FQ5rZbBzs+SEJTpK/m8bPSlVu5 dTrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=BT7HOUylgkDWcWZ8YjtMcWFX92+a2bCN4sHnFoCpp0U=; b=tV29XFWCfS0NMUpGV88FGKF5zBtYxA8Y6IOB/qBWPIVTa7/yIPZQDdKm2vgd5k98Io kJehlT1McxlSk+VJttxVPmkgGXIVODAZ/3oBsRCWdYp9+6CF3p2yF6tJujhsv/hHbEAj 1Ir94Fz4cwK3+kctq6NRrg/S/EO+X0YKY0TNfZdCdhVD345wcEaL8ifXHAwKjuqV23Wv QegTFZRVdShslsaCt/PIfSZYm2T47awO9QTLq6y1EjZF1SeAF71cH9j0qmTP7eyqzOcM G/rYScJAlUioySL5NFaRyihJtNysRsFTEMNNtSwcrixZF41I8I6XuyQndpQh/5ufuR+j uTuw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e75si378550pfd.261.2018.04.19.02.57.19; Thu, 19 Apr 2018 02:57:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752507AbeDSJzj (ORCPT + 99 others); Thu, 19 Apr 2018 05:55:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:38164 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbeDSJzi (ORCPT ); Thu, 19 Apr 2018 05:55:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 97DADAC43; Thu, 19 Apr 2018 09:55:37 +0000 (UTC) Date: Thu, 19 Apr 2018 11:55:37 +0200 Message-ID: From: Takashi Iwai To: Ruslan Bilovol Cc: Jorge , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [alsa-devel] [PATCH 1/4] ALSA: usb: stream: refactor audio interface parsing In-Reply-To: <1523658266-2259-2-git-send-email-ruslan.bilovol@gmail.com> References: <1523658266-2259-1-git-send-email-ruslan.bilovol@gmail.com> <1523658266-2259-2-git-send-email-ruslan.bilovol@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 14 Apr 2018 00:24:23 +0200, Ruslan Bilovol wrote: > > Offload snd_usb_parse_audio_interface() function which > became quite long after adding UAC3 spec support. > > Move class-specific parts to separate functions > which now produce audioformat structure that is > ready to be fed to snd_usb_add_audio_stream(). > > This also broke Blue Microphones workaround (which > relies on audioformat decoded from previous altsetting) > into two parts: prepare quirk flag analyzing previous > altsetting then use it with current altsetting. > > Signed-off-by: Ruslan Bilovol Could you try to split this patch to two parts: one is a simple refactoring to move the code to snd_usb_get_audioformat_uac12(), and another to add snd_usb_get_audioformat_uac3(). In this way, we can see a problem more clearly if it's in the refactoring part. thanks, Takashi