diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-15 03:02:40 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-15 06:37:48 -0500 |
commit | 9d0e202f1314cb4a88bf7e04a6ba017d1a1910dc (patch) | |
tree | f25b13b3daf2bd9fef5999b8e69bc2a60b5e58de | |
parent | 798cbb400aa0198f8ed5aa0a0b0691985885e14c (diff) |
ASoC: rsnd: tidyup rsnd_io_to_xxx() macro declaration position
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h index c45700380e59..ff191cfbdcf6 100644 --- a/sound/soc/sh/rcar/rsnd.h +++ b/sound/soc/sh/rcar/rsnd.h | |||
@@ -286,6 +286,8 @@ struct rsnd_dai_stream { | |||
286 | #define rsnd_io_to_mod_ssi(io) ((io)->mod[RSND_MOD_SSI]) | 286 | #define rsnd_io_to_mod_ssi(io) ((io)->mod[RSND_MOD_SSI]) |
287 | #define rsnd_io_to_mod_src(io) ((io)->mod[RSND_MOD_SRC]) | 287 | #define rsnd_io_to_mod_src(io) ((io)->mod[RSND_MOD_SRC]) |
288 | #define rsnd_io_to_mod_dvc(io) ((io)->mod[RSND_MOD_DVC]) | 288 | #define rsnd_io_to_mod_dvc(io) ((io)->mod[RSND_MOD_DVC]) |
289 | #define rsnd_io_to_runtime(io) ((io)->substream ? \ | ||
290 | (io)->substream->runtime : NULL) | ||
289 | 291 | ||
290 | struct rsnd_dai { | 292 | struct rsnd_dai { |
291 | char name[RSND_DAI_NAME_SIZE]; | 293 | char name[RSND_DAI_NAME_SIZE]; |
@@ -311,8 +313,6 @@ struct rsnd_dai *rsnd_dai_get(struct rsnd_priv *priv, int id); | |||
311 | int rsnd_dai_is_play(struct rsnd_dai *rdai, struct rsnd_dai_stream *io); | 313 | int rsnd_dai_is_play(struct rsnd_dai *rdai, struct rsnd_dai_stream *io); |
312 | int rsnd_dai_id(struct rsnd_priv *priv, struct rsnd_dai *rdai); | 314 | int rsnd_dai_id(struct rsnd_priv *priv, struct rsnd_dai *rdai); |
313 | #define rsnd_dai_get_platform_info(rdai) ((rdai)->info) | 315 | #define rsnd_dai_get_platform_info(rdai) ((rdai)->info) |
314 | #define rsnd_io_to_runtime(io) ((io)->substream ? \ | ||
315 | (io)->substream->runtime : NULL) | ||
316 | 316 | ||
317 | void rsnd_dai_pointer_update(struct rsnd_dai_stream *io, int cnt); | 317 | void rsnd_dai_pointer_update(struct rsnd_dai_stream *io, int cnt); |
318 | int rsnd_dai_pointer_offset(struct rsnd_dai_stream *io, int additional); | 318 | int rsnd_dai_pointer_offset(struct rsnd_dai_stream *io, int additional); |