Lines Matching refs:dev
138 static int load_audio_interface(const char *if_name, audio_hw_device_t **dev) in load_audio_interface() argument
149 rc = audio_hw_device_open(mod, dev); in load_audio_interface()
155 if ((*dev)->common.version < AUDIO_DEVICE_API_VERSION_MIN) { in load_audio_interface()
156 ALOGE("%s wrong audio hw device version %04x", __func__, (*dev)->common.version); in load_audio_interface()
163 *dev = NULL; in load_audio_interface()
288 audio_hw_device_t *dev = audioHwDevice->hwDevice(); in findSuitableHwDev_l() local
289 if ((dev->get_supported_devices != NULL) && in findSuitableHwDev_l()
290 (dev->get_supported_devices(dev) & devices) == devices) in findSuitableHwDev_l()
430 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in dump() local
431 dev->dump(dev, fd); in dump()
741 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); in setMasterVolume() local
744 if (dev->canSetMasterVolume()) { in setMasterVolume()
745 dev->hwDevice()->set_master_volume(dev->hwDevice(), value); in setMasterVolume()
778 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in setMode() local
780 ret = dev->set_mode(dev, mode); in setMode()
809 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in setMicMute() local
810 status_t result = dev->set_mic_mute(dev, state); in setMicMute()
828 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in getMicMute() local
830 dev->get_mic_mute(dev, &state); in getMicMute()
853 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); in setMasterMute() local
856 if (dev->canSetMasterMute()) { in setMasterMute()
857 dev->hwDevice()->set_master_mute(dev->hwDevice(), muted); in setMasterMute()
1022 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in setParameters() local
1023 status_t result = dev->set_parameters(dev, keyValuePairs.string()); in setParameters()
1105 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in getParameters() local
1106 s = dev->get_parameters(dev, keys.string()); in getParameters()
1142 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in getInputBufferSize() local
1143 size_t size = dev->get_input_buffer_size(dev, &config); in getInputBufferSize()
1172 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in setVoiceVolume() local
1174 ret = dev->set_voice_volume(dev, value); in setVoiceVolume()
1518 audio_hw_device_t *dev; in loadHwModule_l() local
1520 int rc = load_audio_interface(name, &dev); in loadHwModule_l()
1527 rc = dev->init_check(dev); in loadHwModule_l()
1545 if (NULL != dev->get_master_volume) { in loadHwModule_l()
1547 if (OK == dev->get_master_volume(dev, &mv)) { in loadHwModule_l()
1553 if (NULL != dev->get_master_mute) { in loadHwModule_l()
1555 if (OK == dev->get_master_mute(dev, &mm)) { in loadHwModule_l()
1562 if ((NULL != dev->set_master_volume) && in loadHwModule_l()
1563 (OK == dev->set_master_volume(dev, mMasterVolume))) { in loadHwModule_l()
1569 if ((NULL != dev->set_master_mute) && in loadHwModule_l()
1570 (OK == dev->set_master_mute(dev, mMasterMute))) { in loadHwModule_l()
1579 mAudioHwDevs.add(handle, new AudioHwDevice(handle, name, dev, flags)); in loadHwModule_l()
1582 name, dev->common.module->name, dev->common.module->id, handle); in loadHwModule_l()
1632 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in getAudioHwSyncForSession() local
1633 if (dev == NULL) { in getAudioHwSyncForSession()
1636 char *reply = dev->get_parameters(dev, AUDIO_PARAMETER_HW_AV_SYNC); in getAudioHwSyncForSession()