From patchwork Thu Aug 22 09:56:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 172017 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp646371ily; Thu, 22 Aug 2019 02:57:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7Pr9UyEZ9LKF4nmCxy3ostFhQ95hrmJ6l0sCbdsA00TTcphf3MefTMIVNDzwg+xt7YU6G X-Received: by 2002:a63:5754:: with SMTP id h20mr32015079pgm.195.1566467857042; Thu, 22 Aug 2019 02:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566467857; cv=none; d=google.com; s=arc-20160816; b=etB4QJBEQ5E+eN2gLOb+HnoOaTd/AtyBXrYByGKAoBQWpmNLtuO53MPpICq5lONy9G GB5lJLFPNd0YN+9etnb23kjXniQkX/sWFr5ykkDSla8ud1Zap6Cak2KxUn3CbxzHBn0t UfVCKd3UcsqBB+7ve/N0t3OHMhFdMsBMX7/WmyRrX7HjSOkGNJ78nMQoiMR5qg4DEIBt YIC5bEjYqWhkdtzYf1X0TxZFHD8sjjlW1ok9ZY8zBfEA1mwf+hFgSEwJMwHlb91PAcDG MnDjFPv8k/iciae7z0QMSFD5Srwjp8jRZuEQY4VawGQa1iEJ0uLcVTInKNC9svX4mo6o 9I/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GKAFqYDadH8IMiNywSvrdjTGvpCeW6m4y4ghvkPFmxg=; b=bxaDqhV9/z/NeJNifDUVgPJ8mjBCOQWrrNJ2gyKYYPcIcVhdrAoFn3p7XIugy/AE8n E9bjiYO2iJzUZvikbfFQqSCloXcYo7WTiVeK0ep0hIzM/V4Scc9yz3BudGievjeMPvnB 6tIjyoRLW6w22dApqOin1X3SqHavOrDoRB0QFWGCIrTqSe/RD51ukqX/d0rojv+qrhkM 7Xk5L+64yn4mCItfsgs8mXV1yQ5TMAMfxwOnx4j1SXFLI5INj79asLYGdyxFZV2MfyYv jFUVlPjsJJnr1UDAeUj76ipsNbA2ue+gAVcllFQbezoEx3vmzfmDZ4QT9yq5QIqknGuj TdVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XiHNyRJP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si16620182plq.237.2019.08.22.02.57.36; Thu, 22 Aug 2019 02:57:37 -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=pass header.i=@linaro.org header.s=google header.b=XiHNyRJP; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732557AbfHVJ5f (ORCPT + 28 others); Thu, 22 Aug 2019 05:57:35 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34662 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732502AbfHVJ5d (ORCPT ); Thu, 22 Aug 2019 05:57:33 -0400 Received: by mail-wm1-f65.google.com with SMTP id e8so6723450wme.1 for ; Thu, 22 Aug 2019 02:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GKAFqYDadH8IMiNywSvrdjTGvpCeW6m4y4ghvkPFmxg=; b=XiHNyRJPSiORbIyKJHuEbQbN/oWy9Kz9DnlaRQmvE0QFRPUSfJ/wQRArr2AAZFNcjP +4tKvhaM1NHaTb8jYFDWQHxJoGPUw4GiB9+C7EebLxAnrt1td8dIXJUcrSNMvCJFUeEH 993vnt+UyK/vhA3vQTs8izx9oAfKsPy6fz4DCkP5KI/ORB33uOk6QX3qb18R5ayS58K1 hmEB0n42KVIS4w8rWTLDo1IuJyxa8hngyXZRViT273e8ueH6mtvxrRx4MGThykMogNSk vOxOfBk4dgwUhlBMiB3NrziEqYZ18ssarwHumTVKBZT/7OxRlvsrJa2fDU0GywpL/zuj B+Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GKAFqYDadH8IMiNywSvrdjTGvpCeW6m4y4ghvkPFmxg=; b=PkivTRBy69GfvtE1efm+h00Hc5AWnDJHw3c+To0f9/Jk1cmBXPb80wfkzE0vFYT/Fx JYnNT+PYvfI44EDsr6S/CFUqxqSWdAK7ySSRMTS2AIrG6AWr9ei8FzGmKF2mWzHhnBgR hnWFalqm8PKol76DlOBzyjKLciSrqKYxpO/g7NHd95U7LaouO3T8mt7cIhhwMTJ/Pgw+ 89cWxXrBCDNeh4cgFN2P1CNN4Nbjy3s1W65vVHWEWa+qGMyEBwgH/7DWoFS4I0w9Clw0 5NKDIrjt+rYNPfTpya/ZZpg2j1J4dUJrCSy+9G2H3kmyZ6GzYanJZGLTmYA7/hGZ7wDH hDJg== X-Gm-Message-State: APjAAAWGRaSFAr++YI5DpC5lXGV2JD2yjQdhJyYj/tqn5C8Se6JeqQ5J NfL2nDwAHKtTq8I4shAHnoIUWA== X-Received: by 2002:a1c:a957:: with SMTP id s84mr5319660wme.65.1566467851084; Thu, 22 Aug 2019 02:57:31 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id t24sm3298909wmj.14.2019.08.22.02.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 02:57:30 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, tiwai@suse.de Cc: spapothi@codeaurora.org, bgoswami@codeaurora.org, plai@codeaurora.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, Srinivas Kandagatla Subject: [PATCH v2 2/4] ASoC: wcd9335: Fix primary interpolator max rate Date: Thu, 22 Aug 2019 10:56:51 +0100 Message-Id: <20190822095653.7200-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190822095653.7200-1-srinivas.kandagatla@linaro.org> References: <20190822095653.7200-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On this codec SLIMBus RX path supports 384000 rate on primary interpolator. Add this missing rate as supported rate. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd9335.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) -- 2.21.0 diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 956602788d0e..03f8a94bba2f 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -2071,9 +2071,10 @@ static struct snd_soc_dai_driver wcd9335_slim_dais[] = { .id = AIF1_PB, .playback = { .stream_name = "AIF1 Playback", - .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK, + .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK | + SNDRV_PCM_RATE_384000, .formats = WCD9335_FORMATS_S16_S24_LE, - .rate_max = 192000, + .rate_max = 384000, .rate_min = 8000, .channels_min = 1, .channels_max = 2, @@ -2099,10 +2100,11 @@ static struct snd_soc_dai_driver wcd9335_slim_dais[] = { .id = AIF2_PB, .playback = { .stream_name = "AIF2 Playback", - .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK, + .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK | + SNDRV_PCM_RATE_384000, .formats = WCD9335_FORMATS_S16_S24_LE, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, .channels_min = 1, .channels_max = 2, }, @@ -2127,10 +2129,11 @@ static struct snd_soc_dai_driver wcd9335_slim_dais[] = { .id = AIF3_PB, .playback = { .stream_name = "AIF3 Playback", - .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK, + .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK | + SNDRV_PCM_RATE_384000, .formats = WCD9335_FORMATS_S16_S24_LE, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, .channels_min = 1, .channels_max = 2, }, @@ -2155,10 +2158,11 @@ static struct snd_soc_dai_driver wcd9335_slim_dais[] = { .id = AIF4_PB, .playback = { .stream_name = "AIF4 Playback", - .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK, + .rates = WCD9335_RATES_MASK | WCD9335_FRAC_RATES_MASK | + SNDRV_PCM_RATE_384000, .formats = WCD9335_FORMATS_S16_S24_LE, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, .channels_min = 1, .channels_max = 2, },