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:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user