Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3707433pxb; Mon, 24 Jan 2022 15:57:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxifCzFkatcME7bqRNK3K0JkfTZN94T596sybxXHv5J6mbG5kELGneeDWKLH7/5P1JZLrQa X-Received: by 2002:a17:903:32d1:b0:14b:872:788b with SMTP id i17-20020a17090332d100b0014b0872788bmr17033092plr.68.1643068675463; Mon, 24 Jan 2022 15:57:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068675; cv=none; d=google.com; s=arc-20160816; b=RPMety+J8KFpE0kphbQtIxGOLhzkx7+UaVrV6BRqnm/mDUzPzIBwMBBn1ikvNLLksZ q7y7CsOcp1AjPtMt2piD5EIhp8vi6TUmQDGnsWlmWnXQYVqER5bmuwSCFOh1NZ00W9pB ZDX3lB4S+P6ijQAtPEvX4umFlvN9wPrmbSwVZykMfEsveRD/9xZJHRYp698GztoXK6a6 l8RjAAil/g4ypoRoU2VDcJnTmdW4/mMcm4vnpBpidJIRGhm1lSoYsTSAmPSsegQKaFqS 4YyabaU9HFdKtEoDys4bVWlr5q/2P9xIVtd4FwuHDivprutsnDsQIWBvDa70M6cmuh2i oNXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=shk/tb6pBVmvoaGU8iPGIDbAtrPYnEBMmc8u/3643tM=; b=MPgaYiZfaChlOTzhXeT+dS0UBsukGFBmJyTXonDPcGQps7N/XWF/2qx2n6bJ5t46wO bTDbvm8UWn7NeYDRNhUZz73E71Kwc9hBmn/4r2rDGYPrkNSXM3p+un4fDBfFEpHVeRI8 RyhgCQy0EiEuoyoVa0dX2O5c8jQl5fCTu03u5rXYNmDKww1UHgM+ga6Wynb5+SDObhGp juUm1ZrN2x93Pi8sNaRA/LGsOT93FPMBC+LqtQKHOP6lrdc/eVGqlAZ+1X4sPB0Xmb+C YHWCKLG2fCpzGfM1tNxWyS1Y0Rxz0YmSSfEyw92A7neh/k3NFNepx0tQpBoPfE08MFM8 RRNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qcTqC2J2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 20si13964119pll.297.2022.01.24.15.57.43; Mon, 24 Jan 2022 15:57:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qcTqC2J2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2366086AbiAXXwQ (ORCPT + 99 others); Mon, 24 Jan 2022 18:52:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1845408AbiAXXMO (ORCPT ); Mon, 24 Jan 2022 18:12:14 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF6B8C09F4B6; Mon, 24 Jan 2022 13:19:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 93D20B80FA1; Mon, 24 Jan 2022 21:19:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC4D9C340E4; Mon, 24 Jan 2022 21:19:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643059169; bh=K5eKq+0HrMybBiSNveured9NxZMCaK86vy2yBY9oE8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qcTqC2J29Kj9xYjCvEDnA816dCV4lGv+73mpRYfyst5jRcLWOJUtQBgRf6BLt4EJh I8sgkrRJakp+KdpbstySjxEusA+I11OjHD9VyEY09NYRW893v4Pf+/mNlAOpex4V4A vs6SKuDp0zsnk+u6UvGUIo1ykzUCNuAqxO04htPs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shengjiu Wang , Mark Brown , Sasha Levin Subject: [PATCH 5.16 0527/1039] ASoC: imx-card: improve the sound quality for low rate Date: Mon, 24 Jan 2022 19:38:36 +0100 Message-Id: <20220124184142.998295878@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shengjiu Wang [ Upstream commit 3969341813eb56d2dfc39bb64229359a6ae3c195 ] According to RM, on auto mode: For codec AK4458 and AK4497, the lowest ratio of MLCK/FS is 256 if sample rate is 8kHz-48kHz, For codec AK5558, the lowest ratio of MLCK/FS is 512 if sample rate is 8kHz-48kHz. With these setting the sound quality for 8kHz-48kHz can be improved. Fixes: aa736700f42f ("ASoC: imx-card: Add imx-card machine driver") Signed-off-by: Shengjiu Wang Link: https://lore.kernel.org/r/1641292835-19085-4-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/imx-card.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c index 84a8dcdee9316..c7503a5f7cfbc 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -120,7 +120,7 @@ struct imx_card_data { static struct imx_akcodec_fs_mul ak4458_fs_mul[] = { /* Normal, < 32kHz */ - { .rmin = 8000, .rmax = 24000, .wmin = 1024, .wmax = 1024, }, + { .rmin = 8000, .rmax = 24000, .wmin = 256, .wmax = 1024, }, /* Normal, 32kHz */ { .rmin = 32000, .rmax = 32000, .wmin = 256, .wmax = 1024, }, /* Normal */ @@ -151,8 +151,8 @@ static struct imx_akcodec_fs_mul ak4497_fs_mul[] = { * Table 7 - mapping multiplier and speed mode * Tables 8 & 9 - mapping speed mode and LRCK fs */ - { .rmin = 8000, .rmax = 32000, .wmin = 1024, .wmax = 1024, }, /* Normal, <= 32kHz */ - { .rmin = 44100, .rmax = 48000, .wmin = 512, .wmax = 512, }, /* Normal */ + { .rmin = 8000, .rmax = 32000, .wmin = 256, .wmax = 1024, }, /* Normal, <= 32kHz */ + { .rmin = 44100, .rmax = 48000, .wmin = 256, .wmax = 512, }, /* Normal */ { .rmin = 88200, .rmax = 96000, .wmin = 256, .wmax = 256, }, /* Double */ { .rmin = 176400, .rmax = 192000, .wmin = 128, .wmax = 128, }, /* Quad */ { .rmin = 352800, .rmax = 384000, .wmin = 128, .wmax = 128, }, /* Oct */ @@ -164,7 +164,7 @@ static struct imx_akcodec_fs_mul ak4497_fs_mul[] = { * (Table 4 from datasheet) */ static struct imx_akcodec_fs_mul ak5558_fs_mul[] = { - { .rmin = 8000, .rmax = 32000, .wmin = 1024, .wmax = 1024, }, + { .rmin = 8000, .rmax = 32000, .wmin = 512, .wmax = 1024, }, { .rmin = 44100, .rmax = 48000, .wmin = 512, .wmax = 512, }, { .rmin = 88200, .rmax = 96000, .wmin = 256, .wmax = 256, }, { .rmin = 176400, .rmax = 192000, .wmin = 128, .wmax = 128, }, -- 2.34.1