summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* gralloc: Correct stride for maguroreplicant-4.2-0004replicant-4.2-0003replicant-4.2-0002replicant-4.2-0001replicant-4.2Paul Kocialkowski2013-12-312-0/+13
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* gralloc: RGB565 framebuffer formatPaul Kocialkowski2013-10-291-1/+36
| | | | | Change-Id: I17dcc28b8bb78a74f227d5e1edcf82e6f69ba242 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Add camera parameters for htc evo 3D. (2/2)Kevin Bruckert2013-04-282-0/+9
| | | | | | Use BOARD_HTC_3D_SUPPORT to enable. Change-Id: I23b668a7a5d88770cbc290940444f55f157630d3
* Merge branch 'jb-mr1-release' of ↵Steve Kondik2012-11-1813-59/+1049
|\ | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/hardware/libhardware into HEAD Conflicts: include/hardware/fb.h include/hardware/hwcomposer.h modules/audio/audio_hw.c Change-Id: Ib37d49cb600bf0cd062847f9c0eb3841bae13f74
| * Shutdown audio pipe when closing input streamJean-Michel Trivi2012-10-301-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Writing to the audio pipe for the remote submix is blocking, unless the audio output pipe is in shutdown mode. The playback thread could stay blocked on the write if the input stream has already been closed. The change consists in shutting down the pipe also when the input stream gets closed. When the pipe is in this state, simulate timing in the write operation so we don't drain the output faster than realtime. Bug 7424646 Change-Id: I5feb3be642b0ee7eef10dee0141308684ee9c811
| * Merge "NFC HAL: Use a separate callback for data." into jb-mr1-devMartijn Coenen2012-10-011-1/+1
| |\
| | * NFC HAL: Use a separate callback for data.Martijn Coenen2012-09-301-1/+1
| | | | | | | | | | | | | | | Bug: 7258325 Change-Id: I02d8ea1bdcb8ea6a9430e3dc286f5c2647277f72
| * | bug 7253033 Add "exiting" state to remote audio submix moduleJean-Michel Trivi2012-09-302-2/+30
| |/ | | | | | | | | | | | | | | Support receiving a parameter that sets the remote audio submix module in a state where the audio pipe will unblock any current write operation and not block anymore. Change-Id: Ia3119cd79972afff0de24187dae627855a468ebf
| * Remote submix: fix sink/source reference count handlingJean-Michel Trivi2012-09-171-5/+5
| | | | | | | | | | | | | | | | | | The reference count on the strong pointers to the audio sink and source should be done on the object retrieved from the device structure, not by accessing the corresponding fields, as they can be cleared while reading or writing audio data. Change-Id: I446a2c7bdcb0758b4013b0ad75450a15203fb9da
| * Turn off logs in remote submix audio moduleJean-Michel Trivi2012-09-171-1/+1
| | | | | | | | Change-Id: I61cd15534b1cd764b06f615569cdf02edbba909c
| * Remote audio submix: blocking writes and sleeping reads.Jean-Michel Trivi2012-09-171-80/+144
| | | | | | | | | | | | | | | | | | | | | | | | Change how the remote audio submix is handling piping audio through the pipe: - use a MonoPipe as audio sink for blocking writes, - use a MonoPipeReader as audio source for non blocking reads, and keep track of when recording started to align the time at which the in_read() call should return with the projected time of the recording duration. Change-Id: I8b0f8c56a0486806101e272dfbf9c6d2d1c11112
| * Initial NFC HAL for NCI controllers.Martijn Coenen2012-09-145-2/+146
| | | | | | | | | | Bug: 7123942 Change-Id: Ic64aa6477f2eb65b489b3be5d49ad21ccce63e2d
| * Remote submix audio module: sleep less, log errorsJean-Michel Trivi2012-09-131-13/+34
| | | | | | | | | | | | | | | | Neither write nor read are blocking, but write simulates timing by checking the clock between two writes and computing how long the next sleep should last. Change-Id: I495ae6d44b0cf75a24fe4b70662cfac679049c67
| * update audio remote submix API revisionEric Laurent2012-09-101-12/+1
| | | | | | | | | | | | | | Update remote submix audio HAL API revision to 2.0 (new audio device enums). Change-Id: I61d5faf498144002929e570ee50375b059fb17c5
| * Merge "audio: new audio devices enums" into jb-mr1-devEric Laurent2012-09-072-32/+2
| |\
| | * audio: new audio devices enumsEric Laurent2012-09-072-32/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed audio device API version to 2.0 because of new enums for audio input and output devices. Removed implementations of get_supported_devices() in stub and usb audio modules. Change-Id: I09345d38929d931e5015e36d18259f5a5f950298
| * | Audio remote submix in hardware modulesJean-Michel Trivi2012-09-071-1/+1
| |/ | | | | | | Change-Id: I878c6f36685eff48a3cd51acceec812b61994945
| * Add audio module for remote submixJean-Michel Trivi2012-09-062-0/+753
| | | | | | | | | | | | | | | | | | | | | | | | | | New definitions of audio devices for remote submix: one representing a sink for writing the audio buffers that won't be played directly locally, another representing the audio source that can be read from to obtain the audio mix. New audio hardware module encapsulating the submix loop functionality. Create a Pipe to serve as non-blocking audio ring buffer between the output device (the sink) and the input device (the source). Change-Id: I527f4721a69ced0430a99ebba3b4db7d419f2bb2
| * Extend the audio HAL interface to support get/set master muteJohn Grossman2012-08-071-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit d245968b7ef0be5c776c9aefff3eca9e293d1b35) > Extend the audio HAL interface to support get/set master mute > > Hand merge from ics-aah > > > Extend the audio HAL interface to support get/set master mute: DO NOT MERGE > > > > Extend the audio HAL interface to allow HALs to optionally support HW > > level master mute. This follows the same pattern as master volume and > > is part of the fix for bug 6828363. Because of the divergences > > between ICS and master, this change will need to be merged by hand. > > > > Signed-off-by: John Grossman <johngro@google.com> > > Change-Id: Ica6f5e37e13d13dde60463966f41f271ffa104fd > > Change-Id: I5e7aea6d7da0012dcc077281f9077fc04cfb9889 > Signed-off-by: John Grossman <johngro@google.com> Change-Id: I2011cc5bc41ca7081ce255a4bfba65f36f899bc4 Signed-off-by: John Grossman <johngro@google.com>
| * Add multi-display and flip fence to HWCJesse Hall2012-08-071-8/+8
| | | | | | | | Change-Id: I3b0446050648e2b386ffb32976c9943b6fd9793d
| * Revert "Add multi-display and flip fence to HWC"Jesse Hall2012-07-311-8/+8
| | | | | | | | | | | | This reverts commit 1d51b2b9fc713da6de18117bc19508ecdfde4f23 Change-Id: I1ae46d8cae1cb3064800cd24df56347b05eb6059
| * Add multi-display and flip fence to HWCJesse Hall2012-07-301-8/+8
| | | | | | | | Change-Id: I31b4fc293220bc51169971df93347dd35fdc30ef
| * struct effect_descriptor_s const correctnessGlenn Kasten2012-07-241-2/+2
| | | | | | | | | | | | Also struct audio_stream in audio_stream_frame_size Change-Id: Ie0de708e38a1850c186a8b4eb5f491adc44b3275
| * Use audio_channel_mask_t consistentlyGlenn Kasten2012-06-252-4/+4
| | | | | | | | Change-Id: Ib832c0b707b1e0b82adf4ab3d4d18a2dc459d240
| * Introduce HWC_DEVICE_API_VERSION_1_0Jesse Hall2012-06-181-6/+6
| | | | | | | | | | | | | | The new version adds an acquire and release fence to each layer, providing explicit producer->hwc and hwc->producer synchronization. Change-Id: Ibd6e3c7b3515c012c767246e6d6514274fdef01d
| * am 8405fe5a: am 1fbbb08d: Merge "remove seemed useless gralloc_open() call ↵Jean-Baptiste Queru2012-06-121-5/+0
| |\ | | | | | | | | | | | | | | | | | | in fb_device_open()" * commit '8405fe5a5203af18f39fd47b35606f0b32cd956c': remove seemed useless gralloc_open() call in fb_device_open()
| | * am 1fbbb08d: Merge "remove seemed useless gralloc_open() call in ↵Jean-Baptiste Queru2012-06-121-5/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | fb_device_open()" * commit '1fbbb08ddda4321ccdb05345658044c1f0235997': remove seemed useless gralloc_open() call in fb_device_open()
| | | * remove seemed useless gralloc_open() call in fb_device_open()suyi Yuan2012-03-151-5/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I520e460bd558934c71042b5a4fdb03b3935ad720 Signed-off-by: suyi Yuan <yuan.suyi@gmail.com>
| * | | Merge "Add RAW_SENSOR to gralloc sample"Eino-Ville Talvala2012-05-141-0/+1
| |\ \ \ | | |/ / | |/| |
| | * | Add RAW_SENSOR to gralloc sampleEino-Ville Talvala2012-05-071-0/+1
| | | | | | | | | | | | | | | | Change-Id: I0621bd70896385c3d522d283a1be714f5f29df3b
* | | | Add support for ICS audio blobsRicardo Cerqueira2012-07-202-1/+15
|/ / / | | | | | | | | | Change-Id: I516dda5fc81bd10922c13cc735509a6803eddaaf
* | | remove triggering suspend from power halColin Cross2012-05-031-26/+0
|/ / | | | | | | | | | | | | PowerManagerService will trigger suspend after calling into the power hal, remove it from here. Change-Id: I98cc096413bd5c9e39a28b2bfc376d3d30544193
* | add version number to power HALMathias Agopian2012-04-261-2/+2
| | | | | | | | Change-Id: I6acf4523b5878565035ea6c85bddd58f9b20ef1b
* | hardware: libhardware: Power HAL add power hints -- DO NOT MERGETodd Poynor2012-04-251-0/+8
| | | | | | | | | | Change-Id: I8ab0376e4f5d8ef09d5b1062cbfbb30c30c5bb96 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* | Update USB audio HAL to use APIMike Lockwood2012-04-241-17/+18
| | | | | | | | | | | | | | | | Also don't clear card and device when out_set_parameters is called to set other parameters. Change-Id: I4feda9f6a2e76cb45bbc8a8f8256bb1760302707 Signed-off-by: Mike Lockwood <lockwood@google.com>
* | rename audio policy output flags.Eric Laurent2012-04-181-1/+1
| | | | | | | | Change-Id: I965fa9bcba45f223f2f2cbc4adccfb5491414c8b
* | audio: updated audio HAL device APIEric Laurent2012-04-171-11/+12
| | | | | | | | | | | | | | | | Modified open output and input stream functions to add new parameters needed by audio HAL. Also grouped parameters in a config structure for clarity. Change-Id: I60832d8e5b5e4a48f209a6d83f5ca9c044be61f1
* | usbaudio: add initial usbaudio default HALSimon Wilson2012-04-123-1/+469
| | | | | | | | Change-Id: I6e93b2512883f3697683a74cadb9a29113966bc0
* | am 6d2bc4fc: am 4cbd62c2: add i2c_device_address member to nfc_pn544_device_tRakesh Goyal2012-03-091-0/+1
|\ \ | | | | | | | | | | | | * commit '6d2bc4fc11ca04326eaf982f97d13d6410a73af2': add i2c_device_address member to nfc_pn544_device_t
| * | add i2c_device_address member to nfc_pn544_device_tRakesh Goyal2012-03-091-0/+1
| |/ | | | | | | | | | | | | Add I2C slave address. Multiple I2C addresses are possible for PN544 module. Configure address according to board design. Change-Id: I847e8f3db631f5039cf15143a9982f4b9b209f27
* | audio policy: use audio_devices_t when appropriateEric Laurent2012-03-081-1/+1
| | | | | | | | Change-Id: Iee57cf5c3bdfefd981e1ed5958df10171f8716e6
* | Power HAL: Add initial header file and default/legacy implementationTodd Poynor2012-02-173-1/+106
| | | | | | | | | | Change-Id: I43a515a8ffe72a9c4e7d5f7470a5e73e76d5e1b1 Signed-off-by: Todd Poynor <toddpoynor@google.com>
* | Modifications to audio_hal for Android@Home.Mike J. Chen2012-02-102-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a squashed merge of the following changes: Commit f560da61a5e128ca9f82f7fe939afcf1f09188c7 Author: John Grossman <johngro@google.com> Date: Thu Aug 11 15:34:55 2011 -0700 Fill out a missing entry in the audio HAL function table. The entry for get_initial_master_volume was missing from the non-legacy audio HAL and needs to be filled out. Also fix up the order of the comments describing the get_initial_master_volume method. Change-Id: I87d5415ef92611497a6dab4c657fc00367c4d80b commit cea82facb63fd237a4ea6fb770605fcb500850ff Author: Jason Simmons <jsimmons@google.com> Date: Thu Jun 16 14:24:24 2011 -0700 Define a replacement for getSampleDelta that returns a DMA start time and count of samples queued Change-Id: I2d13f57b5a8c5b97fb3aa0a90834ce91c56864ef commit 60a9acd7eee470a8d870218e8be618bfa3be15a5 Author: Mike J. Chen <mjchen@google.com> Date: Tue Jun 7 09:13:23 2011 -0700 Add Android@Home extensions to new Audio HAL interface. Change-Id: I3ea4676d4b7d2afd78a5a7a7003ad5c437276d05 Signed-off-by: Mike J. Chen <mjchen@google.com> Change-Id: I09f3756d12a1ce4f9af39610ed857890742a72df Signed-off-by: Mike J. Chen <mjchen@google.com> Signed-off-by: John Grossman <johngro@google.com> Conflicts: include/hardware/audio.h modules/audio/audio_hw.c
* | Add a HAL representing a system-wide local time counter.Mike J. Chen2012-02-103-1/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a squashed merge of the following changes: commit 9def1ae65f6b4d6a8fdec147fdcd34f22f08174a Author: John Grossman <johngro@google.com> Date: Fri Aug 12 11:47:20 2011 -0700 Change the signature of set_local_slew. Changed the definition of the slew function in the local time HAL to take an int16 instead of an int32 and to use the full range of the int instead of attempting to imply any particular PPM range. Change-Id: Ia67f50e77f1fe674a63ec69460e830d1191ef5a0 commit afab51327453d1bfc7423f8ce7a28933d8fc49b2 Author: John Grossman <johngro@google.com> Date: Mon Jun 27 17:29:07 2011 -0700 Remove "primary" from the local_time HAL. Interface instances are a pattern which should only be used by audio. Remove its use from the local_time HAL. Change-Id: If4c458cf16a02d9dc63c04185111ae793fc57801 commit 1c26e59a66e75ccb31027f42183aaa32bde6e456 Author: John Grossman <johngro@google.com> Date: Fri Jun 17 14:19:24 2011 -0700 Refactor the local/common clock services. This change is one of a set of 5 changes made to different repositories. Look for this comment in all of them. Refactor the local/common clock services to match android best practice. Notable changes include + The kernel no longer knows anything about common time. Common time has been moved completely up into user land. This has an impact on the accuracy of the timesync debugging code, and the netfilter assisted approach to network based timesync is going to have to be modified. + The timesync driver used by A@H is now just local time driver. + The kernel no longer needs access to the linear transform math code, and it has been removed. + A new HAL has been introduced to expose the concept of local time to the system. + A non-slewable stub implementation of the local time HAL based on CLOCK_MONOTONIC has been added. + The old library has been eliminated. Its functionality has been distributed among the common time binder service, the local time hal and the linear transform utility code. + All clients of the old library have been changed to be clients of the binder service, the hal and the utility code. + The reset_tt utilities have been removed, they no longer have a purpose in the system. Change-Id: I39843b94f9b6d13f63b22145a2edcafe4ca87349 Change-Id: Ib264c992d564b99ef7c7847a788e4fa7f5e101b4 Signed-off-by: Mike J. Chen <mjchen@google.com> Signed-off-by: John Grossman <johngro@google.com> Conflicts: modules/Android.mk
* | Use audio_source_t consistentlyGlenn Kasten2012-01-261-1/+1
| | | | | | | | Change-Id: Ie25ddeb091646b7e24149b3b23a18ce0807e1891
* | Merge "Use audio_format_t consistently"Glenn Kasten2012-01-202-9/+9
|\ \
| * | Use audio_format_t consistentlyGlenn Kasten2012-01-122-9/+9
| | | | | | | | | | | | | | | | | | Was sometimes int or uint32_t Change-Id: Ib3d82f5aefeda371c0439e43e72737a54882f519
* | | Audio policy HAL set_ringer_mode is deprecatedGlenn Kasten2012-01-181-0/+1
| | | | | | | | | | | | Change-Id: If0f82d5c1cb9a0faf70f5a8434f68cdc39784ee6
* | | Merge "audio policy: manage stream volume per device"Eric Laurent2012-01-171-0/+18
|\ \ \
| * | | audio policy: manage stream volume per deviceEric Laurent2012-01-171-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve volume management by keeping track of volume for each type of device independently. Added functions at the audio policy interface to set and get stream volume for a particular device. Change-Id: Ic8899e82e48193cb65b3673e9d20383efed943b5