All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	Simon <horms@verge.net.au>, <linux-renesas-soc@vger.kernel.org>
Subject: [PATCH 5/5] ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm()
Date: Wed, 14 Jun 2017 00:35:47 +0000	[thread overview]
Message-ID: <877f0f9zrx.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87efun9zwb.wl%kuninori.morimoto.gx@renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Current simple card drivers are using asoc_simple_dai's tx_slot_mask,
rx_slot_mask, slots, slot_width directly to parse TDM.
Encapsulation is one of simple card util's purpose.
Let's use asoc_simple_card_of_parse_tdm for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/generic/audio-graph-scu-card.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c
index 27a261e..4d295d0 100644
--- a/sound/soc/generic/audio-graph-scu-card.c
+++ b/sound/soc/generic/audio-graph-scu-card.c
@@ -167,11 +167,7 @@ static int asoc_graph_card_dai_link_of(struct device_node *ep,
 					      "prefix");
 	}
 
-	ret = snd_soc_of_parse_tdm_slot(ep,
-					&dai_props->tx_slot_mask,
-					&dai_props->rx_slot_mask,
-					&dai_props->slots,
-					&dai_props->slot_width);
+	ret = asoc_simple_card_of_parse_tdm(ep, dai_props);
 	if (ret)
 		return ret;
 
-- 
1.9.1

WARNING: multiple messages have this Message-ID (diff)
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	Simon <horms@verge.net.au>,
	linux-renesas-soc@vger.kernel.org
Subject: [PATCH 5/5] ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm()
Date: Wed, 14 Jun 2017 00:35:47 +0000	[thread overview]
Message-ID: <877f0f9zrx.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <87efun9zwb.wl%kuninori.morimoto.gx@renesas.com>

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Current simple card drivers are using asoc_simple_dai's tx_slot_mask,
rx_slot_mask, slots, slot_width directly to parse TDM.
Encapsulation is one of simple card util's purpose.
Let's use asoc_simple_card_of_parse_tdm for it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/generic/audio-graph-scu-card.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sound/soc/generic/audio-graph-scu-card.c b/sound/soc/generic/audio-graph-scu-card.c
index 27a261e..4d295d0 100644
--- a/sound/soc/generic/audio-graph-scu-card.c
+++ b/sound/soc/generic/audio-graph-scu-card.c
@@ -167,11 +167,7 @@ static int asoc_graph_card_dai_link_of(struct device_node *ep,
 					      "prefix");
 	}
 
-	ret = snd_soc_of_parse_tdm_slot(ep,
-					&dai_props->tx_slot_mask,
-					&dai_props->rx_slot_mask,
-					&dai_props->slots,
-					&dai_props->slot_width);
+	ret = asoc_simple_card_of_parse_tdm(ep, dai_props);
 	if (ret)
 		return ret;
 
-- 
1.9.1

  parent reply	other threads:[~2017-06-14  0:35 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14  0:33 [PATCH 0/5] ASoC: simple/graph card: use asoc_simple_card_of_parse_tdm() Kuninori Morimoto
2017-06-14  0:33 ` Kuninori Morimoto
2017-06-14  0:34 ` [PATCH 1/5] ASoC: simple-card-utils: add asoc_simple_card_of_parse_tdm() Kuninori Morimoto
2017-06-14  0:34   ` Kuninori Morimoto
2017-06-14 10:12   ` Applied "ASoC: simple-card-utils: add asoc_simple_card_of_parse_tdm()" to the asoc tree Mark Brown
2017-06-14 10:12     ` Mark Brown
2017-06-14  0:34 ` [PATCH 2/5] ASoC: simple-card: use asoc_simple_card_of_parse_tdm() Kuninori Morimoto
2017-06-14  0:34   ` Kuninori Morimoto
2017-06-14 10:12   ` Applied "ASoC: simple-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree Mark Brown
2017-06-14 10:12     ` Mark Brown
2017-06-14  0:35 ` [PATCH 3/5] ASoC: simple-scu-card: use asoc_simple_card_of_parse_tdm() Kuninori Morimoto
2017-06-14  0:35   ` Kuninori Morimoto
2017-06-14 10:12   ` Applied "ASoC: simple-scu-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree Mark Brown
2017-06-14 10:12     ` Mark Brown
2017-06-14  0:35 ` [PATCH 4/5] ASoC: audio-graph-card: use asoc_simple_card_of_parse_tdm() Kuninori Morimoto
2017-06-14  0:35   ` Kuninori Morimoto
2017-06-14 10:12   ` Applied "ASoC: audio-graph-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree Mark Brown
2017-06-14 10:12     ` Mark Brown
2017-06-14  0:35 ` Kuninori Morimoto [this message]
2017-06-14  0:35   ` [PATCH 5/5] ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm() Kuninori Morimoto
2017-06-14 10:12   ` Applied "ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm()" to the asoc tree Mark Brown
2017-06-14 10:12     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f0f9zrx.wl%kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=horms@verge.net.au \
    --cc=linux-renesas-soc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.