Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3240060rwl; Tue, 27 Dec 2022 06:25:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXsyMbDsXjCQ+amweb8p9ISQSk8S5JH6o0Evs6+bDW4DVz45dn49TZPO8T4Ckf4V7Obe5jDE X-Received: by 2002:a17:907:9d03:b0:7c1:a0c:a866 with SMTP id kt3-20020a1709079d0300b007c10a0ca866mr19158286ejc.75.1672151100023; Tue, 27 Dec 2022 06:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672151100; cv=none; d=google.com; s=arc-20160816; b=kh+D4ymUUrhDeE0FGXDdv9OzrHHB2Q6cBKMbt3qRJZDc/8UaDjDSjxybUIS5ZgOiPp IoSz8HFuSCgMuUlj2/cBPkBKem76U8D5rl/JzMdX9DgV8aPPyvQHrx7RjxFEmVb6iiyU I0EKXdelrsNOxLo6pUR+kHO3iCNNB3ZTZRCYT8p6j2xFRVtIh9yO66Y/V93LFYixiB/W FZKFy8eFgfSKHdutF+FJuJOl2kO8krhfv1UyJj0G70RYSTSj+syEmlpvWCDIIJZVBRGb 77c210X4eUq9ryAJxYoY8ermj+7lFWEOb6WfsEVCgGNXAWwqytH2L3gh/UFS1LKlwgLS xc/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=0KLiBDtIA7sN+ETgDOxVP3hBKlixZxiuD/45RsLx3hE=; b=qAV9cghoXJlp0Iq0Xbs2HAYVIDUeWi8SP/aLmgsY9XR8hl057q26N3yYBtIcAJeVws ZaIo/oLvyAfXN5PJPJMYSd8osvrGZi7bSbT3AVeXJ4aA1Br+BBplQ7wM4XWhupTl6fgh ACm8VwnXV9zE0FiLtXKd49DU2gIw+DXS2FX40KJUoXrLM9f8UM9M/Ec4Jlw3IGc9fjpi qTRJ6+OdLl4vE1QFAm8N2ds84KHALXU7Rpe0SpRgoT/1ygW9PauqXDo4xwUwOr8LeyFj 6fp5bmDHcX5FPudDKXUReqoASJ4U1C9jRrMhTRcf5d4K5wgdebSZ14YJm8I9VlKMjQYT I5gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=vUr3dlNE; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a170906794a00b007826cb6f57csi11925463ejo.407.2022.12.27.06.24.44; Tue, 27 Dec 2022 06:25:00 -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=@suse.de header.s=susede2_rsa header.b=vUr3dlNE; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230429AbiL0OCg (ORCPT + 66 others); Tue, 27 Dec 2022 09:02:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbiL0OCf (ORCPT ); Tue, 27 Dec 2022 09:02:35 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44AB92719; Tue, 27 Dec 2022 06:02:34 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 624DA21A14; Tue, 27 Dec 2022 14:02:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1672149752; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0KLiBDtIA7sN+ETgDOxVP3hBKlixZxiuD/45RsLx3hE=; b=vUr3dlNES5rrO/KcZ06D38wB0Lk2NfSAB9F0/HFo4qT1AngDH194kUNc/FFdC+nBz2shYu at9RsZ8jXUf+UOyvOuI0IJtC8qWdRmBH1jHIZqYqNuxVDDMltj8jwVNPhhlq2YtoVW/0YT GLB5Yqvw2YQu7TvMFzDL1ZOPbl79tMA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1672149752; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0KLiBDtIA7sN+ETgDOxVP3hBKlixZxiuD/45RsLx3hE=; b=Ih06188sb6XgugJG7XDgDd4abpGli3pOSvNztn0TlNE+g7qC7rlc4fjenD08gjlhDre0u4 ZWte3co7ov6SIaAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DC02613913; Tue, 27 Dec 2022 14:02:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hC/nNPf6qmOLZwAAMHmgww (envelope-from ); Tue, 27 Dec 2022 14:02:31 +0000 Date: Tue, 27 Dec 2022 15:02:31 +0100 Message-ID: <87r0wl0wso.wl-tiwai@suse.de> From: Takashi Iwai To: Greg KH Cc: Mark Brown , 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 In-Reply-To: References: <20221223233200.26089-1-quic_wcheng@quicinc.com> <20221223233200.26089-4-quic_wcheng@quicinc.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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, 27 Dec 2022 14:45:13 +0100, Greg KH wrote: > > 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... The whole picture is fairly complex, and this patch is a part belonging to the ASoC machine driver -- that is, it's bound to the Qualcomm host, and there can be only one on a system. OTOH, USB audio devices are still managed by the existing USB audio driver as is, and they can be multiple and any devices. The basic idea here is a hijack of the USB data processing in USB audio driver with the offloading mechanism by this ASoC driver (only if the condition met). thanks, Takashi