summaryrefslogtreecommitdiffstats
path: root/hardware.c
Commit message (Collapse)AuthorAgeFilesLines
* libhardware: Load the MPQ HAL for the MPQ8064 targetAviral Gupta2012-09-041-0/+14
| | | | | | Include the broadcast stream structure. Change-Id: I00996dfb74bd468f8bda8573e95217ec8ed4ad46
* hardware: Add an ifdef to disable id match checkXpLoDWilD2012-07-161-0/+2
| | | | | | | | When wrapping HAL modules (for example camera wrapping vendor-camera), this match check prevents vendor-camera to be loaded because its original name is camera and not vendor-camera. Change-Id: If79a941b54d83610638041440db907ae593b2e91
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-3/+3
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I0cbe865d464a37365fa3be84948b07e5a0d181d0
* Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block2011-10-251-1/+1
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I8772e564a55981aad2a9cf7cb9245367fcf57fe8
* Fix hw module lookup order.Eric Laurent2011-05-271-2/+2
| | | | | | | | Make sure hw_get_module_by_class() first scans /vendor/lib/hw and then /system/lib/hw so that vendor specific modules override default ones. Change-Id: Iaec61c3b4bb6fde202acb4412aaec3b318cc1cbd
* libhardware: add concept of module classesDima Zavin2011-04-181-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Needed for things like audio and audio effects. Provides a new interface to loading modules named 'hw_get_module_by_class'. This takes two parameters: 'class_id' and 'instance' which are used to construct the filename for the module to be loaded. If instance is NULL, then this function acts identically to hw_get_module where 'class_id' == 'id' (and in fact the latter implemented exactly this way). For audio, this new mechanism allows us to load multiple audio interfaces by doing: hw_get_module_by_class("audio", "primary", &module); hw_get_module_by_class("audio", "a2dp", &module); hw_get_module_by_class("audio", "usb", &module); ... In the future we will likely want to add the ability to load a set of module instances based on a config file, which will have a standard syntax and the mechanism will be provided by libhardware. Change-Id: I9976cc6d59a85a414b18e7b398a36edfbce4abd8 Signed-off-by: Dima Zavin <dima@android.com>
* add /vendor supportBrian Swetland2010-09-191-8/+10
| | | | | | Search /vendor/lib/hw/... as well as /system/lib/hw/... for hal modules. Change-Id: I1aecafcc884e11b2f17edf28e8c8ca2926184807
* Fix a bug that prevents default hw modules to be loaded properly.David 'Digit' Turner2009-09-251-1/+1
| | | | | | | | The problem was a simple typo, which prevented modules like /system/lib/hw/lib<module>.default.so from being loaded even if they were found on the system. This is required to fix the generic build when run in the emulator.
* fix a bug I introduced recently where the "default" HAL module would not be ↵Mathias Agopian2009-09-241-6/+11
| | | | loaded.
* don't loas inapropriate HAL for a device.Mathias Agopian2009-09-211-23/+25
| | | | | | | Once we have determined which HAL to load and checked that the library exists, we should not try to load another (more generic) HAL if a failure occurs, because this could result in different process using different HALs for the same component. Instead we just return an error.
* generic gralloc HAL doesn't need to support partial updates using msm7k ↵Mathias Agopian2009-07-151-8/+3
| | | | specific ioctl.
* pmem allocator in gralloc. enabled for all surfaces. currently it uses a lot ↵Mathias Agopian2009-06-161-1/+1
| | | | more address space than needed.
* Integrate from //sandbox/mathias/donut/...@145728Mathias Agopian2009-04-101-3/+5
| | | | SurfaceFlinger rework for new EGL driver model support.
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-131-33/+23
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+167
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-167/+0
|
* auto import from //branches/cupcake/...@132569The Android Open Source Project2009-02-201-2/+2
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-6/+7
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+166