Home | History | Annotate | Download | only in audio_extn

Lines Matching refs:adev

35 static int32_t start_hfp(struct audio_device *adev,
38 static int32_t stop_hfp(struct audio_device *adev);
70 static int32_t hfp_set_volume(struct audio_device *adev, float value)
95 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
110 static int32_t start_hfp(struct audio_device *adev,
122 uc_info->stream.out = adev->primary_output;
123 uc_info->devices = adev->primary_output->devices;
127 list_add_tail(&adev->usecase_list, &uc_info->list);
129 select_devices(adev, hfpmod.ucid);
147 __func__, adev->snd_card, pcm_dev_rx_id);
148 hfpmod.hfp_sco_rx = pcm_open(adev->snd_card,
157 __func__, adev->snd_card, pcm_dev_tx_id);
158 hfpmod.hfp_pcm_rx = pcm_open(adev->snd_card,
166 hfpmod.hfp_sco_tx = pcm_open(adev->snd_card,
175 __func__, adev->snd_card, pcm_dev_tx_id);
176 hfpmod.hfp_pcm_tx = pcm_open(adev->snd_card,
190 hfp_set_volume(adev, hfpmod.hfp_volume);
196 stop_hfp(adev);
201 static int32_t stop_hfp(struct audio_device *adev)
227 uc_info = get_usecase_from_list(adev, hfpmod.ucid);
235 disable_audio_route(adev, uc_info);
238 disable_snd_device(adev, uc_info->out_snd_device);
239 disable_snd_device(adev, uc_info->in_snd_device);
248 bool audio_extn_hfp_is_active(struct audio_device *adev)
251 hfp_usecase = get_usecase_from_list(adev, hfpmod.ucid);
264 void audio_extn_hfp_set_parameters(struct audio_device *adev, struct str_parms *parms)
276 ret = start_hfp(adev,parms);
278 stop_hfp(adev);
302 select_devices(adev, hfpmod.ucid);
316 hfp_set_volume(adev, vol);