From patchwork Thu Aug 22 09:56:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 172020 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp646505ily; Thu, 22 Aug 2019 02:57:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqw54VKwkKrcjPBbFRJx8FqY8+7u7k6U7FQlzyEUXP5+cXJWoA1uMxQOMkiBW1t9iHoEUApe X-Received: by 2002:a63:1908:: with SMTP id z8mr32016765pgl.433.1566467865912; Thu, 22 Aug 2019 02:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566467865; cv=none; d=google.com; s=arc-20160816; b=QpTdpWjuux7bJzWtKICjBQnYre3U/Arbufev6IIOZClAdeGYh/fqqQB2b//fJeIuiK dvBZjuWjLObQz0xaVL5tuLfUJNDgBnb5EhH7/u75PO0sz34HcGHnyO/f8aG29zbZIJ6S GSGuNW+MgSXa1PozZ0gtEACfGIgUeqmxcCVnPR/2SOfsd/F/8ZtjTrDJHMMJFV9iEBuK RM3wf2NsJD+Ir/5Wd/8lcuoHUQimpx/dGyVzr5ifodn/kQzD8Zg4GFOGUeXyrwLoo4ds DJYBm1Ry9W4N3ztIWtfb07VLSfek7hIkawZ5thYmGBaIg6rpK6AbpTDp8w1meOogd7zc 5VbA== 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=7lEwavhf3fUGzkEL5MEZgCjXL2zMuro3WN6EEJNDNjU=; b=avwLPsqsdLRAdN5THYtFsQGQma/oTmozOlyMlXEMx0hztT39+tz0rNulYN95gFVd6+ Nj9WGf8ahuBzCA4DSw2o+Dy+dSCgJ7+26Hts7fMSCXYQXz+CNEaoRNZpT3Uf+5cagPaj tG86Ah3fInMxATS3SaykKhQ8njL2gqkVjIjR5JfWEYErVlY7b9WFV8G0P8Cdgf6wy6Zo cXGK0xDq6h0rlOzElcWHo/2lvG7TKXqyxmgCit9z+42RApjtrhaWncXlEAMjw2g2Mv97 NissYqjm4uPvdHeEpGYVF7fRDYrPE4QPRN3Mf1cQBpqNKdCjS6eVWYqir65dAVPBKKi5 SOkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KNnlO3AS; 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 t3si17081595plz.101.2019.08.22.02.57.45; Thu, 22 Aug 2019 02:57:45 -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=KNnlO3AS; 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 S1732531AbfHVJ5e (ORCPT + 28 others); Thu, 22 Aug 2019 05:57:34 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40628 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732403AbfHVJ5b (ORCPT ); Thu, 22 Aug 2019 05:57:31 -0400 Received: by mail-wm1-f68.google.com with SMTP id c5so4903225wmb.5 for ; Thu, 22 Aug 2019 02:57:30 -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=7lEwavhf3fUGzkEL5MEZgCjXL2zMuro3WN6EEJNDNjU=; b=KNnlO3ASgv4ah2d8gdkaMFHttHgLNVvTnm4UPZ74Eqwfy7YLV+R7o/vIGBjnfyEh9E Xv1tzEw7a0qZuTR4qmbCKAeMqQFEJyk4L2SOdZhCRPcm2dCoG58ReEhEDi5blIeHiiFd VzKuaX13KfllCzPzSn3OiuysWFMb1eZQ9VePTg63dOcHiSVD6LX0OHU6EyaTuK1MaPx3 Fq1QgUzvgl/WKVRERRfykRgAnriXiGyZZPViuba/+Tlcbhv76oHh3cPV1qcdbAYWX27j lcydCzTlT7ABHQBsbCx7if52dsaxPcdMPGkyCSfG9L4xAE8gEzVYW0iXOkFs0llHuKFV XmDA== 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=7lEwavhf3fUGzkEL5MEZgCjXL2zMuro3WN6EEJNDNjU=; b=AnTBsR4eIiGuPY/G1on96jFKwPgb4qgJHZ9sOelyFPYy32u287rNXPQZUA6lkLWlDJ 3ZoWbUfiQn8cKqueMRtOrq+z+iPh5vuKYQWjUgJjaXkNz1VI7T+U2xgbBo6c+SeUU1ho 6OJ25GeJKnUOcEj8UcPn1384D8WyuT+FOqSgdCA+1aScmLUosxZs3tGD1PS+VUv5bWRn XaluyluE5KVq0eDVzOr0MF6xQqlg3rXHGF7jbm4dJhT5boW/ppfIJ0SObRi/oFff0ZB7 5fdKqann/irzYeQC51ZIRHe11Ql9eftmiTpewOIFnhHqxN6JYHZL9PNYThHgWP0pgJI1 3MLw== X-Gm-Message-State: APjAAAVz91OSRde/PmcKwfbl7OJd2G1zrq5PW8Ej3uWRA/s/ftdBvS+x B5dR3afjdOMpY9bmTao/HkwWCrGFlHM= X-Received: by 2002:a1c:4c06:: with SMTP id z6mr5154610wmf.47.1566467849478; Thu, 22 Aug 2019 02:57:29 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 02:57:28 -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, Vidyakumar Athota , Srinivas Kandagatla Subject: [PATCH v2 1/4] ALSA: pcm: add support for 352.8KHz and 384KHz sample rate Date: Thu, 22 Aug 2019 10:56:50 +0100 Message-Id: <20190822095653.7200-2-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 From: Vidyakumar Athota Most of the modern codecs supports 352.8KHz and 384KHz sample rates. Currenlty HW params fails to set 352.8Kz and 384KHz sample rate as these are not in known rates list. Add these new rates to known list to allow them. This patch also adds defines in pcm.h so that drivers can use it. Signed-off-by: Vidyakumar Athota Signed-off-by: Banajit Goswami Signed-off-by: Srinivas Kandagatla --- include/sound/pcm.h | 5 +++++ sound/core/pcm_native.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 1e9bb1c91770..bbe6eb1ff5d2 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -117,6 +117,8 @@ struct snd_pcm_ops { #define SNDRV_PCM_RATE_96000 (1<<10) /* 96000Hz */ #define SNDRV_PCM_RATE_176400 (1<<11) /* 176400Hz */ #define SNDRV_PCM_RATE_192000 (1<<12) /* 192000Hz */ +#define SNDRV_PCM_RATE_352800 (1<<13) /* 352800Hz */ +#define SNDRV_PCM_RATE_384000 (1<<14) /* 384000Hz */ #define SNDRV_PCM_RATE_CONTINUOUS (1<<30) /* continuous range */ #define SNDRV_PCM_RATE_KNOT (1<<31) /* supports more non-continuos rates */ @@ -129,6 +131,9 @@ struct snd_pcm_ops { SNDRV_PCM_RATE_88200|SNDRV_PCM_RATE_96000) #define SNDRV_PCM_RATE_8000_192000 (SNDRV_PCM_RATE_8000_96000|SNDRV_PCM_RATE_176400|\ SNDRV_PCM_RATE_192000) +#define SNDRV_PCM_RATE_8000_384000 (SNDRV_PCM_RATE_8000_192000|\ + SNDRV_PCM_RATE_352800|\ + SNDRV_PCM_RATE_384000) #define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt) #define SNDRV_PCM_FMTBIT_S8 _SNDRV_PCM_FMTBIT(S8) #define SNDRV_PCM_FMTBIT_U8 _SNDRV_PCM_FMTBIT(U8) diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 703857aab00f..11e653c8aa0e 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -2170,7 +2170,7 @@ static int snd_pcm_hw_rule_sample_bits(struct snd_pcm_hw_params *params, static const unsigned int rates[] = { 5512, 8000, 11025, 16000, 22050, 32000, 44100, - 48000, 64000, 88200, 96000, 176400, 192000 + 48000, 64000, 88200, 96000, 176400, 192000, 352800, 384000 }; const struct snd_pcm_hw_constraint_list snd_pcm_known_rates = { 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, }, From patchwork Thu Aug 22 09:56:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 172019 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp646477ily; Thu, 22 Aug 2019 02:57:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYBSeZbf5hc9L8vbBofZGCnM5QBHC4KJ7tdMuBhhyAaaUN6ExRZHG6+vK237c+jnzqOZqs X-Received: by 2002:a63:1908:: with SMTP id z8mr32016667pgl.433.1566467863944; Thu, 22 Aug 2019 02:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566467863; cv=none; d=google.com; s=arc-20160816; b=PGudm4/DM56psxJv1YJlPcGNUxdY8doLxNi8OJ4Sosd0WZdXVzB8OQCmZ+yfzbh2Df lpXcuYd2IPwhTnqIkLpQ5uKO652DWcB5r6f4VmMRrocshom3Y1aKmNDUG9RYnIg2XQT/ CjmhjDMad7mRp2jlhsNR+Hj5+rRITZNyAlQKh6Kc9Zqz6eBcW9pzoh6CnE93dueaJFMx I25gvZa0Cz81urJ33Pdus2DCDRYw57Y9jEUH761lv7ddvCOkB4f5Cq6AyjFSghzRHXcm hKDq+MJBOGc4KS/8+3OKIo5u5a4HvqP1RUMBmHd0Tscr2jUrsz0WXWE129moMwoWyM3I Ox7g== 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=7ODWBtpVLXMipclxHeFDJwXNUN4EjiRweHSVWcVI6sA=; b=FKgjUTntVE+NfGfouYaoVLcrd5Cjl50AXimqJSJvg480Roapak181eTd86aXXUNXax uEBFd41itFr+bSW1deyZlyy6InGzzTD1ckCbZYa2rqUM5jurN7xbXV6U0/rXvXfQSxdv vDrwy2wHVr4wgbfEZy3/2ioRu6Crf0dzjlbMc92Oz9EalIefCY5JLmvHHUF5xVAsSHup gECdTssNqFXypSGQTvmyGZQfOzxEyel2kTbmZXSs/fBAAr2IFi8JlZ3WkG6BSENtLIx6 uVFscCCDRm+7GHz21pMNT6Mh0ZWZkXquqrlc+DZJwTH31CdTzMh4MfbFxkboeuu41bgC ogXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G36uhWdj; 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 t3si17081595plz.101.2019.08.22.02.57.43; Thu, 22 Aug 2019 02:57:43 -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=G36uhWdj; 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 S1732648AbfHVJ5m (ORCPT + 28 others); Thu, 22 Aug 2019 05:57:42 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34666 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732515AbfHVJ5e (ORCPT ); Thu, 22 Aug 2019 05:57:34 -0400 Received: by mail-wm1-f67.google.com with SMTP id e8so6723499wme.1 for ; Thu, 22 Aug 2019 02:57:33 -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=7ODWBtpVLXMipclxHeFDJwXNUN4EjiRweHSVWcVI6sA=; b=G36uhWdjCUarled0tt/nSqTGRJQobhmevHt5CRxzXkO/id6ns//zyh8swvKcYiP5hP MePfesYxsFXE+AH+vUpilA6rkLRBJ60Ami99R4xugrNxzNGYXhlYndPwx7r8fCspudEC 5dTZ5I9O7i15l2VxKUyEGtr3pKlSrTedwqFffBImWCL5QM4j4RQb5JY7kcqXMsx9ONlP DOPHXkE2zWy8y48D4N7xbSn9FB3XIjYe4L+1c1qSu8wsbhbeMaa7U0Ok9t2KLJBJn3+9 g0+9o6mCl0LRK634Bl4jG8LFfJ9q/h9Y89CHoJ2ipMsCxuFDrXAhXKHKIECZhs04Rr/9 hiww== 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=7ODWBtpVLXMipclxHeFDJwXNUN4EjiRweHSVWcVI6sA=; b=PJxBlgBFbkMTE96PseDc4sqe18jvANDp77d+zJ7TymanGQLWY4i3au2hPL9txLx7so 8voiVVAuhOWqVzIQpkuUIis5UvDyq1fMCTEEEVHG2Sms0e0Up7+oBKb4uw+XFHeYJR4s zVKLkB+Dt+uRsT3UwoszI5A1beVbxvht4/P8wTvNcYsyA3glAX1CHfdrxOTNERz8Gdfp I9iw7kUO5Zj2FookpXMoHV5gfdmmysd/B8iTwTUybYd7+c7qtY8MoDid/FKk+UikeeqC /X5cm6++cFvzN1AP/U3ftrNab1q1SpbYoVc6DZs9Rh4E0ZFFVvPFELccH/8S1JpYzhVe RUMA== X-Gm-Message-State: APjAAAV0BfynCEVZ/gdx1bXZ833BoTGsnX9XA2+anT6pFYOrGlGFkWpm HCx4b9TqsBSKy2BPllL9TQTuOw== X-Received: by 2002:a05:600c:24cb:: with SMTP id 11mr5205419wmu.94.1566467852327; Thu, 22 Aug 2019 02:57:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 02:57:31 -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 3/4] ASoC: qdsp6: q6afe-dai: Update max rate for slim and tdm dais Date: Thu, 22 Aug 2019 10:56:52 +0100 Message-Id: <20190822095653.7200-4-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 QDSP supports up to 384000 rates on SLIM dais and 352800 rate on TDM dais. Add this missing rates. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6afe-dai.c | 92 +++++++++++--------------------- 1 file changed, 32 insertions(+), 60 deletions(-) -- 2.21.0 diff --git a/sound/soc/qcom/qdsp6/q6afe-dai.c b/sound/soc/qcom/qdsp6/q6afe-dai.c index c1a7624eaf17..ae2baefdb6e2 100644 --- a/sound/soc/qcom/qdsp6/q6afe-dai.c +++ b/sound/soc/qcom/qdsp6/q6afe-dai.c @@ -18,14 +18,14 @@ .stream_name = pre" TDM"#num" Playback", \ .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ - SNDRV_PCM_RATE_176400, \ + SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_352800,\ .formats = SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S24_LE | \ SNDRV_PCM_FMTBIT_S32_LE, \ .channels_min = 1, \ .channels_max = 8, \ .rate_min = 8000, \ - .rate_max = 176400, \ + .rate_max = 352800, \ }, \ .name = #did, \ .ops = &q6tdm_ops, \ @@ -39,14 +39,14 @@ .stream_name = pre" TDM"#num" Capture", \ .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\ SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\ - SNDRV_PCM_RATE_176400, \ + SNDRV_PCM_RATE_176400 | SNDRV_PCM_RATE_352800,\ .formats = SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S24_LE | \ SNDRV_PCM_FMTBIT_S32_LE, \ .channels_min = 1, \ .channels_max = 8, \ .rate_min = 8000, \ - .rate_max = 176400, \ + .rate_max = 352800, \ }, \ .name = #did, \ .ops = &q6tdm_ops, \ @@ -646,15 +646,13 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .playback = { .stream_name = "Slimbus Playback", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .name = "SLIMBUS_0_TX", @@ -664,28 +662,24 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .capture = { .stream_name = "Slimbus Capture", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .playback = { .stream_name = "Slimbus1 Playback", - .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | - SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 2, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, .name = "SLIMBUS_1_RX", .ops = &q6slim_ops, @@ -700,28 +694,24 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .capture = { .stream_name = "Slimbus1 Capture", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .playback = { .stream_name = "Slimbus2 Playback", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, .name = "SLIMBUS_2_RX", .ops = &q6slim_ops, @@ -737,28 +727,24 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .capture = { .stream_name = "Slimbus2 Capture", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .playback = { .stream_name = "Slimbus3 Playback", - .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | - SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 2, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, .name = "SLIMBUS_3_RX", .ops = &q6slim_ops, @@ -774,28 +760,24 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .capture = { .stream_name = "Slimbus3 Capture", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .playback = { .stream_name = "Slimbus4 Playback", - .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | - SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 2, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, .name = "SLIMBUS_4_RX", .ops = &q6slim_ops, @@ -811,28 +793,24 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .capture = { .stream_name = "Slimbus4 Capture", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .playback = { .stream_name = "Slimbus5 Playback", - .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | - SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 2, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, .name = "SLIMBUS_5_RX", .ops = &q6slim_ops, @@ -848,28 +826,24 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .capture = { .stream_name = "Slimbus5 Capture", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .playback = { .stream_name = "Slimbus6 Playback", - .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 | - SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 2, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, .ops = &q6slim_ops, .name = "SLIMBUS_6_RX", @@ -885,15 +859,13 @@ static struct snd_soc_dai_driver q6afe_dais[] = { .remove = msm_dai_q6_dai_remove, .capture = { .stream_name = "Slimbus6 Capture", - .rates = SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_8000 | - SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_96000 | - SNDRV_PCM_RATE_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE, .channels_min = 1, .channels_max = 8, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, }, }, { .playback = { From patchwork Thu Aug 22 09:56:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 172018 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp646404ily; Thu, 22 Aug 2019 02:57:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxgrM6sp+YSHqW0tp6B/uC+G/YvkJxbpga3rRdiY7EKcd3vEeTMXTK2peb1APuH0mW06ttT X-Received: by 2002:a17:902:346:: with SMTP id 64mr38615318pld.151.1566467858900; Thu, 22 Aug 2019 02:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566467858; cv=none; d=google.com; s=arc-20160816; b=hmPKXD0TMI4hhK38L6tjD1IoNR9ekKE1YD24wEcy0+q9J3hJQ/bYH9SuoLLXrApqTC 6c+jyiNroG/Icl8fD24+y8kqiOdyxaFZWx4cH976AHr/LfTTnwofhqW9CpoErqn9QMGS yVSa867x6g6XgjT6Q0lXsDw4UJaYexcAC19dXNru7taNBtoaG5n58tqT8sidugv8t1b3 urxdkilx/uL54On7+e01ilnMqrxJtUuEE17ptmP8urpqjUU42fYoZC74jfndsCE6g0Xu Bqts91+g8iDP61jh7i1pEGmCnCpzUmMFIZxbZVqYSZ+apa0QNuSuI/xsJ6An0yK3hewg lVDg== 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=VR0Zo2f2LdCFMXPsnJEJq1uzw3++zs+EK/TmF24Zk8U=; b=HKeSBFNUPJOv7jfaCCbOoAZ5Wq4qfdH/dyXdh1/840s9QR+nefoiFSGEtfwzhf1/ID AKlq14RZXJvy2QgauvdhJAdqkppXt31+gtmBaOy7jlOrqDCesLQ6izAJotbk19esdy2m l97X6G+8wWBbSr/sj513hV9UT8KGMKwmxnSw/IbRC1mnLamFf32lJ3y/GcElcLfuxjAK tBZLEW/zOqQWPxwF9xMJQ5bQPgUUxvro8uM08xmwqoduewohy1sm6pQusWQAFXemXydW 3bzaRjANwfwIVQaK/CqsJVSjLFINwBhKGNqXQcvWOrHcI1BCLo9JDUK/sJ2GyO9mIPWJ cVuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZLicH0OV; 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 t3si17081595plz.101.2019.08.22.02.57.38; Thu, 22 Aug 2019 02:57:38 -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=ZLicH0OV; 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 S1732626AbfHVJ5h (ORCPT + 28 others); Thu, 22 Aug 2019 05:57:37 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38085 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732527AbfHVJ5f (ORCPT ); Thu, 22 Aug 2019 05:57:35 -0400 Received: by mail-wm1-f68.google.com with SMTP id m125so5099064wmm.3 for ; Thu, 22 Aug 2019 02:57:34 -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=VR0Zo2f2LdCFMXPsnJEJq1uzw3++zs+EK/TmF24Zk8U=; b=ZLicH0OVCDzwVWhCLhka6L6kttl49SH+prKuYjagxN7kq1n1T3Z4NJUEBiDUB8J/W9 C02+TSE7jcGLseF16/U7Eex53jFAzc0NXIGEe4YL8Rlhi1ULSJ5SoujcSB2y6COp7GI3 6aet3GSxhuQxqyS6RlnCI/mwU0aglT+LqRCsOXfy9NsYl6jYLjcjTOAgP9mT9/V/D7/0 uTw00t8G/TL911SQB9cLayd1WfnzQ7earGqZLu+5/tm42r219H7s1CurqP12c1vorOgJ caQbmfo2k5cr2A1rFoCHr91UoriaATMIk8nOHvbtsLRTFlLbm8W1PaXoFGGwr6kcHiVR 3aKA== 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=VR0Zo2f2LdCFMXPsnJEJq1uzw3++zs+EK/TmF24Zk8U=; b=HJ3bywNgOSk4YpNDOcNIQEAJnlaszI0uaTufwB/rQ+LaV/N2Nm1ZCAbrav7bhaersC 0/yqFhBX/rx8F63je05CYkG/REM9Tz+MfqX2zLOMjYNy81izWX+mdHUn+Oo6sPtBbRKQ hjxosJy4aLGvg1rUiekpCE0Mpm12qdnsIWEQ9QfLwtGQFIEC4bcZrF0/sJsMt16fV+xq KBj+OJgmdyNC92aLeGWVwdnFi6nRlV1HcSVCoyI8ZXNTA7UvcjjOW7oOBF/SpY8iN198 xMGVQJax7n0prfKW+6A0pIfJ5zau3j8QUQudVefHWJVWU0jzEx0ae9xI769+cJ11LJkG 94IA== X-Gm-Message-State: APjAAAVF9pTBrpr1V7Un5BvLp7Sunluayp41wKdUdvgfqZBwgfPsQa7K gMHh3Q0VgaIkaHfFEX1KDdf57g== X-Received: by 2002:a7b:cf09:: with SMTP id l9mr5202229wmg.20.1566467853328; Thu, 22 Aug 2019 02:57:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 02:57:32 -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 4/4] ASoC: qdsp6: q6asm-dai: fix max rates on q6asm dais Date: Thu, 22 Aug 2019 10:56:53 +0100 Message-Id: <20190822095653.7200-5-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 Q6ASM dais support max rate up to 384KHz, update this. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6asm-dai.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) -- 2.21.0 diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index 548eb4fa2da6..5eaeadec8492 100644 --- a/sound/soc/qcom/qdsp6/q6asm-dai.c +++ b/sound/soc/qcom/qdsp6/q6asm-dai.c @@ -80,9 +80,9 @@ static struct snd_pcm_hardware q6asm_dai_hardware_capture = { SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_RESUME), .formats = (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE), - .rates = SNDRV_PCM_RATE_8000_48000, + .rates = SNDRV_PCM_RATE_8000_384000, .rate_min = 8000, - .rate_max = 48000, + .rate_max = 384000, .channels_min = 1, .channels_max = 4, .buffer_bytes_max = CAPTURE_MAX_NUM_PERIODS * @@ -102,9 +102,9 @@ static struct snd_pcm_hardware q6asm_dai_hardware_playback = { SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_RESUME), .formats = (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE), - .rates = SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_8000_384000, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 384000, .channels_min = 1, .channels_max = 8, .buffer_bytes_max = (PLAYBACK_MAX_NUM_PERIODS * @@ -119,25 +119,25 @@ static struct snd_pcm_hardware q6asm_dai_hardware_playback = { #define Q6ASM_FEDAI_DRIVER(num) { \ .playback = { \ .stream_name = "MultiMedia"#num" Playback", \ - .rates = (SNDRV_PCM_RATE_8000_192000| \ + .rates = (SNDRV_PCM_RATE_8000_384000| \ SNDRV_PCM_RATE_KNOT), \ .formats = (SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S24_LE), \ .channels_min = 1, \ .channels_max = 8, \ .rate_min = 8000, \ - .rate_max = 192000, \ + .rate_max = 384000, \ }, \ .capture = { \ .stream_name = "MultiMedia"#num" Capture", \ - .rates = (SNDRV_PCM_RATE_8000_48000| \ + .rates = (SNDRV_PCM_RATE_8000_384000| \ SNDRV_PCM_RATE_KNOT), \ .formats = (SNDRV_PCM_FMTBIT_S16_LE | \ SNDRV_PCM_FMTBIT_S24_LE), \ .channels_min = 1, \ .channels_max = 4, \ .rate_min = 8000, \ - .rate_max = 48000, \ + .rate_max = 384000, \ }, \ .name = "MultiMedia"#num, \ .id = MSM_FRONTEND_DAI_MULTIMEDIA##num, \ @@ -146,7 +146,7 @@ static struct snd_pcm_hardware q6asm_dai_hardware_playback = { /* Conventional and unconventional sample rate supported */ static unsigned int supported_sample_rates[] = { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, - 88200, 96000, 176400, 192000 + 88200, 96000, 176400, 192000, 352800, 384000 }; static struct snd_pcm_hw_constraint_list constraints_sample_rates = {