Lines Matching refs:adev
486 struct audio_device *adev = (struct audio_device *)dev; in adev_open_output_stream() local
514 out->dev = adev; in adev_open_output_stream()
516 out->profile = &adev->out_profile; in adev_open_output_stream()
1007 struct audio_device * adev = (struct audio_device *)dev; in adev_set_parameters() local
1027 pthread_mutex_lock(&adev->lock); in adev_set_parameters()
1029 profile_is_cached_for(&adev->out_profile, alsa_card, alsa_device)) { in adev_set_parameters()
1030 profile_decache(&adev->out_profile); in adev_set_parameters()
1033 profile_is_cached_for(&adev->in_profile, alsa_card, alsa_device)) { in adev_set_parameters()
1034 profile_decache(&adev->in_profile); in adev_set_parameters()
1036 pthread_mutex_unlock(&adev->lock); in adev_set_parameters()
1070 struct audio_device * adev = (struct audio_device *)dev; in adev_set_mic_mute() local
1071 pthread_mutex_lock(&adev->lock); in adev_set_mic_mute()
1072 adev->mic_muted = state; in adev_set_mic_mute()
1073 pthread_mutex_unlock(&adev->lock); in adev_set_mic_mute()
1089 struct audio_device *adev = (struct audio_device *)device; in adev_close() local
1100 struct audio_device *adev = calloc(1, sizeof(struct audio_device)); in adev_open() local
1101 if (!adev) in adev_open()
1104 profile_init(&adev->out_profile, PCM_OUT); in adev_open()
1105 profile_init(&adev->in_profile, PCM_IN); in adev_open()
1107 adev->hw_device.common.tag = HARDWARE_DEVICE_TAG; in adev_open()
1108 adev->hw_device.common.version = AUDIO_DEVICE_API_VERSION_2_0; in adev_open()
1109 adev->hw_device.common.module = (struct hw_module_t *)module; in adev_open()
1110 adev->hw_device.common.close = adev_close; in adev_open()
1112 adev->hw_device.init_check = adev_init_check; in adev_open()
1113 adev->hw_device.set_voice_volume = adev_set_voice_volume; in adev_open()
1114 adev->hw_device.set_master_volume = adev_set_master_volume; in adev_open()
1115 adev->hw_device.set_mode = adev_set_mode; in adev_open()
1116 adev->hw_device.set_mic_mute = adev_set_mic_mute; in adev_open()
1117 adev->hw_device.get_mic_mute = adev_get_mic_mute; in adev_open()
1118 adev->hw_device.set_parameters = adev_set_parameters; in adev_open()
1119 adev->hw_device.get_parameters = adev_get_parameters; in adev_open()
1120 adev->hw_device.get_input_buffer_size = adev_get_input_buffer_size; in adev_open()
1121 adev->hw_device.open_output_stream = adev_open_output_stream; in adev_open()
1122 adev->hw_device.close_output_stream = adev_close_output_stream; in adev_open()
1123 adev->hw_device.open_input_stream = adev_open_input_stream; in adev_open()
1124 adev->hw_device.close_input_stream = adev_close_input_stream; in adev_open()
1125 adev->hw_device.dump = adev_dump; in adev_open()
1127 *device = &adev->hw_device.common; in adev_open()