From patchwork Thu May 22 11:21:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 4221601 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C4E239F23C for ; Thu, 22 May 2014 11:22:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4E9F202EB for ; Thu, 22 May 2014 11:22:45 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 85957202DD for ; Thu, 22 May 2014 11:22:44 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1C07E2655BC; Thu, 22 May 2014 13:22:43 +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.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 0B01A26559A; Thu, 22 May 2014 13:22:32 +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 CB1242655A1; Thu, 22 May 2014 13:22:30 +0200 (CEST) Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by alsa0.perex.cz (Postfix) with ESMTP id B4CC5261687 for ; Thu, 22 May 2014 13:22:22 +0200 (CEST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5Z004943L8TA60@mailout1.samsung.com> for alsa-devel@alsa-project.org; Thu, 22 May 2014 20:22:20 +0900 (KST) X-AuditID: cbfee61b-b7fbb6d000001be3-b9-537dddeb3a99 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 53.9A.07139.BEDDD735; Thu, 22 May 2014 20:22:20 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5Z00MGT3KAQ660@mmp2.samsung.com>; Thu, 22 May 2014 20:22:19 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Date: Thu, 22 May 2014 13:21:43 +0200 Message-id: <1400757703-24431-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKJMWRmVeSWpSXmKPExsVy+t9jQd03d2uDDXY3sVpcuXiIyWLqwyds FpseX2O1mHF+H5PF4TftrBab3/1jdWDz2PC5ic1j06pONo/NS+o9+rasYvT4vEkugDWKyyYl NSezLLVI3y6BK2NX6xG2gllcFVM31DUwLuHoYuTkkBAwkTi1eiIzhC0mceHeerYuRi4OIYHp jBJTl+5kgnA6mCSW7TjCBlLFJmAo0Xu0jxHEFgHquD2nkxmkiFlgL6PEn2WLWEESwgIeEocf doLZLAKqErduzwKzeQXcJCb+vQ7UwAG0TkFiziSbCYzcCxgZVjGKphYkFxQnpeca6RUn5haX 5qXrJefnbmIEB8Yz6R2MqxosDjEKcDAq8fDeOF8TLMSaWFZcmXuIUYKDWUmEd9+Z2mAh3pTE yqrUovz4otKc1OJDjNIcLErivAdbrQOFBNITS1KzU1MLUotgskwcnFINjA79i6SEBO5tYXta xamv65apOPMBY0QCc3rEpaBUXba0Jtvd7ILrF/s8f5+/6o3MzSmsOgx8Xy5/uGD9+uG+fK74 af/eX7jV7mue8Ig98/WhI0suXbW95Hd0y/1rR3Unbj/Xrfr8Rld6eHK0/JKyd1c2mq38GeVy embQqq8tsXu/pjhsO/LRfL4SS3FGoqEWc1FxIgA8Ys5ECAIAAA== Cc: Chen Zhen , alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH] ASoC: max98090: Add NI/MI values for user pclk 19.2 MHz 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 From: Chen Zhen This patch adds the clock divisor and multiplier NI, MI values for audio sampling frequencies 44100 and 48000 Hz and PCLK 19.2 MHz. This is useful for the Odroid X2/U2 boards when the codec works in master mode and its MCLK clock is fed from the I2S CDCLK output. Signed-off-by: Chen Zhen [s.nawrocki@samsung.com: edited the commit description] Signed-off-by: Sylwester Nawrocki --- sound/soc/codecs/max98090.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index f7b0b37..ea44471 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -1544,19 +1544,19 @@ static const int lrclk_rates[] = { }; static const int user_pclk_rates[] = { - 13000000, 13000000 + 13000000, 13000000, 19200000, 19200000, }; static const int user_lrclk_rates[] = { - 44100, 48000 + 44100, 48000, 44100, 48000, }; static const unsigned long long ni_value[] = { - 3528, 768 + 3528, 768, 441, 8 }; static const unsigned long long mi_value[] = { - 8125, 1625 + 8125, 1625, 1500, 25 }; static void max98090_configure_bclk(struct snd_soc_codec *codec)