| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
AUDIO_CHANNEL_OUT_SURROUND is no longer supported.
Change-Id: Idc2959dfa515c76eb60833c27a078eb5effbdae3
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
|
|
|
|
|
|
|
| |
Add new parameters needed in lollipop for open stream functions
Change-Id: I5cab12855d6b98b91193a4c2182b93b225f403e6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
|
|
|
|
|
|
|
| |
Add new parameters needed in lollipop for open stream functions
Change-Id: I6b721024289a14116b2cda8ed9024777e95ba655
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Remove unused source code
Change-Id: Ia5e53fb56b52c0dc0c9a00c7938cd909dbdb3b69
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Build this app only for OMAP platforms.
Change-Id: I457b7e1d11432110ff36e6f747b07ecedbcde788
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| | |
d-jb-mr2.0-release
|
| |
| |
| |
| |
| |
| |
| | |
Close the usb device when the fuse filesystem is destroyed.
Change-Id: I3230f82b56a2b60a741890891ea6a4350939feba
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
|
|/
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: Icfe19c422d135c99c28b3fe66f1cad20118ee89f
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\| |
|
| |
| |
| |
| |
| |
| |
| | |
Check pcm pointer for NULL before trying to obtain last error.
Change-Id: I977f9b48d6a89bf504848c8bc1a2e6ca924e3e5c
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Extend Android.mk to build for jacinto6 platform as well.
Change-Id: I66a62fed96d8e213acb1073c2c1cf3dd7283a426
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
|
|\ \ \
| |/ /
|/| /
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
This reverts commit 1892d5bbd0f61243186d7c1b623f815e5fecdf10.
|
|
|
|
|
|
|
|
| |
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>
|