summaryrefslogtreecommitdiffstats
path: root/include/hardware/audio.h
Commit message (Collapse)AuthorAgeFilesLines
* audio: Add audio parameter key for device connectHaynes Mathew George2015-01-311-0/+1
| | | | | | | | | Add audio parameter key for device connect. Bug: 17785277 Bug: 19214836 Change-Id: Icd81702634e0bd83645d89c2d65e2b303fc11f8c (cherry picked from commit 55c07c3418a3bc19a72c4935d8ed57a57074c49a)
* audio: new parameter key for HW A/V sync ID allocationEric Laurent2014-10-201-3/+5
| | | | | | | | | | | The HW A/V sync ID is retrieved from the HAL by calling global get_parameters() with key AUDIO_PARAMETER_HW_AV_SYNC. After the output stream is opened, the HW A/V sync ID is communicated by stream set_parameters() with key AUDIO_PARAMETER_STREAM_HW_AV_SYNC. Bug: 17112525. Change-Id: Id1e3a3aa1e88d15461a609b381ca8c1902735a29
* Fix problem with dropouts with multiple USB audio streams.Paul McLean2014-08-281-0/+2
| | | | | | Bug 17136569 Change-Id: I94bdbe037533a3fd77f249fdd42f4d828d3bf87f
* audio HAL: add parameter to get audio HW sync sourceEric Laurent2014-08-051-0/+6
| | | | | Bug: 16132368. Change-Id: Id76ce254b73ea11316cc684399de8d9c520c9b9b
* Add parameter key and values for hearing aid compatibility modeEric Laurent2014-07-301-0/+6
| | | | Change-Id: Ibdbe102bd49dbf228af5d4327b1868849c9d754e
* audio HAL: add parameters to open streamEric Laurent2014-07-281-21/+19
| | | | | | | | Pass device address (and audio source for inputs) to open_output_stream() and open_input_stream() audio HAL functions. Bug: 14815883. Change-Id: I5535677db3f3027917a31a7ed5c0a4c6bc013639
* Add audio_input_flags_t to HAL open_input_streamGlenn Kasten2014-07-161-1/+2
| | | | Change-Id: I3519bfa45809e064d19473ebe6489c5249d306a8
* audio: different frame size calculation for input and outputEric Laurent2014-07-031-0/+34
| | | | | Bug: 15000850. Change-Id: I7813e99a0b7ce613cc3b7d7c95be0525cb2d6c81
* audio: add AUDIO_PARAMETER_A2DP_SOURCE_ADDRESS parameter nameMike Lockwood2014-05-281-0/+3
| | | | Change-Id: I6eedc25ed16be82a7a875d13774f31a47f0f9443
* audio: audio HAL extension for routing and volume controlEric Laurent2014-05-221-1/+34
| | | | | | | | | | | | | | Added audio HAL functions to control audio routing and audio gain. Audio HALs above version 3.0 must implement these functions. These functions will be used by the framework instead of out_set_parameters("routing"=XXX) for device selection on an output or input stream. They will also allow direct connection of input devices to output devices as well as gain control on devices or streams. The gain or routing capabilities are exposed in audio_polciy.conf file. Change-Id: Ic293fd41d492e38e86bdc35e3ad93aa5deb0b48f
* audio HAL: add minimum supported versionEric Laurent2014-05-221-0/+2
| | | | | | | Add a definition for the minimum audio HAL version supported by the audio framework. Change-Id: Id7df440cc9fcc23b27b61c81bacb569599a20c13
* Described restrictions for common HAL object methods.Stewart Miles2014-05-121-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inheritance of HAL object is performed by composing a child structure of a single parent structure located at offset 0 followed by new data members and function pointers in the child structure. For example, struct child { struct parent common; int a_data_member; void (*a_method)(struct child *c, int v); }; HAL code assumes this layout when accessing child structures given a pointer to a parent structure such that users write code like the following... void child_method(struct *parent, int v) { struct child * c = (struct child*)parent; // do stuff with c } Code above will break if a member is added before "common" in "struct child". This change adds comments that describe the restriction on the location of parent HAL objects within a derived HAL object. HAL objects that already have comments that describe the required location of parent objects are not modified. Change-Id: Ibe4300275286ef275b2097534c84f1029d761d87
* Add symbol AUDIO_PARAMETER_KEY_BT_SCO_WBGlenn Kasten2014-04-291-0/+3
| | | | Change-Id: Ib2cfef74a57467cb01b5e0c44af335f53791e348
* Clarify return values of get_presentation_positionGlenn Kasten2013-09-101-1/+9
| | | | Change-Id: I495d7abd7e366849308c66bcaee99554dcd244aa
* get_presentation_positionGlenn Kasten2013-08-291-0/+12
| | | | Change-Id: Iedc4df9018321d7273eaa862e913ad6d9a844618
* Add defines and support for audio offloadRichard Fitzgerald2013-06-271-11/+104
| | | | | | | | | | | | | | | | - Add non-blocking write support, set_callback() function - Add pause, resume, flush, drain functions to audio output stream - Add audio parameter defines for compressed audio metadata - Extend audio_config_t to include an audio_offload_info_t field - Add is_offload_supported() function to test whether there is hardware decode support for a given compressed audio format - Change audio_stream_frame_size() to handle offloaded streams. For an offloaded stream the size is always counted in bytes (frame size == 1) and the number of channels is irrelevant. Change-Id: I5b82c3fdcfa1456502d0042888f166bf02d8d54b Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com> Signed-off-by: Eric Laurent <elaurent@google.com>
* audio: new audio devices enumsEric Laurent2012-09-071-1/+8
| | | | | | | | | | 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
* Add audio module for remote submixJean-Michel Trivi2012-09-061-0/+1
| | | | | | | | | | | | | 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-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | (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>
* struct effect_descriptor_s const correctnessGlenn Kasten2012-07-241-1/+1
| | | | | | Also struct audio_stream in audio_stream_frame_size Change-Id: Ie0de708e38a1850c186a8b4eb5f491adc44b3275
* Add screen state parameterGlenn Kasten2012-06-081-0/+3
| | | | Change-Id: Iead23e0d91dac34d40e9e55f525916b73c31bcb5
* audio HAL: add definitions for capabilities queryEric Laurent2012-06-041-0/+10
| | | | | | | Added definitions for querying supported channel masks, sampling rates and format with out_get_parameters(). Change-Id: Icb28fcef504c7e0a0b2daeb1bc7e704d20d3b738
* audio: updated audio HAL device APIEric Laurent2012-04-171-13/+38
| | | | | | | | 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
* Merge "audio: added definitions for audio HAL modules"Eric Laurent2012-04-031-0/+11
|\
| * audio: added definitions for audio HAL modulesEric Laurent2012-04-031-0/+11
| | | | | | | | Change-Id: I16f8b42ab5de503d38086413b83e934ac9aa1f24
* | Update commentsGlenn Kasten2012-04-011-17/+35
|/ | | | Change-Id: I123d9baeceda13608cc01eda6a19e13822258dc0
* audio HAL : added string for A2DP addressEric Laurent2012-03-071-0/+3
| | | | | | | Added a definition for A2DP sink address parameter. It was previously defined at several places. Change-Id: I757208e99db395f3d88c17e0de5ae303c71a85ec
* Modifications to audio_hal for Android@Home.Mike J. Chen2012-02-101-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge "Use audio_format_t consistently"Glenn Kasten2012-01-201-5/+5
|\
| * Use audio_format_t consistentlyGlenn Kasten2012-01-121-5/+5
| | | | | | | | | | | | Was sometimes int or uint32_t Change-Id: Ib3d82f5aefeda371c0439e43e72737a54882f519
* | Merge "set_mode and set_phone_state now take audio_mode_t"Glenn Kasten2012-01-171-3/+2
|\ \
| * | set_mode and set_phone_state now take audio_mode_tGlenn Kasten2012-01-121-3/+2
| |/ | | | | | | Change-Id: I12a3a5ad6c3cadc6b9de8281f78edfef53908e2d
* | Use size_t for frame sizeGlenn Kasten2012-01-131-2/+2
|/ | | | Change-Id: Ib96808544ee6fd76d0c8ff42e27b9c05518e8415
* Add comment about actual type of set_modeGlenn Kasten2012-01-051-0/+1
| | | | Change-Id: Ie50a66894831763b6e9eb6aa490441d7759cbeef
* audio HAL: add support for TTY mode selectionEric Laurent2011-08-071-1/+21
| | | | Change-Id: I680e008a091e31e6c0b11adb26f6b232829baacb
* audio HAL: add defines for BT NREC parameterEric Laurent2011-08-021-0/+5
| | | | | | | Added definitions of keys and values used to enable or disable AEC and NS via set_parameters according to BT headset capabilities. Change-Id: Id3fba06edfe77e2832b8256c0c4c46eeef17b816
* Audio HAL: added interface for audio preprocessingEric Laurent2011-07-081-0/+5
| | | | Change-Id: I032f6dd8f9ad11283a3f0a6721018dabfd12236d
* hardware: drop the _hal suffixes from audio.h and audio_policy.hDima Zavin2011-06-131-0/+313
| | | | | Change-Id: Ib9bfc4049cf350f72af3ee577ce4756ac4118cfc Signed-off-by: Dima Zavin <dima@android.com>
* audio: move audio.h to system/core/include/system/audio.hDima Zavin2011-05-121-393/+0
| | | | | Change-Id: I523dfb361b1b3862cf8bc41c1691c607b2c815b0 Signed-off-by: Dima Zavin <dima@android.com>
* libhardware: add audio defines and HAL headersDima Zavin2011-04-271-0/+393
Change-Id: Iae523059834c252f0d39f7efc6e15832e6273101 Signed-off-by: Dima Zavin <dima@android.com>