summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* am 32fb8b2d: Merge "Fix C++11 build."Dan Albert2014-11-281-5/+5
|\ | | | | | | | | * commit '32fb8b2d9f8399a745a26dddc031cc16867ada2d': Fix C++11 build.
| * Fix C++11 build.Dan Albert2014-11-271-5/+5
| | | | | | | | | | | | Not sure how this slipped past my checkbuild... Change-Id: Id238887a2a47ced387a6128a772fad3e468096be
* | am b73bc860: Support multiple pipes for reroutingJean-Michel Trivi2014-11-191-140/+295
|\ \ | | | | | | | | | | | | * commit 'b73bc86089b8a65da88776bafcf48529431150b8': Support multiple pipes for rerouting
| * | Support multiple pipes for reroutingJean-Michel Trivi2014-11-171-140/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The implementation for "remote submix" supported only one pipe to capture the output of a mix. This CL adds support for multiple pipes to support capturing multiple audio routes. The structure for the r_submix audio device holds an array of route configurations (route_config), each referencing the input and output of the pipe dedicated to this route. Each route is associated to a unique address. Standby status is maintained per stream. Bug 16009464 Change-Id: Ie164c4ad2a6d8138f825484e7faf29a974ccf82e
* | | am 40d48e17: Merge "Stop using stlport."Dan Albert2014-11-171-5/+0
|\ \ \ | |/ / |/| / | |/ | | * commit '40d48e177f243c6093a45301db122a0475cc1124': Stop using stlport.
| * Stop using stlport.Dan Albert2014-11-171-5/+0
| | | | | | | | | | Bug: 15193147 Change-Id: I5d53338f239ba18a2b007b345ba050d1560220b4
* | am 5ff76cb5: am 793a854e: Fix remote submix crash on null sinkJean-Michel Trivi2014-10-161-12/+30
|\ \ | | | | | | | | | | | | * commit '5ff76cb59a892a856fa2476bd5bf7c41537b78e1': Fix remote submix crash on null sink
| * \ am 793a854e: Fix remote submix crash on null sinkJean-Michel Trivi2014-10-151-12/+30
| |\ \ | | |/ | | | | | | | | | * commit '793a854e4547fa43632907a987684cadc93eb5e2': Fix remote submix crash on null sink
| | * Fix remote submix crash on null sinkJean-Michel Trivi2014-10-151-12/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "remote submix" HAL uses a MonoPipe instance to "pipe" audio from the sink of this virtual device HAL to its source. The life-cycle of this pipe is: - creation when either the input or output stream is open - destruction when both input and output are closed. Changes are: Fix test for pipe destruction: destroy pipe when both input and output streams are NULL. Count how many read errors went into the logs and cap them so as not to spam the logs when the pipe is not properly set up. Less 'I' logs, 'D' logs instead. When opening input stream, check for non-null sink before checking if it's shutdown. Bug 16653334 Bug 17111907 Change-Id: I634b4192b00f9b74a5109f42242423e9c8cb4c7c
* | | am e914d696: Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliantNick Vaccaro2014-10-111-9/+49
|\ \ \ | |/ / | | | | | | | | | * commit 'e914d696a95a799bbcca221238a1874f995871ca': Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliant
| * | Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliantNick Vaccaro2014-10-101-9/+49
| |/ | | | | | | | | | | | | | | Ignore calls to any HALs that are not 1_0 or 1_3 compliant. Fix an unused parameter compiler warning. Bug: 17645248 Change-Id: Ia50f7512dfe35f37973440bba84e1b1b177a7bd3
* | Support MONO and STERO USB inputs. Allow "dynamic" flag in audio_policy.conf.Paul McLean2014-09-172-46/+34
|/ | | | | | Bug 17526569 Change-Id: I64b00fd338eb937303b41608728a18341ee78820
* usb audio: implement microphone mute.Eric Laurent2014-09-141-0/+10
| | | | | Bug: 17321604. Change-Id: I8e3daf2636dfd5f85d990c0093c52c908064afac
* Merge "Fix problem with dropouts with multiple USB audio streams." into lmp-devPaul McLean2014-08-284-23/+58
|\
| * Fix problem with dropouts with multiple USB audio streams.Paul McLean2014-08-284-24/+58
| | | | | | | | | | | | Bug 17136569 Change-Id: I94bdbe037533a3fd77f249fdd42f4d828d3bf87f
* | Fixing non-playback on USB devices with support for MONO playback.Paul McLean2014-08-282-6/+14
|/ | | | | | Bug 17136854 Change-Id: Ia0136fa8f9b4789d538b2dccb3f6071ae5062010
* Merge "Quick hack fix for USB accessory audio support" into lmp-devGlenn Kasten2014-08-211-0/+7
|\
| * Quick hack fix for USB accessory audio supportMike Lockwood2014-08-211-0/+7
| | | | | | | | | | | | | | | | | | | | tinyalsa fails to retrieve the correct value for the period count from the f_audio_source driver and tries to use zero instead. This wasn't a problem before because the usb audio HAL used hard coded values that were compatible with the driver. Bug: 16799652 Change-Id: I6f5b907a0699c58b071e9f419ed8e053a7d9dc77
* | Fix problem with reloading config of new capture devicesPaul McLean2014-08-131-2/+1
|/ | | | | | | with same card/device numbers. Bug: 17012657 Change-Id: I7cb50aedc538d8c648e7f66c8e153cf47ce12577
* Fix problem with reloading config of new devices with same card/device numbers.Paul McLean2014-08-122-3/+2
| | | | | | Bug 16981885 Change-Id: I65c6c418ee0d0f42c87379b614f64302d27f8e77
* usb audio: fix set_parameters read/write concurrencyEric Laurent2014-08-061-30/+52
| | | | | | | | | | | | | Do not read the ALSA PCM device configuration when playback or capture is active. Do not force ALSA profile update if card and device passed to out/in_set_parameters() do not change. Hold the main HAL lock when closing or opening the ALSA PCM device. Bug: 15520724. Change-Id: I2b6087ed46ce7433de0b6dd8b24ec10de2e55d21
* sound_trigger HAL updateEric Laurent2014-07-311-2/+2
| | | | | | Bug: 12378680. Change-Id: I556cd316cbff3b8d88331319ca0ad65a09aae0f9
* Merge "Pass multichannel capability to AudioPolicyManager" into lmp-devAndy Hung2014-07-291-40/+35
|\
| * Pass multichannel capability to AudioPolicyManagerAndy Hung2014-07-291-40/+35
| | | | | | | | Change-Id: Ifcfe5e9e0c01ccb0e9af25e0c718ea5f04181ae4
* | Merge "Add multichannel USB handshaking with AudioFlinger" into lmp-devAndy Hung2014-07-281-66/+45
|\ \ | |/
| * Add multichannel USB handshaking with AudioFlingerAndy Hung2014-07-281-66/+45
| | | | | | | | | | | | | | | | The number of channels can be "forced" using k_force_channels. If the channel count proposed by AudioFlinger is not permitted by the device, it is emulated. Change-Id: Ib20e680c8f95adb84616a4fe52977f659cf4d6ca
* | audio HAL: add parameters to open streamEric Laurent2014-07-283-6/+15
|/ | | | | | | | Pass device address (and audio source for inputs) to open_output_stream() and open_input_stream() audio HAL functions. Bug: 14815883. Change-Id: I5535677db3f3027917a31a7ed5c0a4c6bc013639
* Delete mcu HAL.Jeff Brown2014-07-263-83/+1
| | | | | | | | This HAL was intended to support doze mode but it is currently unused and it's best for it to stay that way. Bug: 16516536 Change-Id: I4f442e27d68f18ff322afd4c1debd2f392687e80
* Refactor USB HAL (audio_hw.c)Paul McLean2014-07-2510-780/+1462
| | | | | | | | | | | | | | Refactoring alsa device attributes to alsa_device_profile.h/.c Refactoring alsa device state to alsa_device_proxy.h/.c Refactoring format functions into format.h/.c Refactoring logging functions into logging.h/.c Sundry (and extensive) code cleanup Reworked locking on out_write() and in_read() to allow simultaneous input/output Bug: 15986827, 15856702, 12833166 Change-Id: I82c8d0ef252b2f95ee23f263dc175f4c883bfd64
* Merge "Move channel expansion/contraction functions to ↵Paul McLean2014-07-172-259/+5
|\ | | | | | | audio_utils/channels.h/.c" into lmp-dev
| * Move channel expansion/contraction functions to audio_utils/channels.h/.cPaul McLean2014-07-162-259/+5
| | | | | | | | Change-Id: I967a062f6c1cb5ae6acb6e92f4f3df00a0336733
* | Add audio_input_flags_t to HAL open_input_streamGlenn Kasten2014-07-163-3/+6
| | | | | | | | Change-Id: I3519bfa45809e064d19473ebe6489c5249d306a8
* | Marking invalid PCM formats with PCM_FORMAT_INVALID, shrinking format table.Paul McLean2014-07-161-51/+52
|/ | | | Change-Id: I57da4ed85fe128e88e63c03be4fe836f8de76ac8
* Support for 32-bit data conversions.Paul McLean2014-07-151-39/+215
| | | | Change-Id: I18d955d9b2df99744ae6211bdb924c679ea7a617
* Merge "Revert "Added enumeration of legitimate sample rates for input and ↵Eric Laurent2014-07-151-215/+39
|\ | | | | | | output."" into lmp-dev
| * Revert "Added enumeration of legitimate sample rates for input and output."Eric Laurent2014-07-151-215/+39
| | | | | | | | | | | | This reverts commit 0a4f9f6662aad6b97a1877030d5efbcfbd94c03c. Change-Id: I6e7125aecf2ff2e89a4c9206dc669d8e792a6300
* | Merge "Added enumeration of legitimate sample rates for input and output." ↵Paul McLean2014-07-151-134/+150
|\ \ | |/ | | | | into lmp-dev
| * Added enumeration of legitimate sample rates for input and output.Paul McLean2014-07-151-39/+215
| | | | | | | | Change-Id: Ib53ec5254bd47761dbce84646a841eb9b32fd62a
| * Added enumeration of legitimate sample rates for input and output.Paul McLean2014-07-141-135/+154
| | | | | | | | | | | | | | | | | | | | | | | | Added device_profile to enable refactoring of query methods. Refactored query methods (in_get_parameters/out_getParameters) in terms of device_get_parameters. Freeing ALSA parameter structures (pcm_params_free) Eliminated unnecessay input & output card/device (to support other changes). Change-Id: I771cf4681a628f87ca6d6ee3f85f76ae4d7f1504
* | Merge "Fix warnings" into lmp-devGlenn Kasten2014-07-151-4/+4
|\ \
| * | Fix warningsGlenn Kasten2014-07-151-4/+4
| |/ | | | | | | Change-Id: I1ba5c871a1cb44df8c383f595cbe6d75fef02aa3
* | Support for 32-bit data conversions.Paul McLean2014-07-151-38/+217
|/ | | | | | | Change-Id: I18d955d9b2df99744ae6211bdb924c679ea7a617 Conflicts: modules/usbaudio/audio_hw.c
* sound trigger: update HALEric Laurent2014-07-071-13/+8
| | | | | | | | | | | | | | New start_recognition() prototype with recognition configuration structure specifying: - List of keyphrases to listen to. - Recognition mode for each keyphrase - List of users and min confidence levels for each users New recognition event format with confidence level and user ID for each user. Bug: 12378680. Change-Id: I95e998c735321ceb5c27f477d894b574a6eca860
* Merge "Multi-format USB audio input"Paul McLean2014-07-021-42/+119
|\
| * Multi-format USB audio inputPaul McLean2014-07-071-42/+119
| | | | | | | | Change-Id: I716a9f79dcfea35eacd0aeeda530e3e3c7eb4d32
* | Merge "audio: different frame size calculation for input and output"Eric Laurent2014-07-063-20/+28
|\ \
| * | audio: different frame size calculation for input and outputEric Laurent2014-07-033-20/+28
| | | | | | | | | | | | | | | Bug: 15000850. Change-Id: I7813e99a0b7ce613cc3b7d7c95be0525cb2d6c81
* | | am 611a3b71: am 3e618a6a: Merge "gralloc: let target configure page flipping ↵David Turner2014-07-042-1/+16
|\ \ \ | |/ / |/| | | | | | | | | | | | | | ioctl" * commit '611a3b71431293a123a11af99ff731ab30067632': gralloc: let target configure page flipping ioctl
| * | am 3e618a6a: Merge "gralloc: let target configure page flipping ioctl"David Turner2014-07-042-1/+16
| |\ \ | | | | | | | | | | | | | | | | * commit '3e618a6aa10c783d1536f20edfc3347939cfa18e': gralloc: let target configure page flipping ioctl
| | * \ Merge "gralloc: let target configure page flipping ioctl"David Turner2014-07-042-1/+16
| | |\ \