From patchwork Mon Sep 10 10:46:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1431471 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 C73E1DF28C for ; Mon, 10 Sep 2012 10:49:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757017Ab2IJKtV (ORCPT ); Mon, 10 Sep 2012 06:49:21 -0400 Received: from na3sys009aog138.obsmtp.com ([74.125.149.19]:57646 "EHLO na3sys009aog138.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757220Ab2IJKqZ (ORCPT ); Mon, 10 Sep 2012 06:46:25 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]) (using TLSv1) by na3sys009aob138.postini.com ([74.125.148.12]) with SMTP ID DSNKUE3FAV1uFO5TdBG332RStfjhU3PLsSLc@postini.com; Mon, 10 Sep 2012 03:46:25 PDT Received: by obbuo13 with SMTP id uo13so2658638obb.19 for ; Mon, 10 Sep 2012 03:46:24 -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=iPW+Fvpf0DSLoEIQC0VkvttoLpSEw3Y1eCe0S/Ga2gHsTikI85PNLSMPgyJKNUtwni PcFJNKzPLdkaJSIbEt16fb68v4vt76vShEMTzy3dKH/z4W+DD1n6WQzy5ykqFqfdANnG SWGobcznjabcYFrL7+6KeoeY+1cJL92T2Rp0LA4eageucQT37+hui/QDY2EzB8y+52ov cNHVF+tTMrNM3xVIfcxzw+aA7xbLo7w5xlZI7urs9ZtwnWfDTvtAjMKe2/o/kCXPD4zt IssAcmlzvugFeY4uWZeg43naWQ21J4nC607ETUaeTpvFyMpiEXqEIownhHDZjXEuVNeq d98A== Received: by 10.182.47.66 with SMTP id b2mr12763733obn.34.1347273984703; Mon, 10 Sep 2012 03:46:24 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id 5sm8888098oeq.4.2012.09.10.03.46.21 (version=SSLv3 cipher=OTHER); Mon, 10 Sep 2012 03:46:24 -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 v4 05/14] MFD: twl4030-audio: Get audio MCLK via twl-core API instead of pdata Date: Mon, 10 Sep 2012 13:46:23 +0300 Message-Id: <1347273992-9107-6-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1347273992-9107-1-git-send-email-peter.ujfalusi@ti.com> References: <1347273992-9107-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQkkV3qFxgASNwpu87zN+Mb3OhNDkV3NZhtJf/ot7Ned4US3fmRpSHuGJcYSiBwzehJSDJWn 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) {