Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4382605pxy; Tue, 27 Apr 2021 03:52:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd6rglBlP2YPFHdpPKmYbZEIarz768o7P6kS9ZRQD2gXQRqLz2jOrNiHXLbX/ed9Z2iUus X-Received: by 2002:a05:6a00:150d:b029:27a:ce95:bb0e with SMTP id q13-20020a056a00150db029027ace95bb0emr2066661pfu.64.1619520735668; Tue, 27 Apr 2021 03:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619520735; cv=none; d=google.com; s=arc-20160816; b=L4sMB2fvW08wj35Y0bxG7D/QQxAUCzNruXseuExBM4UGKtCB8yjrSgssusXpTrr+s2 4XFCReecEtmawhEA81MU1o0YRZriF4nYa0hieP/jpJ7BVUuZA61eJBpDjC+ii1eQd3CU dgG1prfUf7/1hrHLLKL3V9hHNJZnCIKuIV4vtfXYejFM9L/5NJyL/2V4F6Ky931FMe3O bzfJh7+Baw/oG7fJ3/Fo/FA1CcNPyIcdKwb/TFVOAgdgYLHjnGh7yBesg71T+BMei+ro mDrl/CFitaffy4IlBV+JXD+gkUg5cGRfe/gRIr6B2ZPnrcq4igOQ9FxJm/sj8YmOkHZ6 pPmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from; bh=kxWY+NgOjheiqZx7En0LlSK2SfBuqaZ8vxfZUgIDt2E=; b=e7u7f634jOQcPs0Q92xYQ4y7ylkkrLikZAzmhwbrEA1PIyGlP+LUBDItaJ1xXd1Btd oZk6+yeQ0Em64juLwLenCK+1rR8WIX42kk/MMNL1B88Pv6IYVmVRnIQSr6o1SjRPRioN wyMy6D+dQhr3ksRnru+X3fljmv2SgA1F3mUvB3cUcjDte7pHdvod+MCjjjivuXD/B682 seBErVe7vgGfboRyB/+Ta4I1/Yrck/iPZj7Z+sg+Z/lEui7p5nygdzoLVQbtOvD6OBBf VVHeXPet5nSSrEMmKXdNdudEaZDOnQYjvRF0QiE2e99ZS3TB+jqSXYwUUSwsRrS3Wp0a 7Tiw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh18si3431627pjb.55.2021.04.27.03.52.03; Tue, 27 Apr 2021 03:52:15 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235611AbhD0Kum (ORCPT + 99 others); Tue, 27 Apr 2021 06:50:42 -0400 Received: from inva020.nxp.com ([92.121.34.13]:51934 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235593AbhD0Kum (ORCPT ); Tue, 27 Apr 2021 06:50:42 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id BA02F1A0A59; Tue, 27 Apr 2021 12:49:58 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 72C7E1A0A89; Tue, 27 Apr 2021 12:49:56 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 0468140287; Tue, 27 Apr 2021 12:49:52 +0200 (CEST) From: Shengjiu Wang To: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, broonie@kernel.org Subject: [PATCH 2/2] ALSA: pcm: Extend the constraint table for 705.6kHz and 768KHz rate Date: Tue, 27 Apr 2021 18:34:23 +0800 Message-Id: <1619519663-10406-2-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1619519663-10406-1-git-send-email-shengjiu.wang@nxp.com> References: <1619519663-10406-1-git-send-email-shengjiu.wang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some high resolution codecs support 705.6KHz and 768KHz rates so extend the constraint table for 705.6kHz and 768KHz rate Signed-off-by: Shengjiu Wang --- sound/core/pcm_native.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 17a85f4815d5..3e03f34cf3e2 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -2370,7 +2370,8 @@ 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, 352800, 384000 + 48000, 64000, 88200, 96000, 176400, 192000, 352800, 384000, + 705600, 768000 }; const struct snd_pcm_hw_constraint_list snd_pcm_known_rates = { -- 2.27.0