Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1754763pxp; Mon, 7 Mar 2022 01:29:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvhePwiBE9pUBlN8WWZPi8UXuKocJew2IBNu0Vf7aWtxJkwOQLq9aNxG++9m/MtL8zTjfn X-Received: by 2002:a17:906:c14f:b0:6da:bd6f:f03 with SMTP id dp15-20020a170906c14f00b006dabd6f0f03mr8246873ejc.561.1646645388587; Mon, 07 Mar 2022 01:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646645388; cv=none; d=google.com; s=arc-20160816; b=SwNe53/ElnEPPRXl5Qr8STDiw+3BvR2xNErjqtBiziv73Gjavu7UXM9ZA7X+lDJ0xN X0o0Zu01t25zZtdvVwGdJ1RHE8smkIw08me+mc2JQcYMPR/njlPEyMyTuS9wASg50dDK 1O5tNIR1HFyKVrvlTnlXcGK0r5Uu/fj7Ok1D2N3fnyQsfYqlk3YxF85K2hL4cJqkQj+f WixR51vj26h/bDAqlsxUzIpQPLzRGS2nhpb2p4Aoi5bY5S+hz7hMz4FLj5831y13FgFi N842Tka4HKscjB+YXbOdD17JRTOOyOHRNNfIITHhVT6p9k/XnHoYXH97ZSWZrqtK18FB 4JpQ== 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=0oZECEJ1O3Zi/HieAl5u30BKc+UUdHAR+S/1AbUyZlU=; b=ptPqptRceQLnjZgdX3yiTTj8fBRgdO3X9DygXbl3XhADAKNlNZWXmF3AAqquFTKNz0 dQelqq8c2FwTTvmcR5TBVQ6z7IoshP5nAkI9DGByypUduVgOqydUYTeXg2aLCJ0TKntq JLQkhOhUgnm1IA2ioe+D8oe6z+b6k3y9zQnxL+OtIBhb2t0NDTDbZ9js1/z2zLQOkmcf Wo7JIXUhKZyD7reKqLut8IqbWIy86AiGkQi1VWnxu5App88mt7k+mFbxzLdwRX/pJ16N DwFA6os1W930VWD/A6gnNKR4jhWFokj/dG35MAi01/PH1uhLJypdgtBrltR4rEziwKNX zNyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="zqL/pDKC"; 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 da4-20020a056402176400b0041653764940si767274edb.323.2022.03.07.01.29.26; Mon, 07 Mar 2022 01:29:48 -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="zqL/pDKC"; 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 S235986AbiCGH4T (ORCPT + 99 others); Mon, 7 Mar 2022 02:56:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232814AbiCGH4R (ORCPT ); Mon, 7 Mar 2022 02:56:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC1344506C for ; Sun, 6 Mar 2022 23:55:23 -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 4C84460B99 for ; Mon, 7 Mar 2022 07:55:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 698C0C340F3; Mon, 7 Mar 2022 07:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646639722; bh=ftjiV6vEKk1X9wO1Fyhk7bmaXl5AeD+Ymy6D0UqL6JU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zqL/pDKCeEvQ7qn1CKZllOJe/IJ2nUaGyioCKS6SSL4wRtU16ZzT7DfT8LYWSyrAy TqaUYj+b9YPi1kCyhX5rpP3dSGlR4EEjHR4JJuIw+XnRbmKcRMdBRfvbR3uEaCqK4K 6jJJcGJT5cBn9H4GI9xAG4XmLS1BPQQOILLhyw0o= Date: Mon, 7 Mar 2022 08:55:18 +0100 From: Greg Kroah-Hartman To: Oh Eomji Cc: Jaroslav Kysela , Takashi Iwai , open list , alsa-devel@alsa-project.org, Leon Romanovsky , Pavel Skripkin , JaeHun Jung Subject: Re: [PATCH 1/2] sound: usb: Add vendor's hooking interface Message-ID: References: <1646619720-97113-1-git-send-email-eomji.oh@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1646619720-97113-1-git-send-email-eomji.oh@samsung.com> X-Spam-Status: No, score=-7.6 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,T_SCC_BODY_TEXT_LINE 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 Mon, Mar 07, 2022 at 11:21:59AM +0900, Oh Eomji wrote: > In mobile, a co-processor can be used with USB audio to improve power > consumption. To support this type of hardware, hooks need to be added > to the USB audio subsystem to be able to call into the hardware when > needed. > > The main operation of the call-backs are: > - Initialize the co-processor by transmitting data when initializing. > - Change the co-processor setting value through the interface > function. > - Configure sampling rate > - pcm open/close > - other housekeeping > > Known issues: > - This only supports one set of callback hooks, meaning that this only > works if there is one type of USB controller in the system. This > should be changed to be a per-host-controller interface instead of > one global set of callbacks. Also, this is a non-starter, and not going to work at all, sorry. Most devices have more than one USB controller in the system, and we can never accept changes that break that model. Nor would you want us to, as it would break many Samsung devices... thanks, greg k-h