Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5860823ybi; Wed, 31 Jul 2019 04:32:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyc5w9j3/0L6fe8vooWzMT1VdfA1MQMCcGmpvQT2KRvjA3mJh515NfGD/ucwHV2WkzQMUcd X-Received: by 2002:a62:2f06:: with SMTP id v6mr47271042pfv.195.1564572742440; Wed, 31 Jul 2019 04:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564572742; cv=none; d=google.com; s=arc-20160816; b=gAFaFvDz/4mLIhCgmRLeztN00C8SoxOmG4qTV9mzXC2YELQvgwRG0ecbSERZtAcWAB b295nksroCX7wIxXMYpd+hDTTYflw8A0I0hYnKikbIdkZcNa91xD/0mQ2CQPcf4KWJ02 rjJyj6mcyLja/umpmZT2IiYGjMydRJuJer1ahp5jJ8AFTbVQ+QS7ROI5MXFiS+xH0blF D4tCovtYkGrFdVCYK5p/uEkQYrnUj7bBzawNL9BXPxr5lX7khDy59Qj1gcxY8JJvUwQJ JWUY9jzc3vWl//B1VLaUocgSG7Z3/HmGrBhgnwP0dRofqtW+BZrObAnGrgm8bZXOUu/z 5eqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=qdXfU6r5b5sdjGKJgeKuLM8z6fXd+57ECxKLYJefhRg=; b=NnMvi1EiQa86S8lB/MwcQcG2WAA7J9P7xIMCHwdkowjwYfxqaHBseQjzbsExihRWyH doQFiQkIl1tjH1VY7KdNURrK9nuFRs2D9umQKdlbAoyuqs5610aOBQEgjjxrhlwDO3Q8 10QS2BYqmKe78nX84uTx4mJIFt0Je89ORRHqH/QkRqdRp/wpFj3ZUbyerqDB6l/RD6Zt /LUllvzEMew3APdW3gxjrv6rBkXqRRls50gaYPFc0CB9eNErMJS095YQVcC0EiRi1EWC QO3Lwb5ukgbOrvgk6q83ZEbPPLSd2gGUwqot2ccZ5/4q/YF/5OMwGRNKx12oA34hnI/l GSkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=h7mJvPV4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si34962705pgi.312.2019.07.31.04.32.07; Wed, 31 Jul 2019 04:32:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=h7mJvPV4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387655AbfGaLaL (ORCPT + 99 others); Wed, 31 Jul 2019 07:30:11 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:34996 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387596AbfGaLaJ (ORCPT ); Wed, 31 Jul 2019 07:30:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=qdXfU6r5b5sdjGKJgeKuLM8z6fXd+57ECxKLYJefhRg=; b=h7mJvPV40UEw 3KaRh1RriPGRhUPlrjB5eVR9O93+MYafPgo89J2bUWnqc2+GsMxE990Eqn+E6iBDJssbzl59fsgb6 zB5KGcq4W2nywpYg857qEi0d6RNW65Waj0BGjY1rHdgeNloGTTXJxru0tC3ydVbakXreJAvTRhSDx +zz5k=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hsmno-0001pr-Br; Wed, 31 Jul 2019 11:29:52 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 80FD42742CDE; Wed, 31 Jul 2019 12:29:51 +0100 (BST) From: Mark Brown To: fengchunguo Cc: alsa-devel@alsa-project.org, bleung@chromium.org, broonie@kernel.org, chunguo.feng@amlogic.com, grundler@chromium.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, Mark Brown , perex@perex.cz, pierre-louis.bossart@linux.intel.com, RyanS.Lee@maximintegrated.com, tiwai@suse.com Subject: Applied "ASoC: max98373: add 88200 and 96000 sampling rate support" to the asoc tree In-Reply-To: <20190731074156.5620-1-chunguo.feng@amlogic.com> X-Patchwork-Hint: ignore Message-Id: <20190731112951.80FD42742CDE@ypsilon.sirena.org.uk> Date: Wed, 31 Jul 2019 12:29:51 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: max98373: add 88200 and 96000 sampling rate support has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From b9da500bde81ad820b5d95c6bf52fc33e1f490ee Mon Sep 17 00:00:00 2001 From: fengchunguo Date: Wed, 31 Jul 2019 15:41:56 +0800 Subject: [PATCH] ASoC: max98373: add 88200 and 96000 sampling rate support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 88200 and 96000 sampling rate was not enabled on driver, so can't be played. The error information: max98373 3-0031:rate 96000 not supported max98373 3-0031:ASoC: can't set max98373-aif1 hw params: -22 Signed-off-by: fengchunguo Link: https://lore.kernel.org/r/20190731074156.5620-1-chunguo.feng@amlogic.com Signed-off-by: Mark Brown --- sound/soc/codecs/max98373.c | 6 ++++++ sound/soc/codecs/max98373.h | 2 ++ 2 files changed, 8 insertions(+) mode change 100644 => 100755 sound/soc/codecs/max98373.c mode change 100644 => 100755 sound/soc/codecs/max98373.h diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c old mode 100644 new mode 100755 index 528695cd6a1c..8c601a3ebc27 --- a/sound/soc/codecs/max98373.c +++ b/sound/soc/codecs/max98373.c @@ -267,6 +267,12 @@ static int max98373_dai_hw_params(struct snd_pcm_substream *substream, case 48000: sampling_rate = MAX98373_PCM_SR_SET1_SR_48000; break; + case 88200: + sampling_rate = MAX98373_PCM_SR_SET1_SR_88200; + break; + case 96000: + sampling_rate = MAX98373_PCM_SR_SET1_SR_96000; + break; default: dev_err(component->dev, "rate %d not supported\n", params_rate(params)); diff --git a/sound/soc/codecs/max98373.h b/sound/soc/codecs/max98373.h old mode 100644 new mode 100755 index f6a37aa02f26..a59e51355a84 --- a/sound/soc/codecs/max98373.h +++ b/sound/soc/codecs/max98373.h @@ -130,6 +130,8 @@ #define MAX98373_PCM_SR_SET1_SR_32000 (0x6 << 0) #define MAX98373_PCM_SR_SET1_SR_44100 (0x7 << 0) #define MAX98373_PCM_SR_SET1_SR_48000 (0x8 << 0) +#define MAX98373_PCM_SR_SET1_SR_88200 (0x9 << 0) +#define MAX98373_PCM_SR_SET1_SR_96000 (0xA << 0) /* MAX98373_R2028_PCM_SR_SETUP_2 */ #define MAX98373_PCM_SR_SET2_SR_MASK (0xF << 4) -- 2.20.1