mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-25 23:20:59 -05:00
ASoC: rsnd: ignore runtime NULL case at rsnd_runtime_channel_original_with_params()
runtime might be NULL. Let's ignore such case. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Message-Id: <875yz4nbkt.wl-kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
965386c976
commit
6da8f00e7a
@@ -267,8 +267,9 @@ int rsnd_runtime_channel_original_with_params(struct rsnd_dai_stream *io,
|
||||
*/
|
||||
if (params)
|
||||
return params_channels(params);
|
||||
else
|
||||
else if (runtime)
|
||||
return runtime->channels;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int rsnd_runtime_channel_after_ctu_with_params(struct rsnd_dai_stream *io,
|
||||
|
||||
Reference in New Issue
Block a user