Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3259017rwl; Tue, 27 Dec 2022 06:41:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXu1kg99Q6w1ExKCf8ojiVYZOCBt6aBY+MJuWMiZkYAIl7q7m+nY4qn3Lg3uWGjEgFUAiOcn X-Received: by 2002:a17:907:c388:b0:849:e96f:51f4 with SMTP id tm8-20020a170907c38800b00849e96f51f4mr10905834ejc.23.1672152090485; Tue, 27 Dec 2022 06:41:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672152090; cv=none; d=google.com; s=arc-20160816; b=PwqfZPOTGbIAEfATvti/2svceoPCv+KQCtABQ2zkJgDNTX2YYQSUZu2cHnFQ4CtW5m 4ZbDdELDY2F9Ot5iynQ97O8OQjbJSK5mBvurHpGQwprqW2XKIq3Oe/YcFqRwvooJNuct UdjTDzppuUqRrXH/EZboae8JAMAvqIV3Ks9nXNCOBf6mlCzwsEu6YvbI1j3fl6Z6raK/ TXfxdmBMnzzKC9XExpkoDyRb4kZohQh+riAQL9VOEFrHfwA3mM5w5zindTPWbOrGvv3j +LUwxQgt1rNFPV2GXcQQ86twq5XSkNfQbH+kXnr72G2/asJkSK+Vy7ovpqxyoIBMmGCA 2l1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nskzb6k7aldZc3GS9uH/lytvq5DXDOjWBZeFXAG0GVY=; b=Csi3PbG6svcgbRdBKKgg0CLrH5oZdEYTLyrgG492M3fhKChEWJ3hAVjQGmygOc2dCs JHXNQKf3S60hfch9YNjvv9q55C8VGsqyTn7DfCMChmS2K3/0cTakBM1A26SkhnmkUliY mV7RKGWPbUorJ90VHkXopbJeMWnVIHYNzHnWpT1uWccHtypSfLyKrXFgnEKNvh9JLaN0 wMlYdaoW2FltllK3UiZHhkzn2GXUhkfvBDuBRaTexgwXYWTHs+0LUxRjybwgOp15loN+ PNZdbH/mogbMZ+6ob4BIslABp3Rz9BYeK8dH1MbfsPIUvPkQQbtpkHxKmBj9tnkc/Nwn zCHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XapDBzzd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb21-20020a1709076d9500b007ae86742c39si10964298ejc.504.2022.12.27.06.41.14; Tue, 27 Dec 2022 06:41:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XapDBzzd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231742AbiL0NpX (ORCPT + 66 others); Tue, 27 Dec 2022 08:45:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbiL0NpS (ORCPT ); Tue, 27 Dec 2022 08:45:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 353F7DC7; Tue, 27 Dec 2022 05:45:17 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BCD616115E; Tue, 27 Dec 2022 13:45:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9ECE7C433D2; Tue, 27 Dec 2022 13:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672148716; bh=rz3uMAjXUtgjTO4lgVlXOKO3ue1KZ7jGfnmeuq3J5Js=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XapDBzzd/bZ8Mr9cF8NgX64eOKDfmSw6Y7ERRkuEXsBO/tp7dvnoLIqb9N/2kPSJc qT9nqMH3v+uDUffDXLsLvnW/Pz48nhnGeHVXohon9StxTJS5DYKaU719Vo61VE7/Hr bAyImdXoGvBG3/HEw82VNV5VHPD0AYBixeNBMbbY= Date: Tue, 27 Dec 2022 14:45:13 +0100 From: Greg KH To: Mark Brown Cc: Wesley Cheng , srinivas.kandagatla@linaro.org, mathias.nyman@intel.com, perex@perex.cz, lgirdwood@gmail.com, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, Thinh.Nguyen@synopsys.com, bgoswami@quicinc.com, tiwai@suse.com, robh+dt@kernel.org, agross@kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, quic_jackp@quicinc.com, quic_plai@quicinc.com Subject: Re: [RFC PATCH 03/14] ASoC: qcom: Add USB backend ASoC driver for Q6 Message-ID: References: <20221223233200.26089-1-quic_wcheng@quicinc.com> <20221223233200.26089-4-quic_wcheng@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 27, 2022 at 01:04:55PM +0000, Mark Brown wrote: > On Sat, Dec 24, 2022 at 10:02:59AM +0100, Greg KH wrote: > > On Fri, Dec 23, 2022 at 03:31:49PM -0800, Wesley Cheng wrote: > > > > + * struct q6usb_offload > > > + * @dev - dev handle to usb be > > > "be"? What is that? > > Back end. This is a concept in DPCM which should be reasonably > discoverable to people working on the audio portions of this code. Ok, then how is the reference counting logic handled here? USB devices can be removed from the system at any point in time... > > > +// SPDX-License-Identifier: GPL-2.0 > > > +/* > > > + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. > > > All of the code in this patch series is older than 2022 as I know it has > > been in shipping devices for many years. Please use the proper > > copyright year to make your lawyers happy... > > Are you *positive* about this. Based on some preparatory discussions > the Qualcomm people had with Takashi and I it seemed like this was a new > version of existing concepts. I'm sure they had something already but > it's not obvious to me that they're just posting the same code. I thought that this same code has been shipping in devices for a few years now in the last few Samsung phone models. Is this not the same code that is in those devices? If not, why not, what happened to that codebase that makes it not worthy of being submitted upstream? > > > +static const struct snd_soc_dapm_route q6usb_dapm_routes[] = { > > > + {"USB Playback", NULL, "USB_RX_BE"}, > > > +}; > > > No terminating entry? How does this not break? Why do you need to > > specify the size of the array, that feels like a design bug somewhere. > > It's how the interface works, the number of entries is passed in when > adding routes. Ah, you all might want to change that to make it simpler :) thanks, greg k-h