Lines Matching refs:adev

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