From patchwork Fri Jul 21 08:17:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U2h1bWluZyBb6IyD5pu46YqYXQ==?= X-Patchwork-Id: 13321625 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 13669EB64DD for ; Fri, 21 Jul 2023 08:22:26 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 1A6ADEB2; Fri, 21 Jul 2023 10:21:35 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1A6ADEB2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689927745; bh=gv4A6GoJm7cnDpvJiFK9UQAjcmo12Xqn3pFfl+YIi3Y=; h=From:To:CC:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=ZjPedHdQaMmf1Z2wOSp7V3XRB3vd4RMaiOECRhadav9ntC9bhvJFouYkt+dWfu3IF yJPLsa8X0fdjrhAsdsnT5GFKSmT6KKWipa1dPKvDRg0He3/QFFWfz8gGwCJ4tyVoTV iqMHk1kvpJ9WkoawEwWA09iL0GlLpK35FzZ7P9m8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id E66CEF8027B; Fri, 21 Jul 2023 10:18:18 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 7EB0BF8027B; Fri, 21 Jul 2023 10:18:18 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5731FF8047D; Fri, 21 Jul 2023 10:18:14 +0200 (CEST) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by alsa1.perex.cz (Postfix) with ESMTP id EF3C4F800D2 for ; Fri, 21 Jul 2023 10:18:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EF3C4F800D2 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 36L8HoDA2028859, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 36L8HoDA2028859 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 21 Jul 2023 16:17:50 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 21 Jul 2023 16:18:00 +0800 Received: from ubuntu.localdomain (172.22.102.209) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 21 Jul 2023 16:18:00 +0800 From: To: , CC: , , , , , , , Shuming Fan Subject: [PATCH 1/2] ASoC: rt1316: support the different base clock frequency Date: Fri, 21 Jul 2023 16:17:51 +0800 Message-ID: <20230721081751.113106-1-shumingf@realtek.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [172.22.102.209] X-ClientProxiedBy: RTEXH36505.realtek.com.tw (172.21.6.25) To RTEXMBS01.realtek.com.tw (172.21.6.94) X-KSE-ServerInfo: RTEXMBS01.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Message-ID-Hash: 4OSPAE5ZZ3GRIYXS45L5K6VQAODJATA5 X-Message-ID-Hash: 4OSPAE5ZZ3GRIYXS45L5K6VQAODJATA5 X-MailFrom: shumingf@realtek.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Shuming Fan This patch configures all PLL settings to support the all of base clock frequencies. Signed-off-by: Shuming Fan --- sound/soc/codecs/rt1316-sdw.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt1316-sdw.c b/sound/soc/codecs/rt1316-sdw.c index 721821d9e9af..ce2246a2591c 100644 --- a/sound/soc/codecs/rt1316-sdw.c +++ b/sound/soc/codecs/rt1316-sdw.c @@ -76,6 +76,27 @@ static const struct reg_sequence rt1316_blind_write[] = { { 0xc713, 0x06 }, { 0xc714, 0x80 }, { 0xc715, 0x06 }, + { 0xc720, 0x17 }, + { 0xc721, 0x00 }, + { 0xc722, 0x3e }, + { 0xc723, 0x06 }, + { 0xc724, 0x80 }, + { 0xc725, 0x06 }, + { 0xc730, 0x06 }, + { 0xc731, 0x00 }, + { 0xc732, 0x3E }, + { 0xc740, 0x13 }, + { 0xc741, 0x80 }, + { 0xc742, 0x30 }, + { 0xc743, 0x06 }, + { 0xc744, 0x05 }, + { 0xc745, 0x1E }, + { 0xc750, 0x17 }, + { 0xc751, 0x00 }, + { 0xc752, 0x2E }, + { 0xc753, 0x06 }, + { 0xc754, 0x80 }, + { 0xc755, 0x06 }, { 0xc702, 0x0a }, { 0xc703, 0x0a }, { 0xc001, 0x45 }, @@ -88,7 +109,7 @@ static const struct reg_sequence rt1316_blind_write[] = { { 0xc008, 0x11 }, { 0xc009, 0x00 }, - { 0x2f0a, 0x00 }, + { 0x2f0a, 0x01 }, { 0xd101, 0xf0 }, { 0xd103, 0x9b }, { 0x2f36, 0x8e }, From patchwork Fri Jul 21 08:18:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U2h1bWluZyBb6IyD5pu46YqYXQ==?= X-Patchwork-Id: 13321631 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 4EFD8EB64DC for ; Fri, 21 Jul 2023 08:22:49 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 440C3208; Fri, 21 Jul 2023 10:21:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 440C3208 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689927767; bh=dR6SrCwVchyQlzbk6tHHymqWwLK+FQWsut19s/lwuYY=; h=From:To:CC:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=SD6xp4hr0T0Wxz+fDzJ1z6BpqpWC5Yk/yBaHWNQoWX/e1ea9nmdEA6poa29MSq/or wmpUdX5/n66M9ArUWgy3Q7FSyKjr8Zo1AB/OTA6mMUZbH97+/PxcQUWRKUdzqWWqeh v2bkZUWY5OX0gEQZSo7KljCI5olBgaLEjSlPjgNE= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 89B6EF80558; Fri, 21 Jul 2023 10:18:28 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 14A2EF80558; Fri, 21 Jul 2023 10:18:28 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3CD0BF80549; Fri, 21 Jul 2023 10:18:24 +0200 (CEST) Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by alsa1.perex.cz (Postfix) with ESMTP id A566CF8047D for ; Fri, 21 Jul 2023 10:18:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A566CF8047D Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 36L8I4huC028967, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 36L8I4huC028967 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Fri, 21 Jul 2023 16:18:04 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 21 Jul 2023 16:18:14 +0800 Received: from ubuntu.localdomain (172.22.102.209) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 21 Jul 2023 16:18:13 +0800 From: To: , CC: , , , , , , , Shuming Fan Subject: [PATCH 2/2] ASoC: rt1316: fix key tone missing Date: Fri, 21 Jul 2023 16:18:07 +0800 Message-ID: <20230721081807.113125-1-shumingf@realtek.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [172.22.102.209] X-ClientProxiedBy: RTEXH36506.realtek.com.tw (172.21.6.27) To RTEXMBS01.realtek.com.tw (172.21.6.94) X-KSE-ServerInfo: RTEXMBS01.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Message-ID-Hash: 75IS4D6MTZTJJEZSYRPQAJKMQZPCXE2M X-Message-ID-Hash: 75IS4D6MTZTJJEZSYRPQAJKMQZPCXE2M X-MailFrom: shumingf@realtek.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Shuming Fan This patch disables the soft ramp to output immediately. Signed-off-by: Shuming Fan --- sound/soc/codecs/rt1316-sdw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt1316-sdw.c b/sound/soc/codecs/rt1316-sdw.c index ce2246a2591c..feea11149d93 100644 --- a/sound/soc/codecs/rt1316-sdw.c +++ b/sound/soc/codecs/rt1316-sdw.c @@ -134,7 +134,7 @@ static const struct reg_sequence rt1316_blind_write[] = { { 0xc093, 0x80 }, { 0xc09d, 0x80 }, { 0xc0b0, 0x77 }, - { 0xc010, 0xa5 }, + { 0xc010, 0x25 }, { 0xc050, 0x83 }, { 0x2f55, 0x03 }, { 0x3217, 0xb5 },