hal: Fix device list initializations and comparisons
Update missing device list initializations.
Correct device list comparisons and assignments.
Change-Id: I19e2712972a86d7a9b1af1bd725156d2c36c3dd2
diff --git a/hal/audio_extn/hfp.c b/hal/audio_extn/hfp.c
index 2b63277..374e9dc 100644
--- a/hal/audio_extn/hfp.c
+++ b/hal/audio_extn/hfp.c
@@ -309,6 +309,7 @@
uc_info->id = hfpmod.ucid;
uc_info->type = PCM_HFP_CALL;
uc_info->stream.out = adev->primary_output;
+ list_init(&uc_info->device_list);
assign_devices(&uc_info->device_list, &adev->primary_output->device_list);
uc_info->in_snd_device = SND_DEVICE_NONE;
uc_info->out_snd_device = SND_DEVICE_NONE;