summaryrefslogtreecommitdiffstats
path: root/modules/usbaudio
Commit message (Collapse)AuthorAgeFilesLines
* Renaming generic-sounding filenames to indicate "audio".Paul McLean2014-12-158-14/+14
| | | | Change-Id: Iba6403a3493379c39d22d23b438f028efc2e15b7
* Technical debt paydownPaul McLean2014-12-153-87/+2
| | | | | | | | Removed unused function. Removed unused data table. Cleaned up TAG strings. Change-Id: I4c5dbd72f7363dd0a7a60eb2498e122adda43211
* usbaudio: reset profile on device disconnectHaynes Mathew George2014-12-111-3/+8
| | | | | | | | | | Reset ALSA device profile on disconnect event. Entries like supported sample rates, channel counts, formats will be repopulated on next connect. CRs-Fixed: 765434 Change-Id: I27d3b7fd7ff22646996f58c53de08547b1a1fb6a Bug: 18606219
* 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
* 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-281-2/+5
|/ | | | | | | | Pass device address (and audio source for inputs) to open_output_stream() and open_input_stream() audio HAL functions. Bug: 14815883. Change-Id: I5535677db3f3027917a31a7ed5c0a4c6bc013639
* 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-161-1/+2
| | | | | | | | 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
* Revert "Added enumeration of legitimate sample rates for input and output."Eric Laurent2014-07-151-215/+39
| | | | | | This reverts commit 0a4f9f6662aad6b97a1877030d5efbcfbd94c03c. Change-Id: I6e7125aecf2ff2e89a4c9206dc669d8e792a6300
* 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 "Multi-format USB audio input"Paul McLean2014-07-021-42/+119
|\
| * Multi-format USB audio inputPaul McLean2014-07-071-42/+119
| | | | | | | | Change-Id: I716a9f79dcfea35eacd0aeeda530e3e3c7eb4d32
* | audio: different frame size calculation for input and outputEric Laurent2014-07-031-5/+7
|/ | | | | Bug: 15000850. Change-Id: I7813e99a0b7ce613cc3b7d7c95be0525cb2d6c81
* Multi-format USB Audio suportPaul McLean2014-06-301-152/+336
| | | | Change-Id: I2815e1dc38d39a3d88fb0affd52b1b9f50a73b92
* usb audio: fix capture channel conversionEric Laurent2014-06-271-5/+5
| | | | Change-Id: Ibdff053bd6ecc4bf2bc8bb51384098911f52f6ef
* Implement minimal buffer size for playbackPaul McLean2014-06-201-1/+26
| | | | | | This will enable low-latency playback in mixer/audioflinger. Change-Id: I415aa1b92e3c6f945a48be7b626527f0b02a82d7
* usb audio: fix usb capture configurationEric Laurent2014-06-111-13/+18
| | | | | | | | | | | Capture configuration was using cached_output_hardware_config instead of cached_input_hardware_config. Also enable mono capture by rejecting first attempt to open an input stream in mono with -EINVAL error: AudioFlinger will reopen in stereo and do the channel conversion. Change-Id: Ibdf53be4aa88d47091745bc71daa1dec002535f8
* USB HAL: 64-bit compile issuesMark Salyzyn2014-04-281-29/+30
| | | | | | | | - size_t/ssize_t issues - const warnings - printf format (unsigned/signed and non-integer types) Change-Id: I36d6b0d86e832b46eb0da076e99bf1f25bd697ff
* Added support for 1-channel capture sources (like a microphone)Paul McLean2014-04-281-18/+55
| | | | Change-Id: Ie38b41ed8a63bf1b813379361665c883f08cbaae
* Merge "USB HAL Capture Implementation"Paul McLean2014-04-251-199/+408
|\
| * USB HAL Capture ImplementationPaul McLean2014-04-241-199/+408
| | | | | | | | Change-Id: Ic04f7e1b33b423e5169667700145b9cbdd9704a6
* | am 6322562d: am c070bad4: Merge changes I672d4ee8,I6a2183b5,If0c0135eColin Cross2014-04-211-1/+1
|\ \ | |/ |/| | | | | | | | | * commit '6322562d0f1387c08109f706f381a3818114f91f': usbaudio: allow compiling for 64-bit audio_remote_submix: allow compiling for 64-bit audio: allow compiling for 64-bit
| * am c070bad4: Merge changes I672d4ee8,I6a2183b5,If0c0135eColin Cross2014-04-211-1/+1
| |\ | | | | | | | | | | | | | | | | | | * commit 'c070bad435799b4febdd2acf6be6c191f15f724e': usbaudio: allow compiling for 64-bit audio_remote_submix: allow compiling for 64-bit audio: allow compiling for 64-bit
| | * usbaudio: allow compiling for 64-bitColin Cross2014-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Set -Wno-unused-parameter, which makes the directory warnings-clean on 32-bit and 64-bit. Remove LOCAL_32_BIT_ONLY. Change-Id: I672d4ee8d9e70c75f9376ca60389af08f73166b8
* | | Initial implementation of usb audio I/OPaul McLean2014-03-311-55/+711
|/ / | | | | | | Change-Id: Ib82783f0b25887e2d34a24fde346cee5003d5b89
* | am 5106ad0c: Merge "Audio HALs are 32-bit only"Glenn Kasten2014-03-131-0/+1
|\ \ | |/ | | | | | | * commit '5106ad0c6e664a622d177d997d3ec7147ef1ae8f': Audio HALs are 32-bit only
| * Audio HALs are 32-bit onlyGlenn Kasten2014-03-131-0/+1
| | | | | | | | Change-Id: I97eef87849312610d82bc3f82e168bb40604e646
* | am 1482406b: usbaudio: fix for out->dev->lock remains locked in error caseAmit Shekhar2014-03-061-1/+1
|\ \ | |/ |/| | | | | * commit '1482406b70a254fc85d153a7066d7f90d724d195': usbaudio: fix for out->dev->lock remains locked in error case
| * usbaudio: fix for out->dev->lock remains locked in error caseAmit Shekhar2014-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | out->dev->lock remains locked in error case in out_write() Added pthread_mutex_unlock() in the error case Bug: 12824374 Change-Id: Id467e3122008eb8128b42dfc0e9103600c1eef2d Signed-off-by: Glenn Kasten <gkasten@google.com>
* | hardware/libhardware: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATHColin Cross2014-01-241-1/+1
|/ | | | | | | LOCAL_MODULE_PATH doesn't work for multiarch builds, replace it with LOCAL_MODULE_RELATIVE_PATH. Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e
* audio: new audio devices enumsEric Laurent2012-09-071-7/+1
| | | | | | | | | | 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
* 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>
* usbaudio: add initial usbaudio default HALSimon Wilson2012-04-122-0/+468
Change-Id: I6e93b2512883f3697683a74cadb9a29113966bc0