Lines Matching refs:mixer_card
305 static struct mixer_card *adev_get_mixer_for_card(struct audio_device *adev, int card)
307 struct mixer_card *mixer_card;
311 mixer_card = node_to_item(node, struct mixer_card, adev_list_node);
312 if (mixer_card->card == card)
313 return mixer_card;
318 static struct mixer_card *uc_get_mixer_for_card(struct audio_usecase *usecase, int card)
320 struct mixer_card *mixer_card;
324 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[usecase->id]);
325 if (mixer_card->card == card)
326 return mixer_card;
333 struct mixer_card *mixer_card;
338 mixer_card = node_to_item(node, struct mixer_card, adev_list_node);
340 audio_route_free(mixer_card->audio_route);
341 free(mixer_card);
353 struct mixer_card *mixer_card;
381 mixer_card = calloc(1, sizeof(struct mixer_card));
382 mixer_card->card = card;
383 mixer_card->mixer = mixer;
384 mixer_card->audio_route = audio_route;
385 list_add_tail(&adev->mixer_list, &mixer_card->adev_list_node);
727 struct mixer_card *mixer_card;
751 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[uc_info->id]);
752 audio_route_apply_path(mixer_card->audio_route, snd_device_name);
754 audio_route_update_mixer(mixer_card->audio_route);
765 struct mixer_card *mixer_card;
788 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[uc_info->id]);
789 audio_route_reset_path(mixer_card->audio_route, snd_device_name);
791 audio_route_update_mixer(mixer_card->audio_route);
807 struct mixer_card *mixer_card;
902 mixer_card = node_to_item(node, struct mixer_card, uc_list_node[usecase->id]);
903 audio_route_update_mixer(mixer_card->audio_route);
2275 struct mixer_card *mixer_card;
2285 mixer_card = uc_get_mixer_for_card(usecase, pcm_profile->card);
2286 if (mixer_card == NULL) {
2287 mixer_card = adev_get_mixer_for_card(out->dev, pcm_profile->card);
2288 list_add_tail(&usecase->mixer_list, &mixer_card->uc_list_node[usecase->id]);
2915 mixer = mixer_open(MIXER_CARD);
2918 __func__, MIXER_CARD);