Lines Matching refs:dev

140 static int load_audio_interface(const char *if_name, audio_hw_device_t **dev)  in load_audio_interface()  argument
151 rc = audio_hw_device_open(mod, dev); in load_audio_interface()
157 if ((*dev)->common.version < AUDIO_DEVICE_API_VERSION_MIN) { in load_audio_interface()
158 ALOGE("%s wrong audio hw device version %04x", __func__, (*dev)->common.version); in load_audio_interface()
165 *dev = NULL; in load_audio_interface()
291 audio_hw_device_t *dev = audioHwDevice->hwDevice(); in findSuitableHwDev_l() local
292 if ((dev->get_supported_devices != NULL) && in findSuitableHwDev_l()
293 (dev->get_supported_devices(dev) & devices) == devices) in findSuitableHwDev_l()
436 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in dump() local
437 dev->dump(dev, fd); in dump()
747 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); in setMasterVolume() local
750 if (dev->canSetMasterVolume()) { in setMasterVolume()
751 dev->hwDevice()->set_master_volume(dev->hwDevice(), value); in setMasterVolume()
788 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in setMode() local
790 ret = dev->set_mode(dev, mode); in setMode()
819 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in setMicMute() local
820 status_t result = dev->set_mic_mute(dev, state); in setMicMute()
840 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in getMicMute() local
841 status_t result = dev->get_mic_mute(dev, &state); in getMicMute()
869 AudioHwDevice *dev = mAudioHwDevs.valueAt(i); in setMasterMute() local
872 if (dev->canSetMasterMute()) { in setMasterMute()
873 dev->hwDevice()->set_master_mute(dev->hwDevice(), muted); in setMasterMute()
1050 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in setParameters() local
1051 status_t result = dev->set_parameters(dev, keyValuePairs.string()); in setParameters()
1131 audio_hw_device_t *dev = mAudioHwDevs.valueAt(i)->hwDevice(); in getParameters() local
1132 s = dev->get_parameters(dev, keys.string()); in getParameters()
1171 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in getInputBufferSize() local
1177 frames = dev->get_input_buffer_size(dev, &config); in getInputBufferSize()
1225 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in setVoiceVolume() local
1227 ret = dev->set_voice_volume(dev, value); in setVoiceVolume()
1568 audio_hw_device_t *dev; in loadHwModule_l() local
1570 int rc = load_audio_interface(name, &dev); in loadHwModule_l()
1577 rc = dev->init_check(dev); in loadHwModule_l()
1595 if (NULL != dev->get_master_volume) { in loadHwModule_l()
1597 if (OK == dev->get_master_volume(dev, &mv)) { in loadHwModule_l()
1603 if (NULL != dev->get_master_mute) { in loadHwModule_l()
1605 if (OK == dev->get_master_mute(dev, &mm)) { in loadHwModule_l()
1612 if ((NULL != dev->set_master_volume) && in loadHwModule_l()
1613 (OK == dev->set_master_volume(dev, mMasterVolume))) { in loadHwModule_l()
1619 if ((NULL != dev->set_master_mute) && in loadHwModule_l()
1620 (OK == dev->set_master_mute(dev, mMasterMute))) { in loadHwModule_l()
1629 mAudioHwDevs.add(handle, new AudioHwDevice(handle, name, dev, flags)); in loadHwModule_l()
1632 name, dev->common.module->name, dev->common.module->id, handle); in loadHwModule_l()
1682 audio_hw_device_t *dev = mPrimaryHardwareDev->hwDevice(); in getAudioHwSyncForSession() local
1683 if (dev == NULL) { in getAudioHwSyncForSession()
1686 char *reply = dev->get_parameters(dev, AUDIO_PARAMETER_HW_AV_SYNC); in getAudioHwSyncForSession()