Home | History | Annotate | Download | only in msm8974

Lines Matching full:hw_info

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