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: 4221651 Return-Path: X-Original-To: patchwork-linux-arm@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 8E8949F23C for ; Thu, 22 May 2014 11:25:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D5109202E6 for ; Thu, 22 May 2014 11:25:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69DB8202DD for ; Thu, 22 May 2014 11:25:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WnR5E-0003JW-CK; Thu, 22 May 2014 11:22:48 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WnR5B-0003FO-9z for linux-arm-kernel@lists.infradead.org; Thu, 22 May 2014 11:22:46 +0000 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 linux-arm-kernel@lists.infradead.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 Subject: [PATCH] ASoC: max98090: Add NI/MI values for user pclk 19.2 MHz 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== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140522_042245_561895_0E259635 X-CRM114-Status: GOOD ( 10.61 ) X-Spam-Score: -5.7 (-----) Cc: Chen Zhen , alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.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)