Searched refs:new_dev (Results 1 – 3 of 3) sorted by relevance
88 struct iodev_list_node *new_dev; in create_iodev_for_device() local106 new_dev = calloc(1, sizeof(*new_dev)); in create_iodev_for_device()107 if (new_dev == NULL) in create_iodev_for_device()110 new_dev->direction = direction; in create_iodev_for_device()111 new_dev->iodev = alsa_iodev_create(info->card_index, in create_iodev_for_device()126 if (new_dev->iodev == NULL) { in create_iodev_for_device()129 free(new_dev); in create_iodev_for_device()138 DL_APPEND(alsa_card->iodevs, new_dev); in create_iodev_for_device()139 return new_dev->iodev; in create_iodev_for_device()
1106 struct cras_iodev *new_dev; in cras_iodev_list_add_active_node() local1107 new_dev = find_dev(dev_index_of(node_id)); in cras_iodev_list_add_active_node()1108 if (!new_dev || new_dev->direction != dir) in cras_iodev_list_add_active_node()1115 if (cras_iodev_list_dev_is_enabled(new_dev)) { in cras_iodev_list_add_active_node()1116 if (node_index_of(node_id) == new_dev->active_node->idx) in cras_iodev_list_add_active_node()1119 cras_iodev_list_disable_dev(new_dev, true); in cras_iodev_list_add_active_node()1122 new_dev->update_active_node(new_dev, node_index_of(node_id), 1); in cras_iodev_list_add_active_node()1123 cras_iodev_list_enable_dev(new_dev); in cras_iodev_list_add_active_node()1424 struct cras_iodev *new_dev = NULL; in cras_iodev_list_select_node() local1430 new_dev = find_dev(dev_index_of(node_id)); in cras_iodev_list_select_node()[all …]
23 new_dev = client.run('ls /dev/hidraw*',25 cr50_dev = set(new_dev) - set(old_dev)