From patchwork Tue Jan 31 18:46:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 51016 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp71489wrn; Tue, 31 Jan 2023 10:51:24 -0800 (PST) X-Google-Smtp-Source: AK7set8sEHTdEmZ3+M84IxRujsyw2DX3m71C1ppJQe65dKSulER9N9R/P3rLMBPT7IlHT1N7VDTK X-Received: by 2002:a17:907:9859:b0:88a:7f9b:1f1f with SMTP id jj25-20020a170907985900b0088a7f9b1f1fmr6688846ejc.42.1675191083824; Tue, 31 Jan 2023 10:51:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1675191083; cv=pass; d=google.com; s=arc-20160816; b=ZNvz/kjfLyGQRYR4axwpjBbLijP73QU/U+vgVOS3rMid3gInnS7Ety0BSxrsvuWNDh 78qHxZV6F+YS+6SxgZnfRdiMDPiWX0GapNv0gYC/E3yEnlQZfojsSUyyQGyVb9HRznHD FmCGRQ9LkqK4AzaAX3tm6NmTtcKSU2vOKH4Gj9DLa1nSmwlsZu4i44nbTVJpcHth6L+a MLLDFGMrIRzmnFwKMMCFvOUpsVQB4/lCIdEhmvrXG0Pl6k8Apz/Qs5Y8w2iSgIezk3rH ifCCs9PDrmutMUoi0kdGf0qvJg6znEDkaq24PmMR6kkebVqF57eug1LxxTTewmiSOUGA S2pQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5aKmvnOZr7+ZbKfC741aJVN4sW9FPDgnJEvlymWjFz8=; b=fSv6TAUYZbOWnFLOF79d9a5hYRUSuCqg0er2G9j16k+PzzRMA1oAOFQXEojXYg3UJT dGrIanIItgcmAubAHlMOlAzOu+c+9CF/qQEuvoBJJrApCH3Z+gsXu6zC2GtuwEuT58Zg tGU2ChOo4wqpu/CbceWYOp1oaNG9eQ24JjOicsdwmJ/mgBh7sIKfTdYJguaGAZt7ucKB Xw4fKigAy/ap2Li4W+dbYKJQb4QupOXCHOz3JhF/nfxJQ3FxWhnIzjAnQAMVT6GfMMmW NY9LTCIyR6fKAAXIIGt6Voz75Kq9ZCtfUOUx8/H8cIRvfXKumVlAcAbLsOBm7YtSe/Yt Rysw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=iNQ2kNqz; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vj15-20020a170907130f00b00889353ad3c6si7139179ejb.253.2023.01.31.10.50.59; Tue, 31 Jan 2023 10:51:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=iNQ2kNqz; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230443AbjAaSrO (ORCPT + 99 others); Tue, 31 Jan 2023 13:47:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbjAaSrK (ORCPT ); Tue, 31 Jan 2023 13:47:10 -0500 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2066.outbound.protection.outlook.com [40.107.101.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE11530E9 for ; Tue, 31 Jan 2023 10:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QKkmcKW2AQa4JIRSSeS8RFYvaQJltPdP4aY/a0ez1NIlP5Cfv7sD3tDjvG7qm8aCAs/xx7xkaiYzAlJI+QLXY6+RrFpPwdmlxfqYoJkeIr/Vlyock9mvhWQoQiAaNMNTsUS+CLjgurdUfdgMYMrXO2s9ry5GF3O6LZNX26sbQH1AQYRRC4EqLAOS8bPSQMpMvLWR84Ua96ilCOi3Vz8dkgQh8RWcSkneu7JEZLZOLwfAceXt2zoS7x7CTamXT7PrTtAVIizx0h4xi9mECkeiRsiYzEzcJNH00f2hlqKU24rEbRzoxsEXDCx2BcQQ6bGCZS8b+m742pOFAzQT9jhKNw== 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=5aKmvnOZr7+ZbKfC741aJVN4sW9FPDgnJEvlymWjFz8=; b=TkMdGWg0SpRECfgz3I5VDkqK56jjrtLJPIiEGhTK2IY8ZYfRSoqz/No6U3CCT1CqL+ez8pLz4TVQeCKKON8UQ8cO/LfyIvknTfwjCqoKXuzrWdR+II53pjtj73FtsI0GG21l+OOFQG3alEEYsC2co8VMNIB0FKDTa1GJI8vNk0Pr/oFwga8z9psDR3QE133cwOvBqZRmZp429Yda+wxsXYA4MqmDcnx3QImz0bRZFnYDz0HfOcRpy7h73PY6LBDHHPnH1a3dwShnQpoHu6i1Uk8El/Fy4gCa1YAS3XHK7BaTstTUOWC+CPjzt1ShqpkiO75wX0JXxmvufzLSXlx+Ag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=redhat.com 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=5aKmvnOZr7+ZbKfC741aJVN4sW9FPDgnJEvlymWjFz8=; b=iNQ2kNqzbplCLg2Vdy+b2OC3FJB6KTDHenTKKp4zNPRwws3A7Uvpm8wdINKGKGhtBjSvIuLO6LWrgU5XWecCLGGkXRzSC6TRtynqz1jFw2SHQIu90ckVWrOjg8x8Js7TwDkl18UY8XtjMdC1ugWH0mtO6zAsQ3pxXFF1G4k5sQo= Received: from BN9P222CA0019.NAMP222.PROD.OUTLOOK.COM (2603:10b6:408:10c::24) by DM4PR12MB5200.namprd12.prod.outlook.com (2603:10b6:5:397::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.38; Tue, 31 Jan 2023 18:47:07 +0000 Received: from BL02EPF0000C403.namprd05.prod.outlook.com (2603:10b6:408:10c:cafe::1c) by BN9P222CA0019.outlook.office365.com (2603:10b6:408:10c::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6043.36 via Frontend Transport; Tue, 31 Jan 2023 18:47:07 +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; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL02EPF0000C403.mail.protection.outlook.com (10.167.241.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6064.17 via Frontend Transport; Tue, 31 Jan 2023 18:47:07 +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.34; Tue, 31 Jan 2023 12:47:06 -0600 From: Mario Limonciello To: Jaroslav Kysela , Mukunda Vijendar , Saba Kareem Syed , CC: Pananchikkal Renjith , Mark Pearson , Mario Limonciello , "Liam Girdwood" , Mark Brown , "Jaroslav Kysela" , Takashi Iwai , Subject: [PATCH v3 1/6] ASoC: amd: yc: Adjust the gain for PDM DMIC Date: Tue, 31 Jan 2023 12:46:47 -0600 Message-ID: <20230131184653.10216-2-mario.limonciello@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230131184653.10216-1-mario.limonciello@amd.com> References: <20230131184653.10216-1-mario.limonciello@amd.com> 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-TrafficTypeDiagnostic: BL02EPF0000C403:EE_|DM4PR12MB5200:EE_ X-MS-Office365-Filtering-Correlation-Id: e3f10f85-6860-46c3-417c-08db03bb8de9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: syT24L7mFKtpSpxssJMomJ5Qc/oD2s1WOLedcb5aifty6pFR7XGea1A2L+NKxKp7HCSd5p+kThifAeaOmJj/CmTRVh6n6lJuQHdLP7YSxim8nw98IQmfBoQmELBNCUIDTuZvDc4OABEzxFGQ59WGzAtvcaOZ0GVbdqex83BmnAmvgFwMU7Ig9pi68Q7aRE+dXpykMgPD4fTrx3nWtaNA6Ck8QawWbqbCc+pI1d5lzjOMwkdQ+SpsFIvLCVi45L9H7zurQ8m+FTYKFulShlOvnzHkn0TCLlwUvQM81kovgSwsatP+C3EEasYWe6W4ZICgbbsk/Am34IWJ9LTvVyZlycFu3kC/cqWnfL99wcyYBCoteK8vZTmyV6Silm20dYNtyUO2lyWoE/ZZNe1UqCoDWIcnGS4GEXeKCsotJ9V8MibINQ/ZVbMHhdaRzXrSiOlHg1eHfnVQAcs8CXdg56ABtR9/UAqQ0FvFr7oAB6Zzu6Zb9hX6K3HLnWI3k/2esRKL/mhqkMMNZN9VzwhDlyCz6vh1dlGpBr+g66kXeh74IGBb43S4WxHHGOS5g2DlKiQ4681/9PxNIYSNdfh3MD1KGUWLU97LnTbBZ1ZbomMRAEmITMmFA6h4zu9lR588056JEURgofQpUT4IadJ2RjkP6PzjQfPGCQ8o0Gb4oQSfS4AS7A/D9D77uN7yIiLU7fYcxezhL5aOe5JMez0UWShHEKfuVMGrGX216Mn9PNnU0es= 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:(13230025)(4636009)(376002)(346002)(136003)(39860400002)(396003)(451199018)(40470700004)(36840700001)(46966006)(8936002)(16526019)(336012)(2616005)(2906002)(186003)(1076003)(6666004)(26005)(40460700003)(41300700001)(4326008)(36756003)(70206006)(8676002)(5660300002)(4744005)(40480700001)(70586007)(86362001)(82310400005)(316002)(426003)(36860700001)(47076005)(7696005)(54906003)(478600001)(110136005)(44832011)(356005)(81166007)(82740400003)(83380400001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2023 18:47:07.7230 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3f10f85-6860-46c3-417c-08db03bb8de9 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: BL02EPF0000C403.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5200 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756565166075309822?= X-GMAIL-MSGID: =?utf-8?q?1756565166075309822?= A number of users for Lenovo Rembrandt based laptops are reporting that the microphone is too quiet relative to Windows with a dual boot. Increase the PDM gain to overcome this problem. Signed-off-by: Mario Limonciello --- sound/soc/amd/yc/acp6x.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/yc/acp6x.h b/sound/soc/amd/yc/acp6x.h index 74b596e6807ad..846ca10e24d3f 100644 --- a/sound/soc/amd/yc/acp6x.h +++ b/sound/soc/amd/yc/acp6x.h @@ -31,7 +31,7 @@ #define ACP_ERROR_STAT 29 #define PDM_DECIMATION_FACTOR 2 #define ACP_PDM_CLK_FREQ_MASK 7 -#define ACP_WOV_MISC_CTRL_MASK 0x10 +#define ACP_WOV_MISC_CTRL_MASK 0x18 #define ACP_PDM_ENABLE 1 #define ACP_PDM_DISABLE 0 #define ACP_PDM_DMA_EN_STATUS 2