From patchwork Mon Apr 11 13:45:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 559592 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 44699C433EF for ; Mon, 11 Apr 2022 13:47:14 +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 15851172D; Mon, 11 Apr 2022 15:46:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 15851172D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1649684832; bh=zEPNqX/b7eW/52u2V2e6imH0+mTLRypNQfaEYfEMzHc=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Z/Hmj/XYaloWJki6S+9Ii35XBU6qnoMW6Jcf80t6+hi7jexP9lJpon43dyR1a/D27 /78BDMTjf5R47srxmnrRHBnAnJaR+uS3Dhw1lrSSZbz1jNxrS1DnNDQ2dXmYLvNGAK Alyo/ayfYg5YLfAD1g91JB1sN4Bw3EsVEgSqdsBA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 89F44F8050F; Mon, 11 Apr 2022 15:45:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id BFAB4F8020D; Mon, 11 Apr 2022 15:45:31 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam08on20630.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8d::630]) (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 65790F80249 for ; Mon, 11 Apr 2022 15:45:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 65790F80249 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="b8buIoJ4" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g5DhebQ/A2lW4urKlcnELXmgSyA5AYhlBIX4jkO1atqsvj5P37alu47+1mhMwIVj55ivRmc8sejINXhiVCrKRFqRQRGX9RyUVUZFrF5zGydKcomLXsQJlarV3Bq3fT5VeSaBHTbJBzRzH6TPmpN8f3NjDm4SC22qy6nldkOTWBCSlJ18r45VoGLlnqn5j7NNx+iq59uyeS855AUT39m9GaoFzvKyvGtJI0qhTEjMB+4XT/CSAB+U5CkDQqTIcIxj1Ew7ckkZzxicrRvjUwIXV1kBmy98csM2eNmCu35ofLvefw3upKmUijV8d9X8N9X4PnhmgQ1OLwtS7u44or/ijQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AZ+w75EM2VuGoAfQ8+g0CCR00IWDrX/QhVFyHsZilMg=; b=GYn7a36lsNBIuAYufJaDuU5JrQa57/+r8jE5yzXKi7pJr+S1jVH6USSeoMF68Pskopm9687gkV8fZsLsZrS4saCSGx7TSlVKJzdQdoGKbNP5QNQMUwsLaWCapbopRmQR0xDRdeF0X/qTetoGLZe7+BaihK6VvQMoXHdExARhe1VadQXLjn55nC4r7bNRl+DctXg4zLU+AS5H2e5ExZeA9+wO0akS7tfbzkkV+gWFIe0DBygWgOtjMCwWOt4F+f3ty5uoijVx+z9Fy/Ivbaj8scbNw7swZqlt8JLIE8mW18BSscYO5X9nhk/k+z+ny/mgHEReZB0wHkdhB37aB13atw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AZ+w75EM2VuGoAfQ8+g0CCR00IWDrX/QhVFyHsZilMg=; b=b8buIoJ4+zfYRuJ9t3TxYG0X/yX5cP7mkNl/pRWj4B2pVIPmMaffGog3Qi2za/YpKT5bqS2vaa0StsHT2Gr0KFRhCNtoigOOKO+HjFvQ6D+8cazgzu99nxGF3NqV5HMvTX7TJ0pbisCCEnQ1miTUfRxpzghZXkDcpVWSLtnNhjY= Received: from MW2PR16CA0001.namprd16.prod.outlook.com (2603:10b6:907::14) by DM6PR12MB4714.namprd12.prod.outlook.com (2603:10b6:5:30::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Mon, 11 Apr 2022 13:45:16 +0000 Received: from CO1NAM11FT027.eop-nam11.prod.protection.outlook.com (2603:10b6:907:0:cafe::53) by MW2PR16CA0001.outlook.office365.com (2603:10b6:907::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29 via Frontend Transport; Mon, 11 Apr 2022 13:45:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT027.mail.protection.outlook.com (10.13.174.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5144.20 via Frontend Transport; Mon, 11 Apr 2022 13:45:16 +0000 Received: from AUS-LX-MLIMONCI.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Mon, 11 Apr 2022 08:45:14 -0500 From: Mario Limonciello To: Mark Brown , Takashi Iwai , "Jaroslav Kysela" , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." Subject: [PATCH 0/2] Allow detecting ACP6x DMIC via _DSD Date: Mon, 11 Apr 2022 08:45:30 -0500 Message-ID: <20220411134532.13538-1-mario.limonciello@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 70d527d8-348b-421b-8aed-08da1bc182eb X-MS-TrafficTypeDiagnostic: DM6PR12MB4714:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 96HVx+yYbREwDEhG36XFamTPuEuTV7Ns3/gbab6Eqtt1JdeRo5LoMKAgPv8/QeQSFocwyBTpn+YDLdFhUTQymI+eAgmGElHELhue0RWOFpkWJNyyfVaIzmDQBKasJlr4S3Ka3qXF0LGEQ82m+bn7j3L39mwi55lcAMGm4ONhu6P8ORVLWjGstkl6veQ4h1mMXpRBHdNfqYdyF2wLHmu6qriAyDYWp4ytBZ8GrjHtlbBCG2KW+wOvWxbbuSPSg4cDFF/v9E9K/19EAntBUofLign2sZhCNaD8SIwe0PY1WydAfUhFldTLN0Z8d8MjciNVYWdU+tBi1vHlsMJv5nrepdEDarqEo9Tb6cS3lbTBo/w5SarkrLcz06VlVprCcZ2yh8oJrJ9HXoUenmJHyfJS70IZjNGBU6yfnH41AxuGtRtMibIvUBIiduL0JEnGLgZTaSr7+N7S3clj5NcKZpwmZG8Q3hYwn+EYQ1hhhO195yo+Mfvb/pi9CMLYqniqkHdZLlvtSAxbBNi+S7x//Tje0txMs/+rbftk9gMAgTzUQ7Fexv+m4pguE8RRHudHEm1K2kPDmAeya7htzuibOoKZ3Kmp59OuUPBcj8+CZBbRsboHJLfssHIrccelq6b4tYsUAkd220r06SSXbpeXqpUbHyau9Hp3zXer+JWFwZJ1xsxLKad6J8d3ldMjtJjyWbGWhmZwBHBGbwT/0YiyFuDvV3wpgFgLvM/1sjULVXQecVw= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(83380400001)(47076005)(4744005)(36756003)(16526019)(2616005)(1076003)(508600001)(426003)(186003)(26005)(356005)(2906002)(81166007)(86362001)(40460700003)(336012)(36860700001)(8936002)(316002)(70206006)(8676002)(4326008)(7696005)(82310400005)(6666004)(5660300002)(110136005)(70586007)(44832011)(54906003)(32563001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2022 13:45:16.3584 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70d527d8-348b-421b-8aed-08da1bc182eb X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT027.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4714 Cc: Mario Limonciello , open list , Vijendar Mukunda 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" It's not possible to probe for the presence of a DMIC, so the ACP6x machine driver currently has a hardcoded list of all the systems known to have a DMIC connected to the ACP. Although this design works it means that the acp6x driver needs to always grow with more systems and worse, if an OEM introduces a new system there will be a mismatch in time that even if the driver (otherwise) works fine it needs their system added to the list to work. So this series introduces a _DSD that OEMs can populate into the BIOS to indicate presence of a DMIC. Mario Limonciello (2): ASoC: amd: Add driver data to acp6x machine driver ASoC: amd: Add support for enabling DMIC on acp6x via _DSD sound/soc/amd/yc/acp6x-mach.c | 42 +++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-)