HAL: Fix for crash due to structure mismatch during st deinit

The current implementation of the clear_devices function involves
the audio_device_info structure. However, when a listnode is added
to st_ses_list, the structure sound_trigger_info is used. This leads
to a structural mismatch when clear_devices is called during sound
trigger deinit with st_ses_list. A new function is introduced to
handle the mismatch of structures.

Change-Id: Ida5d5ab2b4a80da5a637a9301465ec3efc16d6ae
1 file changed