Received: by 10.192.165.148 with SMTP id m20csp3812650imm; Mon, 23 Apr 2018 12:50:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx48T8RZePGTULe74Yg6HHktRN/9SLV4KZNx7Fl9VOAqyCTLmzJqAAjyxLU5rGeHnl1TJ1w58 X-Received: by 10.99.113.80 with SMTP id b16mr18011656pgn.326.1524513018933; Mon, 23 Apr 2018 12:50:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524513018; cv=none; d=google.com; s=arc-20160816; b=K6QNgmJ4GLkUfG96ovXAVMQibgXoxl3uiBOv4MBhPxUzJrLs9d2PCoQQ519vp4Oa7U /JQdLbFPwCQi5Gl3gulN7TxFENVt8ooCptB9nkC543/JtsLn6912hzvC8QCiUAWi8QZG QsPM9jI9i4zpitA8sbEYr261a0T5/YTGlh9fED9H4gdLhMxLqbyLZUfr7bzh0EizZogK pSrDeU/+DzPxyoM65z0eEt8DEdG6peVQBH50xnPaDrfMaNF/gpPHgwjUeqofVdsXkfU2 sREUCid8wZPciOJTEdcawd0Wd/sCYzFDTY28sQhThnT54hjuv4DwmMvBz1Cl9dYwb7f1 23CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=7RREjfdQRJokRfQhoU5Ub/Xz4MLTfTJwL7wW87WzU9U=; b=jus2hZNPdNni/51jYbt+Y8eyUcPzgaD0tGK0M6XwNvnsVlA1wpsm8ixOel/MnbTaoU c/tYPPomhwwGp9LhNBYYrWCYjHXWwue241H59DqHZjS5/jHmJFyDxotD6U3UVN+NyJ5J n2CfbhAXlG0mc1rJpdbr3QwRHoh22jVcQPh1t4vgWXwa2RfmKk8aeda3uTEzrD1fJlEk mIAvJDQeFx4moz0UtrBsRd9PzA63d5oakF5bRPyezmHkMkHC8xvrEroSJmDxJTaO2+0m CBexWdTePf2dLjRZUAFsadcm/RJyOvYbxLX2q0fwwMixo/JEf3dVN/HaCIRuTzkfZbJ/ TLOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZTM2u+yi; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24-v6si11384439plq.481.2018.04.23.12.50.04; Mon, 23 Apr 2018 12:50:18 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZTM2u+yi; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932426AbeDWTsz (ORCPT + 99 others); Mon, 23 Apr 2018 15:48:55 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:37925 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932330AbeDWTsu (ORCPT ); Mon, 23 Apr 2018 15:48:50 -0400 Received: by mail-ot0-f195.google.com with SMTP id j27-v6so18461416ota.5 for ; Mon, 23 Apr 2018 12:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7RREjfdQRJokRfQhoU5Ub/Xz4MLTfTJwL7wW87WzU9U=; b=ZTM2u+yiOr/cAVy6Iias3NehhwJz0eig1k3cl52IipVDDEbH03GyLpb3a2Om5Xi+n/ tif4wHlFqUKtEy/ODqMgiaSmZTO5fysSRAFXYfO72gYLnePlXJMoi/9T9XS6dAKbrKcm GKdbiPnIJh482BpWwS4IyFwFRIEugPp+gByYhJAW6QxazyszZE6tVrgwg/ZfvMdcD1uc IxbEDLu/DFLPeQb8v74YE9pa91PIOKwfZC5hUDTkdylOI+/RCJmZRYsmO1GOJAPv57iR yOxuTKhPcEvFgiMkBRuIytSwY5lWziru2h1st360nkKN68aujUqOnR/k8f5up+eUvdwa kCng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7RREjfdQRJokRfQhoU5Ub/Xz4MLTfTJwL7wW87WzU9U=; b=bbZWE9XiNUlFQE5sG9Us3F17VpwMWuomojw99woP/LvbuUW9V9J53jrsToJ8qeFSVN c9sJNWFx0ieizIB9gkBZvZWwroWOWdERZsEylnRCyosYPgFS4lcQ/qXjnpHdW8hamx9x meijAPJ8haKfLBpxTfMA+O0wDydcLHNusExmwhH0+ybtGhUETC3qDul+pjGXfKhIDQwP DnGyMm+KUk8S5AgEowkRKcwlrssRMa1/Xn6EnqLrUbVOZ3FaPq+9mTX095qGjooaQxvC q9BcuCW02eFq5X9Wg0JAXNWC3loixJO4TIF4B35Kg/qAM1mw5Uylc9+TI0yXL+vMgQMj 3aNA== X-Gm-Message-State: ALQs6tBc/BMHNpXcgtJ9pgSBc6wtOLsb5gRv5tBs8ssLRiUcYCk2WsTv 1PjVfLc75OawJO9oV1HdYgVLZsL4fVlODsaeCsw= X-Received: by 2002:a9d:ec8:: with SMTP id 66-v6mr13841744otj.167.1524512930172; Mon, 23 Apr 2018 12:48:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1e8a:0:0:0:0:0 with HTTP; Mon, 23 Apr 2018 12:48:49 -0700 (PDT) In-Reply-To: References: <1523658266-2259-1-git-send-email-ruslan.bilovol@gmail.com> <1523658266-2259-2-git-send-email-ruslan.bilovol@gmail.com> From: Ruslan Bilovol Date: Mon, 23 Apr 2018 22:48:49 +0300 Message-ID: Subject: Re: [alsa-devel] [PATCH 1/4] ALSA: usb: stream: refactor audio interface parsing To: Takashi Iwai Cc: Jorge , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 12:55 PM, Takashi Iwai wrote: > 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. > Sure, will do in in next patchset Thanks, Ruslan