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 4070FC433F5 for ; Wed, 9 Mar 2022 10:04:54 +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 3775D174F; Wed, 9 Mar 2022 11:04:03 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 3775D174F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1646820293; bh=Pl1qIYAzaoUbMLxaDgzB9cRWKeefjEoxPxG/QEOhzU0=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GnAw6nkGcbGpfRotqyl5QngT+Hha3oD78SGJSRQogqQMgFmk9iLBAUy2wGOTpG33x 0X4L5tRgKm468XAuqggtLgU7cl+y9bmIzXtTknRkuGtqlSL4TgJQG42Zl+Eagb7OgO 13LsSmgoU7hYjEUCGPJXIf3q83lLk5Hk8xf6wE+4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C8BFFF80155; Wed, 9 Mar 2022 11:04:02 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 95C77F8016C; Wed, 9 Mar 2022 11:04:00 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (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 90F7FF80155 for ; Wed, 9 Mar 2022 11:03:54 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 90F7FF80155 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="dEghnUsm"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="QqoxHJp+" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 31F631F396; Wed, 9 Mar 2022 10:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646820234; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bAiKX5lLUpvMHB7E8RoKAdJgdiQNC3zpRC+bLU5gieM=; b=dEghnUsmdbe9f9rQc6MkSlcCveyWmAISrvw58YDadYMmlBhdp8w3Bns+MUAITv4SZK5ffg cZQSiBk90tkqWflO2E0rqpaw3iIqVVaYXdhwrqbWsXleT10GrPu7AEl8jE6e++HXijQ5zY 7T/EqH5uaew7sH12soQBdnB6qG5Sy0U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646820234; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bAiKX5lLUpvMHB7E8RoKAdJgdiQNC3zpRC+bLU5gieM=; b=QqoxHJp+y3G0REc0KvSP7h8AKhKvTsZSSLmkBzAWckZYBc9QzcjWeqYAcS4HcMbIYWoWTC x6ZaGM3PAJwAwUAw== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 17F91A3B84; Wed, 9 Mar 2022 10:03:53 +0000 (UTC) Date: Wed, 09 Mar 2022 11:03:53 +0100 Message-ID: From: Takashi Iwai To: Pierre-Louis Bossart Subject: Re: [PATCH 04/20] ALSA: intel-nhlt: add helper to detect SSP link mask In-Reply-To: <20220308192610.392950-5-pierre-louis.bossart@linux.intel.com> References: <20220308192610.392950-1-pierre-louis.bossart@linux.intel.com> <20220308192610.392950-5-pierre-louis.bossart@linux.intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Cezary Rojewski , =?UTF-8?B?UMOpdGVy?= Ujfalusi , alsa-devel@alsa-project.org, Nikolai Kostrigin , broonie@kernel.org, Mauro Carvalho Chehab , Bard Liao , Huajun Li 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 Tue, 08 Mar 2022 20:25:54 +0100, Pierre-Louis Bossart wrote: > > The NHLT information can be used to figure out which SSPs are enabled > in a platform. > > The 'SSP' link type is too broad for machine drivers, since it can > cover the Bluetooth sideband and the analog audio codec connections, > so this helper exposes a parameter to filter with the device > type (DEVICE_I2S refers to analog audio codec in NHLT parlance). > > The helper returns a mask, since more than one SSP may be used for > analog audio, e.g. the NHLT spec describes the use of SSP0 for > amplifiers and SSP1 for headset codec. Note that if more than one bit > is set, it's impossible to determine which SSP is connected to what > external component. Additional platform-specific information based on > e.g. DMI quirks would still be required in the machine driver to > configure the relevant dailinks. > > Signed-off-by: Pierre-Louis Bossart > Reviewed-by: Bard Liao > Reviewed-by: Péter Ujfalusi Acked-by: Takashi Iwai thanks, Takashi