From patchwork Fri Nov 26 14:03:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cezary Rojewski X-Patchwork-Id: 518081 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 D828CC433EF for ; Fri, 26 Nov 2021 14:02:44 +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 6F0A81913; Fri, 26 Nov 2021 15:01:52 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6F0A81913 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1637935362; bh=ZwP6Rw6gCqs8xqVd1a+1etNp3eh1MFrp6YMFM+oaJKo=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Y7E2lmtO61n/gJNN7GZyXal9b3thcKhr/Z9kF2RXL4Y93kkiYQYkX1zqIzMPNP2ua g93HEY5terhHcm6lSgG+8QpziUccKuQKjV0zh/2vKqokpkXQ1QfIBvqxPtvUhm5R8w 3l2pQTw2G1pkazb7im1wBEfEYQ1Z3CX6J30K1vRY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 9BC74F80212; Fri, 26 Nov 2021 15:01:51 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 894FBF80212; Fri, 26 Nov 2021 15:01:42 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 019C4F80166 for ; Fri, 26 Nov 2021 15:01:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 019C4F80166 X-IronPort-AV: E=McAfee;i="6200,9189,10179"; a="222539401" X-IronPort-AV: E=Sophos;i="5.87,266,1631602800"; d="scan'208";a="222539401" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2021 06:01:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,266,1631602800"; d="scan'208";a="510649364" Received: from crojewsk-ctrl.igk.intel.com ([10.102.9.28]) by orsmga008.jf.intel.com with ESMTP; 26 Nov 2021 06:01:26 -0800 From: Cezary Rojewski To: alsa-devel@alsa-project.org Subject: [PATCH v5 0/3] ALSA: hda: New NHLT functions and cleanup Date: Fri, 26 Nov 2021 15:03:52 +0100 Message-Id: <20211126140355.1042684-1-cezary.rojewski@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: pierre-louis.bossart@linux.intel.com, Cezary Rojewski , tiwai@suse.com, hdegoede@redhat.com, broonie@kernel.org 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" Changes add two crucial functions: endpoint presence-check and retrieval of endpoint's BLOB (hardware configuration) to NHLT API. Outside of that, "is DMIC in NHLT?" check is being re-visited. No need to check for channel count or anything DMIC-configuration related, just straight up verify link_type presence. Changes in v5: - no code changes - actually removed the tags mentioned in v3 Changes in v4: - patch renaming nhlt_acpi_table struct to acpi_nhlt_table has been dropped due to naming conflicts with other parts of the kernel - revoked previously appended tags from Mark and Pierre as every patch required an update due to above Changes in v3: - no code changes - appended Mark's Acked-by tag for patch 4/4 - appended Pierre's Reviewed-by tag for all patches Changes in v2: - patch "ALSA hda: Drop device-argument in NHLT functions" has been dropped - updated newly added declarations in intel-nhlt.h so warning: "no-previous-prototype-for-function" and error: "use-of-undeclared-identifier" are no longer observed when CONFIG_SND_INTEL_NHLT is not enabled - added Mark's tag to the last patch of the series Amadeusz Sławiński (3): ALSA: hda: Fill gaps in NHLT endpoint-interface ALSA: hda: Simplify DMIC-in-NHLT check ASoC: Intel: Skylake: Use NHLT API to search for blob include/sound/intel-nhlt.h | 37 +++++++-- sound/hda/intel-dsp-config.c | 2 +- sound/hda/intel-nhlt.c | 102 +++++++++++++++++++++++++ sound/soc/intel/skylake/skl-nhlt.c | 102 ------------------------- sound/soc/intel/skylake/skl-pcm.c | 3 + sound/soc/intel/skylake/skl-topology.c | 29 ++++--- sound/soc/intel/skylake/skl-topology.h | 1 + sound/soc/intel/skylake/skl.h | 4 - 8 files changed, 153 insertions(+), 127 deletions(-)