From patchwork Fri Mar 21 06:17:12 2014
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Xiubo Li
X-Patchwork-Id: 3871471
Return-Path:
X-Original-To: patchwork-alsa-devel@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 388ED9F370
for ;
Fri, 21 Mar 2014 07:03:55 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id 621D620272
for ;
Fri, 21 Mar 2014 07:03:54 +0000 (UTC)
Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243])
by mail.kernel.org (Postfix) with ESMTP id 6ED4920263
for ;
Fri, 21 Mar 2014 07:03:49 +0000 (UTC)
Received: by alsa0.perex.cz (Postfix, from userid 1000)
id 82EB2265326; Fri, 21 Mar 2014 08:03:48 +0100 (CET)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY,
UNRESOLVED_TEMPLATE autolearn=no version=3.3.1
Received: from alsa0.perex.cz (localhost [IPv6:::1])
by alsa0.perex.cz (Postfix) with ESMTP id 8179026535C;
Fri, 21 Mar 2014 08:02:55 +0100 (CET)
X-Original-To: alsa-devel@alsa-project.org
Delivered-To: alsa-devel@alsa-project.org
Received: by alsa0.perex.cz (Postfix, from userid 1000)
id 16A8926535E; Fri, 21 Mar 2014 08:02:54 +0100 (CET)
Received: from tx2outboundpool.messaging.microsoft.com
(tx2ehsobe003.messaging.microsoft.com [65.55.88.13])
by alsa0.perex.cz (Postfix) with ESMTP id A0774265316
for ;
Fri, 21 Mar 2014 08:01:30 +0100 (CET)
Received: from mail163-tx2-R.bigfish.com (10.9.14.250) by
TX2EHSOBE010.bigfish.com (10.9.40.30) with Microsoft SMTP Server id
14.1.225.22; Fri, 21 Mar 2014 07:01:29 +0000
Received: from mail163-tx2 (localhost [127.0.0.1]) by
mail163-tx2-R.bigfish.com (Postfix) with ESMTP id 6D954401EA;
Fri, 21 Mar 2014 07:01:29 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null);
IPV:NLI;
H:mail.freescale.net; RD:none; EFVD:NLI
X-SpamScore: 0
X-BigFish:
VS0(zzzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz1de098h8275bh1de097hz2dh2a8h839he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h24afh2327h2336h2438h2461h2487h24d7h2516h2545h255eh25cch25f6h2605h1155h)
Received: from mail163-tx2 (localhost.localdomain [127.0.0.1]) by mail163-tx2
(MessageSwitch) id 1395385287857430_11068;
Fri, 21 Mar 2014 07:01:27 +0000 (UTC)
Received: from TX2EHSMHS042.bigfish.com (unknown [10.9.14.228]) by
mail163-tx2.bigfish.com (Postfix) with ESMTP id BF52EE00D4;
Fri, 21 Mar 2014 07:01:27 +0000 (UTC)
Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS042.bigfish.com
(10.9.99.142) with Microsoft SMTP Server (TLS) id 14.16.227.3;
Fri, 21 Mar 2014 07:01:19 +0000
Received: from az84smr01.freescale.net (10.64.34.197) by
039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP
Server (TLS) id 14.3.158.2; Fri, 21 Mar 2014 07:01:03 +0000
Received: from rock.am.freescale.net (rock.ap.freescale.net [10.193.20.106])
by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id
s2L70s60020982; Fri, 21 Mar 2014 00:01:00 -0700
From: Xiubo Li
To: ,
Date: Fri, 21 Mar 2014 14:17:12 +0800
Message-ID: <1395382635-16349-2-git-send-email-Li.Xiubo@freescale.com>
X-Mailer: git-send-email 1.8.0
In-Reply-To: <1395382635-16349-1-git-send-email-Li.Xiubo@freescale.com>
References: <1395382635-16349-1-git-send-email-Li.Xiubo@freescale.com>
MIME-Version: 1.0
X-OriginatorOrg: freescale.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR:
Id%0$Dn%FREESCALE.MAIL.ONMICROSOFT.COM$RO%1$TLS%0$FQDN%$TlsDn%
Cc: fabio.estevam@freescale.com, alsa-devel@alsa-project.org, lars@metafoo.de,
Xiubo Li , Guangyu.Chen@freescale.com,
shawn.guo@linaro.org
Subject: [alsa-devel] [PATCH 1/4] ASoC: core: remove the 'of_' prefix of
of_xlate_tdm_slot_mask.
X-BeenThere: alsa-devel@alsa-project.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: "Alsa-devel mailing list for ALSA developers -
http://www.alsa-project.org"
List-Unsubscribe:
,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: alsa-devel-bounces@alsa-project.org
Sender: alsa-devel-bounces@alsa-project.org
X-Virus-Scanned: ClamAV using ClamSMTP
The 'of_' is not appropriate here for there hasn't any DT parsing.
Signed-off-by: Xiubo Li
---
include/sound/soc-dai.h | 2 +-
sound/soc/soc-core.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 2f66d5e..fad7676 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -142,7 +142,7 @@ struct snd_soc_dai_ops {
* Called by soc_card drivers, normally in their hw_params.
*/
int (*set_fmt)(struct snd_soc_dai *dai, unsigned int fmt);
- int (*of_xlate_tdm_slot_mask)(unsigned int slots,
+ int (*xlate_tdm_slot_mask)(unsigned int slots,
unsigned int *tx_mask, unsigned int *rx_mask);
int (*set_tdm_slot)(struct snd_soc_dai *dai,
unsigned int tx_mask, unsigned int rx_mask,
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index b322cf2..318fee8 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3625,14 +3625,14 @@ int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
EXPORT_SYMBOL_GPL(snd_soc_dai_set_fmt);
/**
- * snd_soc_of_xlate_tdm_slot - generate tx/rx slot mask.
+ * snd_soc_xlate_tdm_slot - generate tx/rx slot mask.
* @slots: Number of slots in use.
* @tx_mask: bitmask representing active TX slots.
* @rx_mask: bitmask representing active RX slots.
*
* Generates the TDM tx and rx slot default masks for DAI.
*/
-static int snd_soc_of_xlate_tdm_slot_mask(unsigned int slots,
+static int snd_soc_xlate_tdm_slot_mask(unsigned int slots,
unsigned int *tx_mask,
unsigned int *rx_mask)
{
@@ -3662,11 +3662,11 @@ static int snd_soc_of_xlate_tdm_slot_mask(unsigned int slots,
int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai,
unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width)
{
- if (dai->driver && dai->driver->ops->of_xlate_tdm_slot_mask)
- dai->driver->ops->of_xlate_tdm_slot_mask(slots,
+ if (dai->driver && dai->driver->ops->xlate_tdm_slot_mask)
+ dai->driver->ops->xlate_tdm_slot_mask(slots,
&tx_mask, &rx_mask);
else
- snd_soc_of_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask);
+ snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask);
if (dai->driver && dai->driver->ops->set_tdm_slot)
return dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask,