ANDROID: ASoC: soc-pcm: Get all BEs along DAPM path
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
This commit is contained in:

committed by
Bicycle Tsai

parent
ea440234c7
commit
8d68a30fe1
@@ -374,6 +374,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_usb_dev_resume);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_ipv6_gen_linklocal_addr);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_sound_usb_support_cpu_suspend);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_snd_compr_use_pause_in_drain);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_snd_soc_card_get_comp_chain);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_show_max_freq);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_tcp_sendmsg_locked);
|
||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_rvh_tcp_recvmsg);
|
||||
|
Reference in New Issue
Block a user