From patchwork Tue Aug 14 14:22:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1320641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 1786B3FC81 for ; Tue, 14 Aug 2012 14:40:54 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T1IDt-0005v0-7U; Tue, 14 Aug 2012 14:35:58 +0000 Received: from na3sys009aog115.obsmtp.com ([74.125.149.238]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1T1I1S-0004an-LU for linux-arm-kernel@lists.infradead.org; Tue, 14 Aug 2012 14:23:15 +0000 Received: from mail-yx0-f179.google.com ([209.85.213.179]) (using TLSv1) by na3sys009aob115.postini.com ([74.125.148.12]) with SMTP ID DSNKUCpfQO6OJRBQEaN8hxyEsZQ1B1q2WyNN@postini.com; Tue, 14 Aug 2012 07:23:01 PDT Received: by yenq7 with SMTP id q7so526052yen.38 for ; Tue, 14 Aug 2012 07:22:50 -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=YO7rku3jnkHC9jN0pmmANMOzENFQlV4DTCWi7+6B6+4=; b=pPS5r5C5aiPNpYqssAJPM0s7elH10re0D+ay01AZX4B1x8yLBb9Aw26Ezgj1DRyUSf oKCnvJO/4xyLS/eatCmImCaFYq+sCSoW/FiW9X6Piwx8HrbVChoH6SPRHWrAQRqUqq23 OQLmKi4QKSHYGyQMl7hvDrA1LEpWbaOk49WAu1oTqeSHPnI6vyDtK4gP5aS7OUPh4AIW vyABU1fhU6KBPv4myB5iPrVluV2xF93AM7n+k72TYRPWtdpBpS9t+66otrVl00xIAo/T lTg9F8Y1dUhoV7Ij7/c0vV8ytD2jcr5c9bB5gSnZZokW2qM6c17MP3eP4syI9sksV2BQ hpbw== Received: by 10.60.10.6 with SMTP id e6mr25423364oeb.45.1344954169972; Tue, 14 Aug 2012 07:22:49 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id kc5sm2799741obb.21.2012.08.14.07.22.46 (version=SSLv3 cipher=OTHER); Tue, 14 Aug 2012 07:22:49 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren , Grant Likely , Rob Herring Subject: [PATCH v2 05/14] MFD: twl4030-audio: Get audio MCLK via twl-core API instead of pdata Date: Tue, 14 Aug 2012 17:22:33 +0300 Message-Id: <1344954162-7985-6-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1344954162-7985-1-git-send-email-peter.ujfalusi@ti.com> References: <1344954162-7985-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQn06Mf6Z0k5HqimBkHGpeS3Ab1LsOptCL677Fbvzi9QfHKUtP26uweQopCp7I2+IotlPfb9 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.238 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: alsa-devel@alsa-project.org, Benoit Cousson , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Tero Kristo , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 files changed, 1 insertions(+), 1 deletions(-) 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) {