Home
last modified time | relevance | path

Searched refs:mHwDevice (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/services/soundtrigger/
DSoundTriggerHalLegacy.cpp29 : mModuleName(moduleName), mHwDevice(NULL) in SoundTriggerHalLegacy()
48 rc = sound_trigger_hw_device_open(mod, &mHwDevice); in onFirstRef()
52 mHwDevice = NULL; in onFirstRef()
55 if (mHwDevice->common.version < SOUND_TRIGGER_DEVICE_API_VERSION_1_0 || in onFirstRef()
56 mHwDevice->common.version > SOUND_TRIGGER_DEVICE_API_VERSION_CURRENT) { in onFirstRef()
57 ALOGE("wrong sound trigger hw device version %04x", mHwDevice->common.version); in onFirstRef()
64 if (mHwDevice != NULL) { in ~SoundTriggerHalLegacy()
65 sound_trigger_hw_device_close(mHwDevice); in ~SoundTriggerHalLegacy()
71 if (mHwDevice == NULL) { in getProperties()
74 return mHwDevice->get_properties(mHwDevice, properties); in getProperties()
[all …]
DSoundTriggerHalLegacy.h80 struct sound_trigger_hw_device* mHwDevice; variable
/frameworks/av/services/radio/
DRadioHalLegacy.cpp39 : RadioInterface(), mClassId(classId), mHwDevice(NULL) in RadioHalLegacy()
49 mHwDevice = NULL; in onFirstRef()
66 rc = radio_hw_device_open(mod, &mHwDevice); in onFirstRef()
70 mHwDevice = NULL; in onFirstRef()
73 if (mHwDevice->common.version != RADIO_DEVICE_API_VERSION_CURRENT) { in onFirstRef()
74 ALOGE("wrong radio hw device version %04x", mHwDevice->common.version); in onFirstRef()
75 radio_hw_device_close(mHwDevice); in onFirstRef()
76 mHwDevice = NULL; in onFirstRef()
82 if (mHwDevice != NULL) { in ~RadioHalLegacy()
83 radio_hw_device_close(mHwDevice); in ~RadioHalLegacy()
[all …]
DRadioService.cpp374 : mHwDevice(hwDevice), mProperties(properties), mMute(true) in Module()
379 mHwDevice.clear(); in ~Module()
398 if (mHwDevice == 0) { in addClient()
480 mHwDevice->closeTuner(halTuner); in addClient()
486 ret = mHwDevice->openTuner(&halConfig, audio, in addClient()
527 if (mHwDevice != 0) { in removeClient()
528 mHwDevice->closeTuner(halTuner); in removeClient()
541 if (mHwDevice == 0) { in removeClient()
593 ret = mHwDevice->openTuner(&halConfig, youngestClient->audio(), in removeClient()
DRadioService.h89 sp<RadioInterface> hwDevice() const { return mHwDevice; } in hwDevice()
98 sp<RadioInterface> mHwDevice; // HAL hardware device variable
DRadioHalLegacy.h77 struct radio_hw_device *mHwDevice; variable
/frameworks/av/services/audioflinger/
DAudioHwDevice.h46 , mHwDevice(hwDevice) in AudioHwDevice()
60 sp<DeviceHalInterface> hwDevice() const { return mHwDevice; } in hwDevice()
82 sp<DeviceHalInterface> mHwDevice; variable
DAudioHwDevice.cpp98 return mHwDevice->supportsAudioPatches(&result) == OK ? result : false; in supportsAudioPatches()