Lines Matching refs:mixer_card
273 struct mixer_card *adev_get_mixer_for_card(struct audio_device *adev, int card)
275 struct mixer_card *mixer_card;
279 mixer_card = node_to_item(node, struct mixer_card, adev_list_node);
280 if (mixer_card->card == card)
281 return mixer_card;
286 struct mixer_card *uc_get_mixer_for_card(struct audio_usecase *usecase, int card)
288 struct mixer_card *mixer_card;
292 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[usecase->id]);
293 if (mixer_card->card == card)
294 return mixer_card;
301 struct mixer_card *mixer_card;
306 mixer_card = node_to_item(node, struct mixer_card, adev_list_node);
308 audio_route_free(mixer_card->audio_route);
309 free(mixer_card);
321 struct mixer_card *mixer_card;
349 mixer_card = calloc(1, sizeof(struct mixer_card));
350 mixer_card->card = card;
351 mixer_card->mixer = mixer;
352 mixer_card->audio_route = audio_route;
353 list_add_tail(&adev->mixer_list, &mixer_card->adev_list_node);
690 struct mixer_card *mixer_card;
708 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[uc_info->id]);
709 audio_route_apply_path(mixer_card->audio_route, snd_device_name);
711 audio_route_update_mixer(mixer_card->audio_route);
722 struct mixer_card *mixer_card;
738 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[uc_info->id]);
739 audio_route_reset_path(mixer_card->audio_route, snd_device_name);
741 audio_route_update_mixer(mixer_card->audio_route);
757 struct mixer_card *mixer_card;
850 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[usecase->id]);
851 audio_route_update_mixer(mixer_card->audio_route);
1495 struct mixer_card *mixer_card;
1506 mixer_card = uc_get_mixer_for_card(usecase, pcm_profile->card);
1507 if (mixer_card == NULL) {
1508 mixer_card = adev_get_mixer_for_card(out->dev, pcm_profile->card);
1509 list_add_tail(&usecase->mixer_list, &mixer_card->uc_list_node[usecase->id]);