From patchwork Mon May 9 11:24:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Keeping X-Patchwork-Id: 9045211 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3F50DBF440 for ; Mon, 9 May 2016 11:26:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8334D20149 for ; Mon, 9 May 2016 11:26:10 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 515D32011E for ; Mon, 9 May 2016 11:26:09 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7EE0C266198; Mon, 9 May 2016 13:26:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 499F52654D4; Mon, 9 May 2016 13:25:00 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 070E426582F; Mon, 9 May 2016 13:24:58 +0200 (CEST) Received: from metanate.com (dougal.metanate.com [90.155.101.14]) by alsa0.perex.cz (Postfix) with ESMTP id B4A3F2651D1 for ; Mon, 9 May 2016 13:24:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=metanate.com; s=stronger; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=up02Ch3myRe5s8C9R4MN599xxaNn4ZzGku0pQsHAMmw=; b=eDIqeVSzLYRFXGbq22Z6JvkUU0IwVXf1Jks2vspezo2pwLnzMaoEto1DULadISSXOZbOWwe4+gNJ6k+odYkXxtirG3ERB19sAWPOF6FWBIJNPRXejDqaHrMvlvqmcQECgqCaJVmSmcMIjh9Q+JlXbaXnbXcZhxzQjjEDV/GZdN6BwIw3lzE2RvO0D0YDqdP3cqs9qjpzPrk8YquJyshwqBviqhVo7G9xGbTJNWJmb/z+dJ7pm/VvKgv633tkjmsnS57qyy27SKic7lkR/wruqaM2iKOj3Be/aM1dZzuclV8aqeoQi5JtovmAkAF6bKEJ1Rjg/GvBy4+wKgX1BNSTWA==; Received: from brian ([192.168.88.1] helo=leela.metanate.com) by shrek.metanate.com with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.83_RC2) (envelope-from ) id 1azjIs-0004xp-Ck; Mon, 09 May 2016 12:24:46 +0100 From: John Keeping To: alsa-devel@alsa-project.org Date: Mon, 9 May 2016 12:24:37 +0100 Message-Id: <20160509112437.8924-10-john@metanate.com> X-Mailer: git-send-email 2.8.2.565.gdb84f68.dirty In-Reply-To: <20160509112437.8924-1-john@metanate.com> References: <20160509112437.8924-1-john@metanate.com> Cc: Liam Girdwood , linux-kernel@vger.kernel.org, Takashi Iwai , Mark Brown , John Keeping Subject: [alsa-devel] [PATCH 9/9] ASoC: es8328: Set symmetric rates X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Although the ES8328 does support different rates for capture and playback, only very limited combinations are supported (8kHz and 48kHz or 8.0182kHz and 44.1kHz) with most rates required to be symmetric. Instead of adding a lot of complexity for little gain, let's enforce symmetric rates. Signed-off-by: John Keeping --- sound/soc/codecs/es8328.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c index 6ec15c8822d3..26d46e5cb402 100644 --- a/sound/soc/codecs/es8328.c +++ b/sound/soc/codecs/es8328.c @@ -703,6 +703,7 @@ static struct snd_soc_dai_driver es8328_dai = { .formats = ES8328_FORMATS, }, .ops = &es8328_dai_ops, + .symmetric_rates = 1, }; static int es8328_suspend(struct snd_soc_codec *codec)