mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
ASoC: qcom: q6apm: return error code to consumers on failures
Return errors from audioreach_set_media_format() to ensure callers are notified when media format setup fails. This could hide failures while programming media format parameters for individual modules and allow graph setup to continue with incomplete configuration. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20260528185806.6316-3-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
525fa5f30c
commit
3075ae5abb
|
|
@ -194,10 +194,7 @@ int q6apm_graph_media_format_shmem(struct q6apm_graph *graph,
|
|||
if (!module)
|
||||
return -ENODEV;
|
||||
|
||||
audioreach_set_media_format(graph, module, cfg);
|
||||
|
||||
return 0;
|
||||
|
||||
return audioreach_set_media_format(graph, module, cfg);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(q6apm_graph_media_format_shmem);
|
||||
|
||||
|
|
@ -399,6 +396,7 @@ int q6apm_graph_media_format_pcm(struct q6apm_graph *graph, struct audioreach_mo
|
|||
struct audioreach_sub_graph *sgs;
|
||||
struct audioreach_container *container;
|
||||
struct audioreach_module *module;
|
||||
int ret;
|
||||
|
||||
list_for_each_entry(sgs, &info->sg_list, node) {
|
||||
list_for_each_entry(container, &sgs->container_list, node) {
|
||||
|
|
@ -407,7 +405,9 @@ int q6apm_graph_media_format_pcm(struct q6apm_graph *graph, struct audioreach_mo
|
|||
(module->module_id == MODULE_ID_RD_SHARED_MEM_EP))
|
||||
continue;
|
||||
|
||||
audioreach_set_media_format(graph, module, cfg);
|
||||
ret = audioreach_set_media_format(graph, module, cfg);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user