
dpcm_end_walk_at_be() stops the graph walk when first BE is found for the given FE component. In a component model we may want to connect multiple DAIs from different components. android_vh_snd_soc_card_get_comp_chain can be registered here to allows DAI/component chaining. Later PCM operations can be called for all these listed components for a valid DAPM path. ALSA machine driver can setup component_chaining like below code slice. static void my_board_component_chaining_hook(void *data, bool *ret) { *ret = true; } static int my_board_dev_probe(struct platform_device *pdev) { register_trace_android_vh_snd_soc_card_get_comp_chain( my_board_component_chaining_hook, NULL); return 0; } static int my_board_dev_remove(struct platform_device *pdev) { unregister_trace_android_vh_snd_soc_card_get_comp_chain( my_board_component_chaining_hook, NULL); return 0; } static struct platform_driver my_board_driver = { ... .probe = my_board_dev_probe, .remove = my_board_dev_remove, ... }; Bug: 198732156 Signed-off-by: Bicycle Tsai <bicycle.tsai@mediatek.com> Change-Id: Ife5df291d40af9ec83d57462b6a08aba95d9119d
740 B
740 B