media: Check if process_handler is already set
if register_stream_in_device_process_handler is not NULL,
process_handler is already registered.
So just return AUDIO_MANAGER_SUCCESS
@@ -1619,6 +1619,12 @@ audio_manager_result_t register_stream_in_device_process_handler(int card_id, in
card = &g_audio_in_cards[card_id];
config = &card->config[device_id];
+ if (config->process_handler != NULL)
+ {
+ medvdbg("Handler is already registered\n");
+ return AUDIO_MANAGER_SUCCESS;
+ }
+
process_type = get_process_type_audio_param_value(type);
if (((config->device_process_type) & process_type) == 0) {
