diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2018-09-18 01:31:09 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-20 10:31:20 -0700 |
commit | 8d6258a4dd267838e2f10643c3d91b79fe75ef6e (patch) | |
tree | 6210a8414e0e4ba18b232b06971147fcddc5abf5 /sound/soc/sh/rcar/ctu.c | |
parent | d2e24d64652bf9d272e5496ae8a562bc64facff3 (diff) | |
download | linux-stable-8d6258a4dd267838e2f10643c3d91b79fe75ef6e.tar.gz linux-stable-8d6258a4dd267838e2f10643c3d91b79fe75ef6e.tar.bz2 linux-stable-8d6258a4dd267838e2f10643c3d91b79fe75ef6e.zip |
ASoC: add for_each_dpcm_be() macro
To be more readable code, this patch adds
new for_each_dpcm_be() macro, and replace existing code to it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh/rcar/ctu.c')
-rw-r--r-- | sound/soc/sh/rcar/ctu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/ctu.c b/sound/soc/sh/rcar/ctu.c index 6a55aa753003..ad702377a6c3 100644 --- a/sound/soc/sh/rcar/ctu.c +++ b/sound/soc/sh/rcar/ctu.c @@ -258,7 +258,7 @@ static int rsnd_ctu_hw_params(struct rsnd_mod *mod, struct snd_pcm_hw_params *be_params; int stream = substream->stream; - list_for_each_entry(dpcm, &fe->dpcm[stream].be_clients, list_be) { + for_each_dpcm_be(fe, stream, dpcm) { be_params = &dpcm->hw_params; if (params_channels(fe_params) != params_channels(be_params)) ctu->channels = params_channels(be_params); |