summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* hdmi_audio: remove obsolete channel configurationHEADmasterd-lollipop-releaseVishal Mahaveer2014-11-121-1/+0
| | | | | | | AUDIO_CHANNEL_OUT_SURROUND is no longer supported. Change-Id: Idc2959dfa515c76eb60833c27a078eb5effbdae3 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* hdmi_audio: add parameters to open stream functionsVishal Mahaveer2014-11-121-2/+6
| | | | | | | Add new parameters needed in lollipop for open stream functions Change-Id: I5cab12855d6b98b91193a4c2182b93b225f403e6 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* audio: add parameters to open stream functionsVishal Mahaveer2014-11-051-2/+6
| | | | | | | Add new parameters needed in lollipop for open stream functions Change-Id: I6b721024289a14116b2cda8ed9024777e95ba655 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* audio: utils: Print ALSA PCM error messagesMisael Lopez Cruz2014-09-181-2/+2
| | | | | | | | | | tinyalsa's pcm_read() and pcm_write() return -1 when an error has occurred, which doesn't give enough information about the actual problem. Use pcm_get_error() to give a human readable reason of the error. Change-Id: I6046402859e52e3b5ab10d407ddfe80658098427 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: tiaudioutils: Use multizone specific defineMisael Lopez Cruz2014-08-251-2/+1
| | | | | | | | | | | Use the OMAP_MULTIZONE_AUDIO define to check for multizone specific devices. The USB headset input is no longer supported as an OMAP_ENHANCEMENT so it's removed. Change-Id: Ie7b277a8cacf90aa6ce2a11073e0be093d237578 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* cleanup: remove legacy sourcesVishal Mahaveer2014-07-0776-5184/+0
| | | | | | | Remove unused source code Change-Id: Ia5e53fb56b52c0dc0c9a00c7938cd909dbdb3b69 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* audio: update openmax include pathd-kitkat-mr1-releaseVishal Mahaveer2014-04-081-1/+1
| | | | | | | | Since we don't plan to use enhanced domx, point directly to frameworks/native for openmax include Change-Id: I927795ccdc9abde3a45e155930cc4cfe67fc5c16 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* audio: policy: Add support for auxiliary inputMisael Lopez Cruz2014-01-301-0/+5
| | | | | | | | | | Add support for auxiliary input source which is mapped to the AUDIO_DEVICE_IN_ANLG_DOCK_HEADSET device. This device must be supported by the AudioHAL and declared as supported and present in the audio_policy.conf. Change-Id: Id2bdc9c9d4c7b6176bf4d1f17e8418a0e31bbdad Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Fix SimpleWriter's returned framesMisael Lopez Cruz2014-01-301-2/+4
| | | | | | | | | | SimpleWriter must return the number of SimpleOutStream's frames written. The returned number of frames was that of the underlying PcmOutPort which differs from the SimpleOutStream's when resampling is used (due to the resampling ratio). Change-Id: Iecbb13f4a8f9be0fc84ae60b408437b946de6d6e Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Add flush() and size() methods to MonoPipeMisael Lopez Cruz2014-01-302-0/+49
| | | | | | | | | | | | | Add two new methods to the MonoPipe class: - flush(): Flushes the audio frames available in the pipe. It should be called when te pipe is already in shutdown state to ensure that no more new data is pushed. - size(): Queries the pipe size. Change-Id: Ia8c2ac287a475bd3e72f48368d297fc544b19eed Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Add pipe shutdown stateMisael Lopez Cruz2014-01-222-1/+35
| | | | | | | | | | write() call to the mono pipe will block until the pipe has enough space for the requested data. The shutdown state helps to break this blocking behavior when the pipe might not have available space soon (e.g. if the reader is no longer active). Change-Id: I4f63fbe7e3ec8d20862240faa70368f239dfc251 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Add PCM port nameMisael Lopez Cruz2014-01-228-83/+189
| | | | | | | | Add PCM port name methods in order to provide more context in info/debug messages and for the PCM reader/writer thread names. Change-Id: I3609a8c9308b562468655d4f693ab4baccd4873f Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Add PCM start and stopMisael Lopez Cruz2014-01-134-0/+162
| | | | | | | | | PCM start and stop is mostly needed for hostless ports, since they require to be explicitly started/stopped. PCM stop can also be used to unblock read() or write() calls. Change-Id: Ie651d90933022df754c582a89733d607101ea585 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: hdmi: Add OMAP_ENHANCEMENT to card name queryMisael Lopez Cruz2013-11-251-6/+3
| | | | | | | | Commit c98083eb doesn't completely enclose all symbols that are OMAP_ENHANCEMENT dependent. Change-Id: I083f8a309423639e61845b68db4028d421b94e39 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: Multizone: Fix session devices after disconnectionMisael Lopez Cruz2013-11-211-1/+1
| | | | | | | | AudioPolicyManager was accidentally clearing the devices from other zones while disconnecting a device from an audio session. Change-Id: Iba4eab9d52e39401a491e1bf7964f6e3e291863d Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* sensor_test_app: limit this app only for omap targetsVishal Mahaveer2013-11-211-0/+2
| | | | | | | Build this app only for OMAP platforms. Change-Id: I457b7e1d11432110ff36e6f747b07ecedbcde788 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* audio: policy: Don't force volume to max for BT SCOMisael Lopez Cruz2013-11-111-9/+1
| | | | | | | | Do not force the volume to max for bluetooth SCO since now the roles are inverted and the Android device is on the headset side. Change-Id: Idbf0c0e29a57cb21ff52fe593629de5205887ae3 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Add library documentationMisael Lopez Cruz2013-11-115-40/+531
| | | | | | | | | | | | Add more documentation to the tiaudioutils library, more specifically to the doxygen's main page and missing documentation in Log.h file. Doxygen 1.8 or later and Dot is required to properly build the documentation since it relies on Doxygen's Markdown. Change-Id: I395fed314aeaad8ded0233ab3a94771b7bb34888 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Lessen number of errors in pipe providersMisael Lopez Cruz2013-11-111-3/+20
| | | | | | | | | | | Lessen the number of errors in pipe providers (PipeReader and PipeWriter) by sleeping the equivalent time of the provider's buffer size. That helps to keep on retrying to get buffers from a provider that may be in a bad state (e.g. underrun) and to give chance to other threads to run. Change-Id: Ia643b681ed4ffca2958dd3808515c3bbc91acbad Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Unify error reporting in buffer providersMisael Lopez Cruz2013-11-113-4/+19
| | | | | | | | | Use a consistent error reporting mechanism for buffer providers, specifically in getNextBuffer(): frameCount is set to 0 and the appropriate error code is returned. Change-Id: I3a865b95ccabbde982f5c62ba713a80d0a6f561f Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Add isStreamRegister() helper methodsMisael Lopez Cruz2013-11-114-0/+60
| | | | | | | | Add a helper method to PCM reader/writer and simple reader/writer to check if a given input/output stream is currently registered. Change-Id: Ib818ea901a2c379b418196c5142f28cec57e9f60 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: utils: Add null pcm portsMisael Lopez Cruz2013-11-113-0/+327
| | | | | | | | | | Null PCM playback and capture ports are dummy ports that produce and consume audio buffers at the same rate that an actual hardware port would. They can be used to provide valid sources or sinks to PCM readers/writers when actual hardware ports are not available. Change-Id: Ibe54104b8542534fe0414bdc6ad0beedaba303d7 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: policy: Reducer parser's log levelMisael Lopez Cruz2013-11-111-3/+2
| | | | | | | | Reduce the log level of the AudioPolicyParser to exclude verbose and very verbose messages. Change-Id: I0b01bf3e1168bebc2941f5d03894518f60bc5cd0 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* Merge "mtpfuse: Close the usb device when the filesystem is destroyed." into ↵Vishal Mahaveer2013-11-061-1/+3
|\ | | | | | | d-jb-mr2.0-release
| * mtpfuse: Close the usb device when the filesystem is destroyed.Shankar Rao2013-11-061-1/+3
| | | | | | | | | | | | | | Close the usb device when the fuse filesystem is destroyed. Change-Id: I3230f82b56a2b60a741890891ea6a4350939feba Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
* | audio: policy: Reduce log levelMisael Lopez Cruz2013-11-061-3/+2
|/ | | | | | | | Reduce log level in the multizone AudioPolicyManager to exclude verbose and very verbose messages. Change-Id: I04749ed2aaad7c523350dba8906904db93e67762 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* mtpfuse: Remove call to read object size when calling readObject.Shankar Rao2013-11-061-7/+4
| | | | | | | | | | | readObject API is able to handle cases where the size passed is greater than the object size. Hence, the need to determine object size is redundant. Also, some whitespaces removed and DBG changed to printf for error scenarios. Change-Id: Iedde6b4ba7620cab31a35494899e48a700d2bfc8 Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
* USB: MTP HOST: Add service to retrieve MTP objects as a FUSE filesystem.Shankar Rao2013-11-052-0/+506
| | | | | | | | | | | | | mtpfuse is a service that is started when an MTP device is plugged in. It enumerates the MTP objects in the peripheral and presents them as a FUSE based filesystem to the host Android framework. In addition, it also kicks off the media scanner so that the media is visible in the gallery. mtpfuse uses Android's' MtpDevice native API to retrieve the MTP objects. Change-Id: Ic9095df8990cb6b911bd225c9834e0dd29e73521 Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
* audio: policy: Add initial implementationMisael Lopez Cruz2013-11-0111-0/+5323
| | | | | | | | Add initial implementation of the multizone audio policy and also the regular audio policy. Change-Id: Iacc468f5c6210417212b7b9dbe5de7b883a9ee9d Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: tiaudioutils: Add initial implementationMisael Lopez Cruz2013-11-0121-0/+8906
| | | | | | | | | | The tiaudioutils library is meant to provide building blocks to facilitate the implementation of AudioHALs that use multizone audio. Change-Id: I90c7af12aa69ea3bba12efc9cb517abef4ab0dcd Signed-off-by: Angela Stegmaier <a0866189@ti.com> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: New directory structureMisael Lopez Cruz2013-11-0113-0/+0
| | | | | | | | Move the existing OMAP4+ ABE and HDMI AudioHALs into the hw/ directory in preparation for the multizone content. Change-Id: Id6496a57d2e2a4f468111d949ab4ffab9514b7b0 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: hdmi: More descriptive write error messagesMisael Lopez Cruz2013-10-231-5/+2
| | | | | | | | Add more descriptive messages for write errors can be caused by the PCM write itself or PCM device open failures. Change-Id: I0eaafa0feb170ce369515fd19bee125270ba8019 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: hdmi: Find HDMI display dynamicallyMisael Lopez Cruz2013-10-223-12/+49
| | | | | | | | | | | | | HDMI is not always assigned to display1, so the EDID path changes accordingly. It's searched dynamically now (first match). Additionally, the sysfs entry is also replaced to: /sys/devices/platform/omapdss/ Previous sysfs entry (/sys/devices/omapdss) is obsolete. Change-Id: Ib8e4990353cc1eaf9b8e5c9460b74b5e4af6f165 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* audio: hdmi: Add OMAP_ENHANCEMENT to card name queryMisael Lopez Cruz2013-10-221-1/+6
| | | | | | | | | | | | HDMI audio HAL uses mixer_get_card_name() function (from tinyalsa which is under OMAP_ENHANCEMENT) to dynamically find the id of the HDMI sound card. The dynamic search of the card must also be dependent on OMAP_ENHANCEMENT and provide a default the flag is not defined. Change-Id: I53b0511fc3b1bbf0fe809a777f8f2acffd66675e Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* panda5: Add wfd sink capabilitiesSunita Nadampalli2013-06-251-0/+178
| | | | | Change-Id: Icfe19c422d135c99c28b3fe66f1cad20118ee89f Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
* Merge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-releaseRoman Shaposhnikov2013-06-181-2/+13
|\
| * HAL: Fix recording when USB device got no capture capabilitiesMykhailo Lysenko2013-06-141-2/+13
| | | | | | | | | | | | | | | | | | If connected USB device got no input capabilities, there was error while capturing sound. Now checking if USB device can capture; if no, use built-in mic. Change-Id: I7ec450e5e24c719b299939bf381f0232f083fb93 Signed-off-by: Mykhailo Lysenko <x0200985@ti.com>
* | Merge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-releaseRoman Shaposhnikov2013-06-121-1/+5
|\|
| * HDMI HAL: Crash fix.Sergii Iegorov2013-06-071-1/+5
| | | | | | | | | | | | | | Check pcm pointer for NULL before trying to obtain last error. Change-Id: I977f9b48d6a89bf504848c8bc1a2e6ca924e3e5c Signed-off-by: Sergii Iegorov <x0155539@ti.com>
* | WFD: DHCP leases modification script installation changeSergii Kurylo2013-06-033-3/+12
| | | | | | | | | | | | | | | | | | | | This patch modify DHCP script installation procedure from regular copy to installation as executable binary file. In this case executable flag is set for script by build system. Change-Id: Ib199ff9dc724706a242fc2aa758c7906bf7aef37 Signed-off-by: Sergii Kurylo <x0156751@ti.com>
* | audio: Exclude ABE HAL for jacinto6Misael Lopez Cruz2013-05-231-3/+8
| | | | | | | | | | | | | | | | jacinto6 platform doesn't have ABE hardware, hence ABE HAL is not needed. Change-Id: Icbaa08d3701918cb3177415c0553712d2ec4ecea Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* | Merge "audio: extend Android.mk for jacinto6 platform" into d-jb-mr1-releaseVishal Mahaveer2013-05-211-1/+1
|\ \
| * | audio: extend Android.mk for jacinto6 platformVishal Mahaveer2013-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | Extend Android.mk to build for jacinto6 platform as well. Change-Id: I66a62fed96d8e213acb1073c2c1cf3dd7283a426 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
* | | Merge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-releaseRoman Shaposhnikov2013-05-170-0/+0
|\ \ \ | |/ / |/| / | |/
| * audio: hdmi: Handle error writing to device in hdmi_out_write()Misael Lopez Cruz2013-05-081-6/+12
| | | | | | | | | | | | | | | | | | | | If there is an error writing to the device in hdmi_out_write(), the function then sleeps for the size of the current fragment (bytes arg, converted to seconds). Change-Id: I2ea3942a02e14ea00c73a8519839865aab59ae00 Signed-off-by: Ranganath Krishnan <ranganath@ti.com> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* | audio: hdmi: Detect card number dynamicallyMisael Lopez Cruz2013-05-071-6/+22
| | | | | | | | | | | | | | | | | | Detect HDMI sound card dynamically based on the card name. If the name contains "hdmi" then it's picked. Previously it assumed the HDMI was always the card 1. Change-Id: Ic9d84e3ed47dab9851c9989f25f1abc80f30e016 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* | audio: hdmi: Handle error writing to device in hdmi_out_write()Misael Lopez Cruz2013-05-021-6/+12
|/ | | | | | | | | | If there is an error writing to the device in hdmi_out_write(), the function then sleeps for the size of the current fragment (bytes arg, converted to seconds). Change-Id: I2ea3942a02e14ea00c73a8519839865aab59ae00 Signed-off-by: Ranganath Krishnan <ranganath@ti.com> Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
* AudioHAL: Use proper audio input source for camcoder use case.Sergii Iegorov2013-04-111-3/+4
| | | | | | | | Use wired headset for camcoder recording use case if switched and sub mic in other case. Change-Id: I300922dae8f06f6b33be28cdbcb2ee57398a1fb3 Signed-off-by: Sergii Iegorov <x0155539@ti.com>
* Revert "Audio HAL: Using wired headset for camcoder recording on Tablet."Sergii Iegorov2013-04-111-6/+4
| | | | This reverts commit 1892d5bbd0f61243186d7c1b623f815e5fecdf10.
* Audio HAL: Using wired headset for camcoder recording on Tablet.Sergii Iegorov2013-04-101-4/+6
| | | | | | | | Use sub mic as a sound source for camcoder recording for Blaze only, not for Tablet. Change-Id: I5dd1ec642d85c8be79bf4607b2ff17bb6c6a3c5e Signed-off-by: Sergii Iegorov <x0155539@ti.com>