From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 069FAC54EE9 for ; Fri, 16 Sep 2022 06:13:53 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2AE091945; Fri, 16 Sep 2022 08:13:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2AE091945 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663308832; bh=rlQihhnlHAXPLOV1l54JAu5on0hGcdSyCn+932T0GCM=; h=Date:Subject:To:References:From:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=jPcszrHgVa6Nhnhq9mFgC79UGBTor7WlSYgQVJpVWLVvYj+D8WfUdJhdWWR3mTGlf CO+W8eDIIPbIjOzJnMF5FwGj9tpm0KivItFh7K8UtMZSOMT9Z1ekgX4CoULLAC3JxN 4nEBLH8jl0zgAHHur6HLzdvqBl6ZpVcVbJ+t7d10= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id B66A6F800E5; Fri, 16 Sep 2022 08:13:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 38C20F8019B; Fri, 16 Sep 2022 08:13:00 +0200 (CEST) Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B8F29F800E5 for ; Fri, 16 Sep 2022 08:12:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B8F29F800E5 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=axis.com header.i=@axis.com header.b="YLfZ5kOv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1663308778; x=1694844778; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=S5x0x7UUtUYuVN1cMny0uR6/3NIHd1+hOxAtF6G9fNc=; b=YLfZ5kOvpdowvmo5eLElPdrVWYMfoOCZCy0Oa+4ZOGsEBJ+1Q3BwwUNI /hqiKLo6/UZhcwsk2j09QJBOPgr7wl96LX9wpr0SEFMV9tTBqTyUgFuYd l0jXJOxBeeUX9Y6o4n8CRQAIRm3/TcCIvv/PeU1zhS/PsypMWtziou796 vTRgtTl771dn3S09vbZ9AQo5JcWiVXKHMCNOTglMIJ27kpTkoAHwJ4F+G jAsc5xDFSL6NxxJAVIpQPskkcBh6gs8uJssSO9z/PFhu9U1pZpp1CUHFJ 3rS8r9pB5aw/RXQFtTSreVf/3060QZ5EayDbXUkMZXQcIek6HymeY26Xt Q==; Message-ID: Date: Fri, 16 Sep 2022 08:12:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] ASoC: fsl_spdif: add ALSA event on dpll locked Content-Language: en-US To: Jaroslav Kysela , Robert Rosengren , Shengjiu Wang , Xiubo Li , Liam Girdwood , Mark Brown , Takashi Iwai References: <20220908133319.2149486-1-robert.rosengren@axis.com> <11545c65-cd49-9556-13c6-67d0ce5816c3@perex.cz> From: Robert Rosengren In-Reply-To: <11545c65-cd49-9556-13c6-67d0ce5816c3@perex.cz> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.0.5.60] X-ClientProxiedBy: se-mail04w.axis.com (10.20.40.10) To se-mail01w.axis.com (10.20.40.7) Cc: Nicolin Chen , kernel , "alsa-devel@alsa-project.org" , Fabio Estevam X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Hi, On 9/9/22 10:27, Jaroslav Kysela wrote: > > I would cache the pointer to snd_kcontrol structure in spdif_priv. > This lookup > is expensive for the interrupt routine in my eyes. > >                                         Jaroslav Thanks! Sorry for a bit late answer, but re-worked solution submitted few days ago where caching as you suggest is implemented. Best regards, Robert