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 B546EC6FA8E for ; Tue, 20 Sep 2022 10:25:56 +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 BC25D84D; Tue, 20 Sep 2022 12:25:03 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz BC25D84D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1663669553; bh=OWEbQziNhSrHTAeUuUo/nPggW4uEqWsQvJ8UCiNnHiE=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=FEY8kTZJgYHO+YnjydcqlHy3BVlJlA5vtCPyE2oCyzX0p6P4UANw5WWkeKN5kgBg/ vSgl2TmKKI71T4D+DUjgTyQVw0S+5sUR9DEtr1qW9/z8D3x750zSiQ9rtSTu8Jusm7 K74vRnV4aN8JeZ5sSSX9ZbzfhcJ1n5ikI7uRZi5M= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3F91AF80153; Tue, 20 Sep 2022 12:25:03 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A55FBF80155; Tue, 20 Sep 2022 12:25:01 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B2CD3F800F2 for ; Tue, 20 Sep 2022 12:24:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B2CD3F800F2 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="WcXQw4af"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="bjJMsEfe" 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 1F3E221C95; Tue, 20 Sep 2022 10:24:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663669495; 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=dQqlWCGWcWPsY4ri7/uDYbt3YSfA+x2qMtYSk1MEKpw=; b=WcXQw4afaSfDBFGpON68hVswDtXcu7M/B+gweDP14K8s5RJcVibceySfkfbq1YWPIzaR57 rsgq7F7/IprHUHBtv51Ovze0pom6xQEkGXTUKpDR37jos1lWdtaqpuyJshOwghiSPjeoqL WzmRga/rI3CpNOx3N9KdTW5MEslQSmc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663669495; 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=dQqlWCGWcWPsY4ri7/uDYbt3YSfA+x2qMtYSk1MEKpw=; b=bjJMsEfeC8XmTKolL5X+T27stL7oR+9idVAmzY7xOfzKGZ0P8pLQwmrl5gNPgkPO2a91hf mKp0Q4iJ7Cb6LNAQ== 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 EC54D13ABB; Tue, 20 Sep 2022 10:24:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id mEPnOPaUKWPJIAAAMHmgww (envelope-from ); Tue, 20 Sep 2022 10:24:54 +0000 Date: Tue, 20 Sep 2022 12:24:54 +0200 Message-ID: <87bkragx6x.wl-tiwai@suse.de> From: Takashi Iwai To: Pierre-Louis Bossart Subject: Re: [PATCH v2 3/4] ALSA: hda: intel-nhlt: add intel_nhlt_ssp_mclk_mask() In-Reply-To: <20220919115350.43104-4-pierre-louis.bossart@linux.intel.com> References: <20220919115350.43104-1-pierre-louis.bossart@linux.intel.com> <20220919115350.43104-4-pierre-louis.bossart@linux.intel.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 Cc: alsa-devel@alsa-project.org, broonie@kernel.org, Bard Liao , Cezary Rojewski , Kai Vehmanen 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" On Mon, 19 Sep 2022 13:53:49 +0200, Pierre-Louis Bossart wrote: > > SOF topologies hard-code the MCLK used for SSP connections. That was a > bad idea in hindsight, this information should really come from BIOS > and/or machine driver. > > This patch introduces a helper to scan all SSP endpoints connected to > a codec, and all formats to see what MCLK is used. When BIT(0) of the > mdivc offset if set in the SSP blob, MCLK0 is used, and likewise when > BIT(1) is set MCLK1 is used. > > The case where both MCLKs are used is possible but has never been seen > in practice so should be treated as an error by the caller. > > Signed-off-by: Pierre-Louis Bossart > Reviewed-by: Kai Vehmanen > Reviewed-by: Bard Liao Reviewed-by: Takashi Iwai thanks, Takashi