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 78432C004D4 for ; Thu, 19 Jan 2023 16:28:21 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8AC332DCB; Thu, 19 Jan 2023 17:27:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8AC332DCB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1674145699; bh=EzV80YrxebRUHuKIKvpev2GAI8oUOLaQkTdDBDXUvOI=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=eaoww7WNqpbN/48xAVF2U1zsytRsnqiICYA/rNoB8ytCaMax1KSVrcyqLyeq3dEMz tXEEaTtEgilXv5VRATBa6Ci0dP8rnCcL9kH+nz8TYXbnyw2QBZ0gMAmEZ02nIvgHhS uajpXnyLRjznJKrFBJ2deU/rLeOycVX2TPxGLCcA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 373DDF8025D; Thu, 19 Jan 2023 17:27:29 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9A94EF8047B; Thu, 19 Jan 2023 17:27:27 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 5014CF8024D for ; Thu, 19 Jan 2023 17:27:24 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5014CF8024D Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=EmWpQzIY DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674145646; x=1705681646; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=EzV80YrxebRUHuKIKvpev2GAI8oUOLaQkTdDBDXUvOI=; b=EmWpQzIYBA+WNRAVjZA35VywAci1qD6G9DixpQq91kzFu/IQVb8p45dh zM0dtbabCMYbUf06SFs1XeetQd/muG2aLb5qT2x0rxeHVN9YOdjT6Ydh7 14eA2Fp5OogVtNH8g1YaZnQd5RvOfd4BvNYXAvDfT7RblmH7zjtBuyrNY wOJzOvAWB1xAJKYdgAcYn1qWfD46p047jGpId3Bt6KanmDTfKrqmfBal7 9unHBbL75alzRXZX/HwehmNcXB1CkeIXfDC85XtGRjq5Yf5olnrqHXLz2 VxgcXp7gPZq01MgTkc/yufs7snsUrS/2PlnElJp643XBSrEtYYWMKr2H0 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="326614550" X-IronPort-AV: E=Sophos;i="5.97,229,1669104000"; d="scan'208";a="326614550" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 08:27:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="905577374" X-IronPort-AV: E=Sophos;i="5.97,229,1669104000"; d="scan'208";a="905577374" Received: from sahamad-mobl1.amr.corp.intel.com (HELO [10.213.187.97]) ([10.213.187.97]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 08:27:22 -0800 Message-ID: Date: Thu, 19 Jan 2023 10:27:21 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.4.2 Subject: Re: [PATCH v2 6/8] ASoC: cs42l42: Add Soundwire support Content-Language: en-US To: Richard Fitzgerald , Stefan Binding , Mark Brown References: <20230118160452.2385494-1-sbinding@opensource.cirrus.com> <20230118160452.2385494-7-sbinding@opensource.cirrus.com> <33130336-b2ce-330e-fdec-166eee977e13@linux.intel.com> <418f6b73-b5ac-8d87-a856-3413ec103f91@opensource.cirrus.com> <6ea1b85f-22e2-8744-9638-6321a5a21acf@linux.intel.com> <32fd1755-0128-8f32-9a88-a92f1647f903@opensource.cirrus.com> From: Pierre-Louis Bossart In-Reply-To: <32fd1755-0128-8f32-9a88-a92f1647f903@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 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: , Cc: patches@opensource.cirrus.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" >> You lost me here. Are you saying the soundwire bus clock is only known >> in the prepare stage? >> > > hw_params() doesn't know the Soundwire bus clock so it can't do the > check. We need to wait until we have both the sample rate and the > chosen SWIRE_CLK. Yes, makes sense. I forgot that all the stream management and bandwidth allocation takes place in the prepare stage at the dailink level, and the dai prepare happens after that. Thanks for the clarification.