From patchwork Thu Sep 6 12:12:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1413831 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id F242B3FC85 for ; Thu, 6 Sep 2012 12:15:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753831Ab2IFMPg (ORCPT ); Thu, 6 Sep 2012 08:15:36 -0400 Received: from na3sys009aog114.obsmtp.com ([74.125.149.211]:36043 "EHLO na3sys009aog114.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753202Ab2IFMMX (ORCPT ); Thu, 6 Sep 2012 08:12:23 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]) (using TLSv1) by na3sys009aob114.postini.com ([74.125.148.12]) with SMTP ID DSNKUEiTJPiIFp4XdKCLeHjlXiecJEsyXOQt@postini.com; Thu, 06 Sep 2012 05:12:21 PDT Received: by obbuo13 with SMTP id uo13so2296763obb.19 for ; Thu, 06 Sep 2012 05:12:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=c7QFn8BXQyEE6Iat5iiUv+5StX5V3SrFNtEgmovh9sE=; b=kU24Lxj8Ux0+htqzgS6a3M3+F+2BrAkGXAlyYUJu27OsOq7ix1m7QhhEkbtl/JHi8m 69DIFWXfRQFJm3M8tBk9UTsphnwsmDWF9Zv5ZIW0i9EIt1EK4REkX+hT5yz782U3JROl JrFmbwIXfv6SSx/E8pe/g9+W5ZY3AA0JA8vURZxzckfRiV1t0wBEvrp4nyIjIpF5AizV b+PtN3W1z52ZXF1P/a7hbB8mci4i7PVR1Op2zYwIG7ZJqyneOicUxCEDHX+uheG2eZQP zraA1fpa/J/7WdMTd+2+AKSeqCXfzoiWyZ4r/iDsiCE8Hp2TYlYHAMac9d2nY+zLp3L2 ffLA== Received: by 10.60.10.225 with SMTP id l1mr1743909oeb.28.1346933540303; Thu, 06 Sep 2012 05:12:20 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id zn9sm1795856obb.23.2012.09.06.05.12.17 (version=SSLv3 cipher=OTHER); Thu, 06 Sep 2012 05:12:19 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren , Samuel Ortiz , Dmitry Torokhov , Grant Likely , Rob Herring Cc: Tero Kristo , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, Benoit Cousson , linux-kernel@vger.kernel.org Subject: [PATCH v3 05/14] MFD: twl4030-audio: Get audio MCLK via twl-core API instead of pdata Date: Thu, 6 Sep 2012 15:12:12 +0300 Message-Id: <1346933541-21547-6-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1346933541-21547-1-git-send-email-peter.ujfalusi@ti.com> References: <1346933541-21547-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQld9Yv2XqzbjSWX70LUkdOABppyQ5dt6NN8ss9xtIafK9cxbycqk1AkPV2ZPF+wgDVG+5EH Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org twl-core has API to get the boot time configured HFCLK rate which has the same rate as the audio MCLK. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl4030-audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c index ca2d669..a48bf3a 100644 --- a/drivers/mfd/twl4030-audio.c +++ b/drivers/mfd/twl4030-audio.c @@ -175,7 +175,7 @@ static int __devinit twl4030_audio_probe(struct platform_device *pdev) return -ENOMEM; mutex_init(&audio->mutex); - audio->audio_mclk = pdata->audio_mclk; + audio->audio_mclk = twl_get_hfclk_rate(); /* Configure APLL_INFREQ and disable APLL if enabled */ switch (audio->audio_mclk) {