Lines Matching refs:hw_info

64 static void  update_hardware_info_8996(struct hardware_info *hw_info)  in update_hardware_info_8996()  argument
70 strlcpy(hw_info->name, tmp_handle->device, sizeof(hw_info->name)); in update_hardware_info_8996()
71 snprintf(hw_info->type, sizeof(hw_info->type), " %s", tmp_handle->form_factor); in update_hardware_info_8996()
72 snprintf(hw_info->dev_extn, sizeof(hw_info->dev_extn), "-%s", tmp_handle->form_factor); in update_hardware_info_8996()
75 hw_info->snd_devices = (snd_device_t *)tasha_fluid_variant_devices; in update_hardware_info_8996()
76 hw_info->num_snd_devices = ARRAY_SIZE(tasha_fluid_variant_devices); in update_hardware_info_8996()
78 hw_info->snd_devices = (snd_device_t *)tasha_liquid_variant_devices; in update_hardware_info_8996()
79 hw_info->num_snd_devices = ARRAY_SIZE(tasha_liquid_variant_devices); in update_hardware_info_8996()
81 hw_info->snd_devices = (snd_device_t *)tasha_db_variant_devices; in update_hardware_info_8996()
82 hw_info->num_snd_devices = ARRAY_SIZE(tasha_db_variant_devices); in update_hardware_info_8996()
87 ALOGV("name %s type %s dev_extn %s", hw_info->name, hw_info->type, hw_info->dev_extn); in update_hardware_info_8996()
93 struct hardware_info *hw_info = NULL; in hw_info_init() local
104 hw_info = malloc(sizeof(struct hardware_info)); in hw_info_init()
105 if (!hw_info) { in hw_info_init()
110 hw_info->snd_devices = NULL; in hw_info_init()
111 hw_info->num_snd_devices = 0; in hw_info_init()
112 strlcpy(hw_info->dev_extn, "", sizeof(hw_info->dev_extn)); in hw_info_init()
113 strlcpy(hw_info->type, "", sizeof(hw_info->type)); in hw_info_init()
114 strlcpy(hw_info->name, "", sizeof(hw_info->name)); in hw_info_init()
115 update_hardware_info_8996(hw_info); in hw_info_init()
119 return hw_info; in hw_info_init()
122 void hw_info_deinit(void *hw_info) in hw_info_deinit() argument
124 free(hw_info); in hw_info_deinit()
127 void hw_info_append_hw_type(void *hw_info, snd_device_t snd_device, in hw_info_append_hw_type() argument
130 struct hardware_info *my_data = (struct hardware_info*) hw_info; in hw_info_append_hw_type()