Lines Matching refs:adev
1009 struct generic_audio_device *adev = in->dev;
1015 adev_get_mic_mute(&adev->device, &mic_mute);
1137 struct generic_audio_device *adev = (struct generic_audio_device *)dev;
1173 out->dev = adev;
1275 struct generic_audio_device *adev = (struct generic_audio_device *)dev;
1276 pthread_mutex_lock(&adev->lock);
1277 adev->mic_mute = state;
1278 pthread_mutex_unlock(&adev->lock);
1284 struct generic_audio_device *adev = (struct generic_audio_device *)dev;
1285 pthread_mutex_lock(&adev->lock);
1286 *state = adev->mic_mute;
1287 pthread_mutex_unlock(&adev->lock);
1331 struct generic_audio_device *adev = (struct generic_audio_device *)dev;
1365 in->dev = adev;
1406 struct generic_audio_device *adev = (struct generic_audio_device *)dev;
1408 if (!adev)
1420 if (adev->mixer) {
1421 mixer_close(adev->mixer);
1423 free(adev);
1434 static struct generic_audio_device *adev;
1446 *device = &adev->device.common;
1448 ALOGV("%s: returning existing instance of adev", __func__);
1452 adev = calloc(1, sizeof(struct generic_audio_device));
1454 pthread_mutex_init(&adev->lock, (const pthread_mutexattr_t *) NULL);
1456 adev->device.common.tag = HARDWARE_DEVICE_TAG;
1457 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
1458 adev->device.common.module = (struct hw_module_t *) module;
1459 adev->device.common.close = adev_close;
1461 adev->device.init_check = adev_init_check; // no op
1462 adev->device.set_voice_volume = adev_set_voice_volume; // no op
1463 adev->device.set_master_volume = adev_set_master_volume; // no op
1464 adev->device.get_master_volume = adev_get_master_volume; // no op
1465 adev->device.set_master_mute = adev_set_master_mute; // no op
1466 adev->device.get_master_mute = adev_get_master_mute; // no op
1467 adev->device.set_mode = adev_set_mode; // no op
1468 adev->device.set_mic_mute = adev_set_mic_mute;
1469 adev->device.get_mic_mute = adev_get_mic_mute;
1470 adev->device.set_parameters = adev_set_parameters; // no op
1471 adev->device.get_parameters = adev_get_parameters; // no op
1472 adev->device.get_input_buffer_size = adev_get_input_buffer_size;
1473 adev->device.open_output_stream = adev_open_output_stream;
1474 adev->device.close_output_stream = adev_close_output_stream;
1475 adev->device.open_input_stream = adev_open_input_stream;
1476 adev->device.close_input_stream = adev_close_input_stream;
1477 adev->device.dump = adev_dump;
1479 *device = &adev->device.common;
1481 adev->mixer = mixer_open(PCM_CARD);
1486 for (int i = 0; i < (int)mixer_get_num_ctls(adev->mixer); i++) {
1487 ctl = mixer_get_ctl(adev->mixer, i);