diff options
Diffstat (limited to 'sound_trigger_hw_iaxxx.c')
-rw-r--r-- | sound_trigger_hw_iaxxx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sound_trigger_hw_iaxxx.c b/sound_trigger_hw_iaxxx.c index 014c96a..fbbfa79 100644 --- a/sound_trigger_hw_iaxxx.c +++ b/sound_trigger_hw_iaxxx.c @@ -115,7 +115,7 @@ static struct sound_trigger_properties_extended_1_3 hw_properties = { false, // trigger_in_event POWER_CONSUMPTION // power_consumption_mw }, - "9b55e25e-8ea3-4f73-bce9-b37860d57f5a", //supported arch + "", //supported arch 0, // audio capability }; @@ -2252,7 +2252,9 @@ static void *callback_thread_loop(void *context) if (fw_status == IAXXX_FW_ACTIVE) { stdev->is_st_hal_ready = false; // query version during reset progress. - stdev->hotword_version = get_hotword_version(stdev->odsp_hdl); + get_hotword_info(stdev->odsp_hdl, + &stdev->hotword_version, + &hw_properties.supported_model_arch); // reset the firmware and wait for firmware download complete err = reset_fw(stdev->odsp_hdl); if (err == -1) { @@ -2264,7 +2266,9 @@ static void *callback_thread_loop(void *context) // Firmware has crashed wait till it recovers stdev->is_st_hal_ready = false; } else if (fw_status == IAXXX_FW_IDLE) { - stdev->hotword_version = get_hotword_version(stdev->odsp_hdl); + err = get_hotword_info(stdev->odsp_hdl, + &stdev->hotword_version, + &hw_properties.supported_model_arch); if (stdev->hotword_version == HOTWORD_DEFAULT_VER) { /* This is unlikely use-case, the codec is abnormal at the beginning * reset_fw the firmware to recovery. |