diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-15 03:04:51 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 06:37:48 -0500 |
commit | 3ed6448c9509d2394532b2ed91db16fa1ef47447 (patch) | |
tree | 68c018991c2dde95265353ed1948ce8ad87425ed | |
parent | 710d088923856bb0e0369e675985047a51ba729c (diff) |
ASoC: rsnd: rename rsnd_dai_is_clk_master() to rsnd_rdai_is_clk_master()
struct rsnd_dai is called as "rdai", and struct snd_soc_dai is called
as "dai" on this driver. but macro/function have confusable naming.
This patch rename rsnd_dai_is_clk_master() to rsnd_rdai_is_clk_master()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sh/rcar/rsnd.h | 2 | ||||
-rw-r--r-- | sound/soc/sh/rcar/src.c | 2 | ||||
-rw-r--r-- | sound/soc/sh/rcar/ssi.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index cd39f32acaa8..749b9779dd1e 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -307,6 +307,7 @@ struct rsnd_dai { | |||
307 | }; | 307 | }; |
308 | 308 | ||
309 | #define rsnd_rdai_nr(priv) ((priv)->rdai_nr) | 309 | #define rsnd_rdai_nr(priv) ((priv)->rdai_nr) |
310 | #define rsnd_rdai_is_clk_master(rdai) ((rdai)->clk_master) | ||
310 | #define for_each_rsnd_dai(rdai, priv, i) \ | 311 | #define for_each_rsnd_dai(rdai, priv, i) \ |
311 | for (i = 0; \ | 312 | for (i = 0; \ |
312 | (i < rsnd_rdai_nr(priv)) && \ | 313 | (i < rsnd_rdai_nr(priv)) && \ |
@@ -321,7 +322,6 @@ int rsnd_dai_id(struct rsnd_priv *priv, struct rsnd_dai *rdai); | |||
321 | 322 | ||
322 | void rsnd_dai_pointer_update(struct rsnd_dai_stream *io, int cnt); | 323 | void rsnd_dai_pointer_update(struct rsnd_dai_stream *io, int cnt); |
323 | int rsnd_dai_pointer_offset(struct rsnd_dai_stream *io, int additional); | 324 | int rsnd_dai_pointer_offset(struct rsnd_dai_stream *io, int additional); |
324 | #define rsnd_dai_is_clk_master(rdai) ((rdai)->clk_master) | ||
325 | 325 | ||
326 | /* | 326 | /* |
327 | * R-Car Gen1/Gen2 | 327 | * R-Car Gen1/Gen2 |
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 6a3fd8dce1c3..cb2dbf3b8569 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c | |||
@@ -147,7 +147,7 @@ int rsnd_src_ssiu_start(struct rsnd_mod *ssi_mod, | |||
147 | if (shift >= 0) | 147 | if (shift >= 0) |
148 | rsnd_mod_bset(ssi_mod, SSI_MODE1, | 148 | rsnd_mod_bset(ssi_mod, SSI_MODE1, |
149 | 0x3 << shift, | 149 | 0x3 << shift, |
150 | rsnd_dai_is_clk_master(rdai) ? | 150 | rsnd_rdai_is_clk_master(rdai) ? |
151 | 0x2 << shift : 0x1 << shift); | 151 | 0x2 << shift : 0x1 << shift); |
152 | } | 152 | } |
153 | 153 | ||
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c index a55b96399ada..816178c71a6b 100644 --- a/sound/soc/sh/rcar/ssi.c +++ b/sound/soc/sh/rcar/ssi.c | |||
@@ -189,7 +189,7 @@ static void rsnd_ssi_hw_start(struct rsnd_ssi *ssi, | |||
189 | if (0 == ssi->usrcnt) { | 189 | if (0 == ssi->usrcnt) { |
190 | rsnd_mod_hw_start(&ssi->mod); | 190 | rsnd_mod_hw_start(&ssi->mod); |
191 | 191 | ||
192 | if (rsnd_dai_is_clk_master(rdai)) { | 192 | if (rsnd_rdai_is_clk_master(rdai)) { |
193 | if (rsnd_ssi_clk_from_parent(ssi)) | 193 | if (rsnd_ssi_clk_from_parent(ssi)) |
194 | rsnd_ssi_hw_start(ssi->parent, rdai, io); | 194 | rsnd_ssi_hw_start(ssi->parent, rdai, io); |
195 | else | 195 | else |
@@ -210,7 +210,7 @@ static void rsnd_ssi_hw_start(struct rsnd_ssi *ssi, | |||
210 | rsnd_mod_write(&ssi->mod, SSICR, cr); | 210 | rsnd_mod_write(&ssi->mod, SSICR, cr); |
211 | 211 | ||
212 | /* enable WS continue */ | 212 | /* enable WS continue */ |
213 | if (rsnd_dai_is_clk_master(rdai)) | 213 | if (rsnd_rdai_is_clk_master(rdai)) |
214 | rsnd_mod_write(&ssi->mod, SSIWSR, CONT); | 214 | rsnd_mod_write(&ssi->mod, SSIWSR, CONT); |
215 | 215 | ||
216 | /* clear error status */ | 216 | /* clear error status */ |
@@ -252,7 +252,7 @@ static void rsnd_ssi_hw_stop(struct rsnd_ssi *ssi, | |||
252 | rsnd_mod_write(&ssi->mod, SSICR, cr); /* disabled all */ | 252 | rsnd_mod_write(&ssi->mod, SSICR, cr); /* disabled all */ |
253 | rsnd_ssi_status_check(&ssi->mod, IIRQ); | 253 | rsnd_ssi_status_check(&ssi->mod, IIRQ); |
254 | 254 | ||
255 | if (rsnd_dai_is_clk_master(rdai)) { | 255 | if (rsnd_rdai_is_clk_master(rdai)) { |
256 | if (rsnd_ssi_clk_from_parent(ssi)) | 256 | if (rsnd_ssi_clk_from_parent(ssi)) |
257 | rsnd_ssi_hw_stop(ssi->parent, rdai); | 257 | rsnd_ssi_hw_stop(ssi->parent, rdai); |
258 | else | 258 | else |