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: 1320401 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2D3D8DF215 for ; Tue, 14 Aug 2012 14:29:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752554Ab2HNO2t (ORCPT ); Tue, 14 Aug 2012 10:28:49 -0400 Received: from na3sys009aog121.obsmtp.com ([74.125.149.145]:42550 "EHLO na3sys009aog121.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756224Ab2HNOWv (ORCPT ); Tue, 14 Aug 2012 10:22:51 -0400 Received: from mail-qc0-f179.google.com ([209.85.216.179]) (using TLSv1) by na3sys009aob121.postini.com ([74.125.148.12]) with SMTP ID DSNKUCpfOixdmN8IwkS7TirJuSZ3TQuCM8mK@postini.com; Tue, 14 Aug 2012 07:22:51 PDT Received: by qcse14 with SMTP id e14so270449qcs.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=A4vQL+y7aEE6AuqmVM6uebKE3GeL0h50yWt2JUcTDE3Os4Tjr0QZWEBKTapWSS4TSa Sy8Hv4UUhAzLxGvT6r5Okyp9TpTayGLbhWC5bBPv3CAQqgxUy3HnLOMtFfTSTprb6jEh Q8VYto8RjJsMkBRjKgoQK+mgwsmpJpy2jMNj/B9O5yBCxcxcsihqHs1lDZqE6HW0pDqF 6+oPbEno7rGkLRVX2H4MRzSET0Y++aqWp+txw9nMc62G/UFRp49mIafCEr20quDPshM9 TcL2sWlUzvwQ3H1kGFe8xJgAVMgXt4Pkp+Y8Lw/Pj6QLwRyz/WHDObL3D09mw+m5DQr+ pCfA== 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 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 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: ALoCoQkx7S5nnQmoOyd5qpaiGyHFpX2G6Dj+oSqBVrhk2O3UcLh9HxaOOGrjq8ilThUmPuaWZHMA 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 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) {