Home | History | Annotate | Download | only in audio_extn

Lines Matching refs:adev

64     struct audio_device *adev;
133 static int adev_i2s_clock_operation(int enable, struct audio_device *adev, char *paths)
139 ret = audio_route_apply_and_update_path(adev->audio_route, paths);
145 ret = audio_route_reset_and_update_path(adev->audio_route, paths);
154 static int tfa_98xx_set_audio_mode(int enable, struct audio_device *adev, exTfa98xx_audio_mode_t audio_mode)
173 adev_i2s_clock_operation(enable, adev, paths);
183 audio_mode_t mode = data->adev->mode;
191 list_for_each(node, &data->adev->usecase_list) {
194 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
200 if ((mode == AUDIO_MODE_IN_CALL) || audio_extn_hfp_is_active(data->adev)) {
201 if (audio_extn_hfp_is_active(data->adev)) {
202 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
208 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
215 if (data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
230 static int tfa_98xx_set_func_mode(int enable, struct audio_device *adev, exTfa98xx_func_mode_t func_mode)
249 adev_i2s_clock_operation(enable, adev, paths);
286 ret = tfa_98xx_set_audio_mode(I2S_CLOCK_DISABLE, data->adev, current_audio_mode);
341 if (data->adev->enable_hfp)
370 ret = tfa_98xx_set_audio_mode(I2S_CLOCK_ENABLE, data->adev, new_audio_mode);
412 ret = tfa_98xx_set_func_mode(I2S_CLOCK_ENABLE, data->adev, new_func_mode);
428 ret = tfa_98xx_set_func_mode(I2S_CLOCK_ENABLE, data->adev, Func_Mode_BT);
474 if (data->adev->enable_hfp) {
498 int audio_extn_tfa_98xx_init(struct audio_device *adev)
506 ret = tfa_98xx_set_audio_mode(I2S_CLOCK_ENABLE, adev, Audio_Mode_Music_Normal);
517 ret = tfa_98xx_set_audio_mode(I2S_CLOCK_DISABLE, adev, Audio_Mode_Music_Normal);
523 data->adev = adev;