Lines Matching refs:card_info
251 static void fill_usb_card_info(struct cras_alsa_card_info *card_info, in fill_usb_card_info() argument
264 card_info->usb_vendor_id = strtol(sysattr, NULL, 16); in fill_usb_card_info()
267 card_info->usb_product_id = strtol(sysattr, NULL, 16); in fill_usb_card_info()
270 strncpy(card_info->usb_serial_number, sysattr, in fill_usb_card_info()
272 card_info->usb_serial_number[USB_SERIAL_NUMBER_BUFFER_SIZE - 1] in fill_usb_card_info()
276 card_info->usb_desc_checksum = calculate_desc_checksum(parent_dev); in fill_usb_card_info()
280 card_info->usb_vendor_id, card_info->usb_product_id, in fill_usb_card_info()
281 card_info->usb_serial_number, card_info->usb_desc_checksum); in fill_usb_card_info()
289 struct cras_alsa_card_info card_info; in device_add_alsa() local
290 memset(&card_info, 0, sizeof(card_info)); in device_add_alsa()
293 card_info.card_index = card; in device_add_alsa()
295 card_info.card_type = ALSA_CARD_TYPE_INTERNAL; in device_add_alsa()
297 card_info.card_type = ALSA_CARD_TYPE_USB; in device_add_alsa()
298 fill_usb_card_info(&card_info, dev); in device_add_alsa()
301 cras_system_add_alsa_card(&card_info); in device_add_alsa()