android-sdk/device-ti-common-open.git
6 years agohdmi_audio: remove obsolete channel configuration d-lollipop-release master
Vishal Mahaveer [Wed, 12 Nov 2014 23:55:25 +0000 (17:55 -0600)]
hdmi_audio: remove obsolete channel configuration

AUDIO_CHANNEL_OUT_SURROUND is no longer supported.

Change-Id: Idc2959dfa515c76eb60833c27a078eb5effbdae3
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agohdmi_audio: add parameters to open stream functions
Vishal Mahaveer [Wed, 12 Nov 2014 23:55:04 +0000 (17:55 -0600)]
hdmi_audio: add parameters to open stream functions

Add new parameters needed in lollipop for open stream functions

Change-Id: I5cab12855d6b98b91193a4c2182b93b225f403e6
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agoaudio: add parameters to open stream functions
Vishal Mahaveer [Wed, 5 Nov 2014 21:47:34 +0000 (15:47 -0600)]
audio: add parameters to open stream functions

Add new parameters needed in lollipop for open stream functions

Change-Id: I6b721024289a14116b2cda8ed9024777e95ba655
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
6 years agoaudio: utils: Print ALSA PCM error messages
Misael Lopez Cruz [Fri, 19 Sep 2014 00:28:06 +0000 (19:28 -0500)]
audio: utils: Print ALSA PCM error messages

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>
6 years agoaudio: tiaudioutils: Use multizone specific define
Misael Lopez Cruz [Wed, 20 Aug 2014 23:19:08 +0000 (18:19 -0500)]
audio: tiaudioutils: Use multizone specific define

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>
6 years agocleanup: remove legacy sources
Vishal Mahaveer [Mon, 7 Jul 2014 23:02:24 +0000 (18:02 -0500)]
cleanup: remove legacy sources

Remove unused source code

Change-Id: Ia5e53fb56b52c0dc0c9a00c7938cd909dbdb3b69
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoaudio: update openmax include path d-kitkat-mr1-release
Vishal Mahaveer [Tue, 8 Apr 2014 20:35:23 +0000 (15:35 -0500)]
audio: update openmax include path

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>
7 years agoaudio: policy: Add support for auxiliary input
Misael Lopez Cruz [Mon, 27 Jan 2014 23:40:54 +0000 (17:40 -0600)]
audio: policy: Add support for auxiliary input

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>
7 years agoaudio: utils: Fix SimpleWriter's returned frames
Misael Lopez Cruz [Thu, 30 Jan 2014 21:27:20 +0000 (15:27 -0600)]
audio: utils: Fix SimpleWriter's returned frames

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>
7 years agoaudio: utils: Add flush() and size() methods to MonoPipe
Misael Lopez Cruz [Tue, 28 Jan 2014 20:06:45 +0000 (14:06 -0600)]
audio: utils: Add flush() and size() methods to MonoPipe

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>
7 years agoaudio: utils: Add pipe shutdown state
Misael Lopez Cruz [Mon, 20 Jan 2014 21:34:13 +0000 (15:34 -0600)]
audio: utils: Add pipe shutdown state

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>
7 years agoaudio: utils: Add PCM port name
Misael Lopez Cruz [Mon, 20 Jan 2014 19:10:20 +0000 (13:10 -0600)]
audio: utils: Add PCM port name

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>
7 years agoaudio: utils: Add PCM start and stop
Misael Lopez Cruz [Tue, 10 Dec 2013 08:48:39 +0000 (02:48 -0600)]
audio: utils: Add PCM start and stop

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>
7 years agoaudio: hdmi: Add OMAP_ENHANCEMENT to card name query
Misael Lopez Cruz [Mon, 25 Nov 2013 20:16:32 +0000 (14:16 -0600)]
audio: hdmi: Add OMAP_ENHANCEMENT to card name query

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>
7 years agoaudio: Multizone: Fix session devices after disconnection
Misael Lopez Cruz [Fri, 15 Nov 2013 04:21:28 +0000 (22:21 -0600)]
audio: Multizone: Fix session devices after disconnection

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>
7 years agosensor_test_app: limit this app only for omap targets
Vishal Mahaveer [Thu, 21 Nov 2013 14:53:45 +0000 (08:53 -0600)]
sensor_test_app: limit this app only for omap targets

Build this app only for OMAP platforms.

Change-Id: I457b7e1d11432110ff36e6f747b07ecedbcde788
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoaudio: policy: Don't force volume to max for BT SCO
Misael Lopez Cruz [Mon, 11 Nov 2013 22:55:34 +0000 (16:55 -0600)]
audio: policy: Don't force volume to max for BT SCO

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>
7 years agoaudio: utils: Add library documentation
Misael Lopez Cruz [Mon, 11 Nov 2013 10:39:58 +0000 (04:39 -0600)]
audio: utils: Add library documentation

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>
7 years agoaudio: utils: Lessen number of errors in pipe providers
Misael Lopez Cruz [Fri, 8 Nov 2013 07:18:42 +0000 (01:18 -0600)]
audio: utils: Lessen number of errors in pipe providers

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>
7 years agoaudio: utils: Unify error reporting in buffer providers
Misael Lopez Cruz [Fri, 8 Nov 2013 07:14:07 +0000 (01:14 -0600)]
audio: utils: Unify error reporting in buffer providers

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>
7 years agoaudio: utils: Add isStreamRegister() helper methods
Misael Lopez Cruz [Fri, 8 Nov 2013 06:33:46 +0000 (00:33 -0600)]
audio: utils: Add isStreamRegister() helper methods

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>
7 years agoaudio: utils: Add null pcm ports
Misael Lopez Cruz [Wed, 6 Nov 2013 02:32:55 +0000 (20:32 -0600)]
audio: utils: Add null pcm ports

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>
7 years agoaudio: policy: Reducer parser's log level
Misael Lopez Cruz [Mon, 11 Nov 2013 18:56:07 +0000 (12:56 -0600)]
audio: policy: Reducer parser's log level

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>
7 years agoMerge "mtpfuse: Close the usb device when the filesystem is destroyed." into d-jb...
Vishal Mahaveer [Wed, 6 Nov 2013 21:34:59 +0000 (15:34 -0600)]
Merge "mtpfuse: Close the usb device when the filesystem is destroyed." into d-jb-mr2.0-release

7 years agoaudio: policy: Reduce log level
Misael Lopez Cruz [Tue, 5 Nov 2013 23:54:47 +0000 (17:54 -0600)]
audio: policy: Reduce log level

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>
7 years agomtpfuse: Close the usb device when the filesystem is destroyed.
Shankar Rao [Wed, 6 Nov 2013 19:18:43 +0000 (13:18 -0600)]
mtpfuse: Close the usb device when the filesystem is destroyed.

Close the usb device when the fuse filesystem is destroyed.

Change-Id: I3230f82b56a2b60a741890891ea6a4350939feba
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
7 years agomtpfuse: Remove call to read object size when calling readObject.
Shankar Rao [Wed, 6 Nov 2013 17:40:20 +0000 (11:40 -0600)]
mtpfuse: Remove call to read object size when calling readObject.

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>
7 years agoUSB: MTP HOST: Add service to retrieve MTP objects as a FUSE filesystem.
Shankar Rao [Tue, 5 Nov 2013 05:10:48 +0000 (23:10 -0600)]
USB: MTP HOST: Add service to retrieve MTP objects as a FUSE filesystem.

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>
7 years agoaudio: policy: Add initial implementation
Misael Lopez Cruz [Sun, 27 Oct 2013 15:04:50 +0000 (10:04 -0500)]
audio: policy: Add initial implementation

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>
7 years agoaudio: tiaudioutils: Add initial implementation
Misael Lopez Cruz [Wed, 23 Oct 2013 06:32:27 +0000 (01:32 -0500)]
audio: tiaudioutils: Add initial implementation

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>
7 years agoaudio: New directory structure
Misael Lopez Cruz [Wed, 23 Oct 2013 06:26:58 +0000 (01:26 -0500)]
audio: New directory structure

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>
7 years agoaudio: hdmi: More descriptive write error messages
Misael Lopez Cruz [Wed, 23 Oct 2013 04:45:12 +0000 (23:45 -0500)]
audio: hdmi: More descriptive write error messages

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>
7 years agoaudio: hdmi: Find HDMI display dynamically
Misael Lopez Cruz [Fri, 2 Aug 2013 21:29:00 +0000 (16:29 -0500)]
audio: hdmi: Find HDMI display dynamically

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>
7 years agoaudio: hdmi: Add OMAP_ENHANCEMENT to card name query
Misael Lopez Cruz [Wed, 16 Oct 2013 21:56:23 +0000 (16:56 -0500)]
audio: hdmi: Add OMAP_ENHANCEMENT to card name query

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>
7 years agopanda5: Add wfd sink capabilities
Sunita Nadampalli [Tue, 25 Jun 2013 21:00:23 +0000 (16:00 -0500)]
panda5: Add wfd sink capabilities

Change-Id: Icfe19c422d135c99c28b3fe66f1cad20118ee89f
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
7 years agoMerge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-release
Roman Shaposhnikov [Tue, 18 Jun 2013 14:26:47 +0000 (09:26 -0500)]
Merge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-release

7 years agoHAL: Fix recording when USB device got no capture capabilities
Mykhailo Lysenko [Fri, 14 Jun 2013 12:17:21 +0000 (15:17 +0300)]
HAL: Fix recording when USB device got no capture capabilities

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>
7 years agoMerge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-release
Roman Shaposhnikov [Wed, 12 Jun 2013 09:54:22 +0000 (04:54 -0500)]
Merge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-release

7 years agoHDMI HAL: Crash fix.
Sergii Iegorov [Thu, 6 Jun 2013 13:54:07 +0000 (16:54 +0300)]
HDMI HAL: Crash fix.

Check pcm pointer for NULL before trying to obtain last error.

Change-Id: I977f9b48d6a89bf504848c8bc1a2e6ca924e3e5c
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
7 years agoWFD: DHCP leases modification script installation change
Sergii Kurylo [Mon, 3 Jun 2013 11:36:31 +0000 (11:36 +0000)]
WFD: DHCP leases modification script installation change

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>
7 years agoaudio: Exclude ABE HAL for jacinto6
Misael Lopez Cruz [Thu, 23 May 2013 20:46:39 +0000 (15:46 -0500)]
audio: Exclude ABE HAL for jacinto6

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>
7 years agoMerge "audio: extend Android.mk for jacinto6 platform" into d-jb-mr1-release
Vishal Mahaveer [Tue, 21 May 2013 16:34:28 +0000 (16:34 +0000)]
Merge "audio: extend Android.mk for jacinto6 platform" into d-jb-mr1-release

7 years agoaudio: extend Android.mk for jacinto6 platform
Vishal Mahaveer [Tue, 21 May 2013 03:36:27 +0000 (22:36 -0500)]
audio: extend Android.mk for jacinto6 platform

Extend Android.mk to build for jacinto6 platform as well.

Change-Id: I66a62fed96d8e213acb1073c2c1cf3dd7283a426
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
7 years agoMerge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-release
Roman Shaposhnikov [Fri, 17 May 2013 14:01:42 +0000 (09:01 -0500)]
Merge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-release

7 years agoaudio: hdmi: Handle error writing to device in hdmi_out_write()
Misael Lopez Cruz [Thu, 2 May 2013 22:27:25 +0000 (17:27 -0500)]
audio: hdmi: Handle error writing to device in hdmi_out_write()

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>
7 years agoaudio: hdmi: Detect card number dynamically
Misael Lopez Cruz [Thu, 2 May 2013 22:45:54 +0000 (17:45 -0500)]
audio: hdmi: Detect card number dynamically

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>
7 years agoaudio: hdmi: Handle error writing to device in hdmi_out_write()
Misael Lopez Cruz [Thu, 2 May 2013 22:27:25 +0000 (17:27 -0500)]
audio: hdmi: Handle error writing to device in hdmi_out_write()

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>
8 years agoAudioHAL: Use proper audio input source for camcoder use case.
Sergii Iegorov [Thu, 11 Apr 2013 17:07:38 +0000 (20:07 +0300)]
AudioHAL: Use proper audio input source for camcoder use case.

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>
8 years agoRevert "Audio HAL: Using wired headset for camcoder recording on Tablet."
Sergii Iegorov [Thu, 11 Apr 2013 17:17:35 +0000 (20:17 +0300)]
Revert "Audio HAL: Using wired headset for camcoder recording on Tablet."

This reverts commit 1892d5bbd0f61243186d7c1b623f815e5fecdf10.

8 years agoAudio HAL: Using wired headset for camcoder recording on Tablet.
Sergii Iegorov [Wed, 10 Apr 2013 14:24:27 +0000 (17:24 +0300)]
Audio HAL: Using wired headset for camcoder recording on Tablet.

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>
8 years agoWFD: common-open fix.
Sergii Kurylo [Mon, 8 Apr 2013 15:37:18 +0000 (15:37 +0000)]
WFD: common-open fix.

This patch fixes wfd-products.mk to
set execution permission for DHCP
leases script and correct JNI and
Java library names for proper binaries
copying to AFS image.

WfdSinkLib renamed to com.ti.wfd (name
of the dynamic Java library).

Change-Id: I45ea6b73eaff546ec36284aaa873a570e33b0c69
Signed-off-by: Sergii Kurylo <x0156751@ti.com>
8 years agoWFD: WfdSinkLib conversion to dynamic java library
Sergii Kurylo [Tue, 2 Apr 2013 11:50:17 +0000 (11:50 +0000)]
WFD: WfdSinkLib conversion to dynamic java library

This patch converts WfdSinkLib to dynamic java
library.

WfdSinkActivity class removed from library to
move application functionality to application
itself.

Unnecessary native functions removed.

Unnecessary constants removed.

All remaining classes were moved to
com.ti.omap.android.wfd.sink namespace.

RtspSink class was renamed to WfdSink.

RtspStateListener was renamed to
WfdStateListener.

WfdSinkException added

WFD role check moved from application to
WfdSink class.

Change-Id: I9d081d034ec0b13728a15e3aa01a509be3b8af6f
Signed-off-by: Sergii Kurylo <x0156751@ti.com>
8 years agoWFD: DHCP leases modification script added
Sergii Kurylo [Tue, 2 Apr 2013 12:01:59 +0000 (12:01 +0000)]
WFD: DHCP leases modification script added

This patch adds dhcp_script which will be
invoked every time DHCP leases changes.

In case leases change DHCP script sends
broadcast intent with IP address, MAC
address and leases action (add, del, old,
etc).

This broadcast is needed to determine IP
address of the remote device in case our
device running DHCP server.

Change-Id: I73e813d49da0b6832a3dcc37289d50946349a263
Signed-off-by: Sergii Kurylo <x0156751@ti.com>
8 years ago[AudioHAL] Opening of USB input on all possible parameters.
Sergii Iegorov [Thu, 28 Mar 2013 13:10:05 +0000 (15:10 +0200)]
[AudioHAL] Opening of USB input on all possible parameters.

In the case of USB input device doesn't support default input
parameters, i.e. 48kHz and 1 channel - that tries to open
the input with all possible sets of sample rates and channels
numbers. If none of them succeeds, the input won't be created.

Change-Id: Ie341e7b6d1a3efa5a9405db1a91084549defd325
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
8 years agoWfdSinkLib: Add state listener implementation
Andrii Kulian [Tue, 5 Mar 2013 13:09:09 +0000 (15:09 +0200)]
WfdSinkLib: Add state listener implementation

This patch adds RtspStateListener implementation, which allows
to filter rtsp commands from Player application.

Change-Id: I432db7ff008c9f291d1e0380727fd13ca0ffb38b
Signed-off-by: Andrii Kulian <andrii.kulian@ti.com>
Signed-off-by: Sergii Kurylo <x0156751@ti.com>
8 years agoWFD: RTSP state listener support added to WfdSinkLib.
Sergii Kurylo [Mon, 4 Mar 2013 10:59:37 +0000 (10:59 +0000)]
WFD: RTSP state listener support added to WfdSinkLib.

This patch adds RTSP state listener support to
WFD sink java library to provide java applications
with means to get current WFD sink native part
state.

Native wrapper for Java RtspStateListener is also
added.

Change-Id: I5ccb45ef9d16d9e46d3dcdff63c06bbebbebdf51
Signed-off-by: Sergii Kurylo <x0156751@ti.com>
8 years agoWFD: Added 1280x720p60 and 1920x1080p30 resolutions
Oleksandr Brykov [Tue, 5 Mar 2013 13:08:36 +0000 (15:08 +0200)]
WFD: Added 1280x720p60 and 1920x1080p30 resolutions

Change-Id: Ia60cd9e697be3bc201d3e147a7d4474b5f4f7d92
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
8 years agoWfdSinkLib: Add Wfd role check
Andrii Kulian [Fri, 1 Mar 2013 07:25:01 +0000 (09:25 +0200)]
WfdSinkLib: Add Wfd role check

This patch adds Wfd role checking (persistent property -
persist.wfd.role) to sink activity and stops player application
if it is not "sink".

Change-Id: Idcf8663312af0e97efc6e46116f5fc49024389bb
Signed-off-by: Andrii Kulian <andrii.kulian@ti.com>
8 years agoWFD: Add WfdSinkService and WfdSinkPlayer
Andrii Kulian [Wed, 20 Feb 2013 15:43:27 +0000 (17:43 +0200)]
WFD: Add WfdSinkService and WfdSinkPlayer

WfdSinkService is responsible for setting WFD device information
and establishing P2P connection. When connection is established
it can open WfdSinkPlayer application to show incoming frames.

WfdSinkPlayer is a sample android Application which can show
incoming frames,call some RTSP commands (through the library's
API) and send commands to WFDSinkService to set WFD info.

Change-Id: I3a01c3bba4431877440d702f4e8d311f2e3c375d
Signed-off-by: Andrii Kulian <andrii.kulian@ti.com>
8 years agoWFD: WfdSinkLib initial commit
Andrii Kulian [Wed, 20 Feb 2013 15:38:11 +0000 (17:38 +0200)]
WFD: WfdSinkLib initial commit

This library provides high-level API for WfdSinkPlayer
application. Also it is used by WfdSinkService.

Change-Id: I9391e91301f8a519394e7579d3aa4ed205d5aae4
Signed-off-by: Andrii Kulian <andrii.kulian@ti.com>
8 years agoAdding of Submix profile to support 5.1 audio.
Sergii Iegorov [Wed, 30 Jan 2013 08:29:00 +0000 (10:29 +0200)]
Adding of Submix profile to support 5.1 audio.

Another profile was added to SUBMIX Audio config.
It supports 5.1 channels only and demands direct output.
6-channels mask was also added to input SUBMIX profile.

Change-Id: I42bbe32091be1dfe68f69c160fd472bbcad7ced7
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
8 years agoAudioHAL: Don't check parameters while getting buffer size.
Sergii Iegorov [Tue, 29 Jan 2013 15:50:42 +0000 (17:50 +0200)]
AudioHAL: Don't check parameters while getting buffer size.

Getting of input buffer size function looks like rather
static utility than checking of actual capabilities of
particular HAL. So, primary HAL should provide input
buffer size regardless of does it actually support
multichannel or not.

Change-Id: I9d2b4a5854fa4ab497b17d236463b617d0ac716a
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
8 years agoWFD: Added source and sink configuration files
Oleksandr Brykov [Fri, 25 Jan 2013 12:55:54 +0000 (14:55 +0200)]
WFD: Added source and sink configuration files

Change-Id: I63dc7a818645fa299ce4deec97f12888e0006631
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
8 years agoWFD: Clean up deprecated files
Oleksandr Brykov [Fri, 25 Jan 2013 12:24:07 +0000 (14:24 +0200)]
WFD: Clean up deprecated files

Change-Id: I636ca320429e61918a5a747c60495321020aaf10
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
8 years agoaudio: Restoring of correct audio route for all outputs.
Sergii Iegorov [Thu, 3 Jan 2013 13:01:25 +0000 (15:01 +0200)]
audio: Restoring of correct audio route for all outputs.

This patch makes appropriate routing in the case when
one output goes to standby and the other needs to
restore it's own audio path that is different from
the previous.

Change-Id: I0b84814ccfb6c418f4aeda4d32c6ce3f29647bbc
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
8 years agoaudio: Adding support for USB microphone
Dmytro Dubovyk [Tue, 25 Dec 2012 15:27:56 +0000 (17:27 +0200)]
audio: Adding support for USB microphone

This patch adds USB headset into the
list of audio input sources

Change-Id: I303ff17626fce7b004ac9a9afe0e8e5e91aca012
Signed-off-by: Dmytro Dubovyk <dmytro.dubovyk@ti.com>
8 years agoMerge remote-tracking branch 'omap-mirror/d-jb-mr0-release' into p-jb-mr1-release
Daniel Levin [Fri, 21 Dec 2012 16:55:25 +0000 (18:55 +0200)]
Merge remote-tracking branch 'omap-mirror/d-jb-mr0-release' into p-jb-mr1-release

Change-Id: Ica669df7db70eb2c9fbb61a7970eb611a597f23d
Signed-off-by: Daniel Levin <dendy@ti.com>
8 years agoMerge remote-tracking branch 'omap-mirror/jb-mr0-release' into HEAD
Roman Shaposhnikov [Fri, 21 Dec 2012 10:54:54 +0000 (12:54 +0200)]
Merge remote-tracking branch 'omap-mirror/jb-mr0-release' into HEAD

8 years agoMerge "cpcam: add CPCAM product to common-open" into jb-mr0-release
Sundar Raman [Thu, 20 Dec 2012 17:07:45 +0000 (11:07 -0600)]
Merge "cpcam: add CPCAM product to common-open" into jb-mr0-release

8 years agoAudio policy for remote submix.
Illia Ragozin [Mon, 10 Dec 2012 11:53:04 +0000 (13:53 +0200)]
Audio policy for remote submix.

Change-Id: I6c8f0daa2d0a79de7605ad9a9541850d717ab8fd
Signed-off-by: Illia Ragozin <x0160199@ti.com>
8 years agocpcam: add CPCAM product to common-open
Andrii Beregovenko [Mon, 1 Oct 2012 13:09:23 +0000 (16:09 +0300)]
cpcam: add CPCAM product to common-open

Move CPCAM from device/ti/blaze_tablet to common-open cause this product
is not the only blaze_tablet specific product, and should be shareable
to other devices like blaze.

This patch should be merged togeather with:
  http://review.omapzoom.org/30884 (update cpcam def in blaze_tablet)
  http://review.omapzoom.org/30886 (update cpcam use in blaze device)

Change-Id: I0a2fb62750e011515288d9d42639a74039d6ba3a
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
8 years agoMerge '[audio_hal] Workaround for USB-IN only devices' into p-jb-mr1-release
Daniel Levin [Wed, 5 Dec 2012 19:03:18 +0000 (21:03 +0200)]
Merge '[audio_hal] Workaround for USB-IN only devices' into p-jb-mr1-release

Change-Id: Iac76adb0d6da4af80e5bcde711e43790d82ab70b
Signed-off-by: Daniel Levin <dendy@ti.com>
8 years agoPorting Audio HAL to use Input device bit
Sergii Iegorov [Mon, 26 Nov 2012 15:35:25 +0000 (17:35 +0200)]
Porting Audio HAL to use Input device bit

Audio devices musks now intersects for output and
input and contain special bit to identify an input
device explicitely. Audio HAL should thus use
different variables for input devices and output ones.

Change-Id: I156fad5fe457780cfb7ba710ff75b319506cfb2b
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
8 years agoMerge remote-tracking branch 'omap-mirror/d-jb-mr0-release' into p-jb-mr1-release
Daniel Levin [Tue, 4 Dec 2012 14:04:38 +0000 (16:04 +0200)]
Merge remote-tracking branch 'omap-mirror/d-jb-mr0-release' into p-jb-mr1-release

Change-Id: Ie424f22a1ba4553ba1466669e9e0a5864fe2b033
Signed-off-by: Daniel Levin <dendy@ti.com>
8 years agoS3D view framework modified
Pavel Nedev [Thu, 15 Nov 2012 13:44:01 +0000 (15:44 +0200)]
S3D view framework modified

Added JNI to set S3D configuration to the SurfaceView layer

Change-Id: I8cb648d0beb1c74840787371a46bacc5a6035d3f
Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
8 years agoaudio: Disable OMAP Audio HAL without OMAP_ENHANCEMENT
Daniel Levin [Tue, 20 Nov 2012 11:20:34 +0000 (13:20 +0200)]
audio: Disable OMAP Audio HAL without OMAP_ENHANCEMENT

Build should succeed without OMAP_ENHANCEMENT enabled.
Default Google Audio HAL will be used instead.

Also removed hack to duplicate enhancement tokens defined in:
system/core/include/system/audio.h

Change-Id: Ia7d545792c2b4f66b7261d44aa5aaa159edce10e
Signed-off-by: Daniel Levin <dendy@ti.com>
8 years ago[audio_hal] Workaround for USB-IN only devices
Sergii Shcherbakov [Thu, 15 Nov 2012 12:48:49 +0000 (14:48 +0200)]
[audio_hal] Workaround for USB-IN only devices

In case of connection USB camera with build-in microphone
not only INPUT stream will be routed to USB, but OUTPUT
stream too.

This patch intends to switch audio OUTPUT stream back to
the first available OUTPUT, otherwise to onboard speakers.

Change-Id: I46f3e28f991c485d702accd77b60d349c190d1fd
Signed-off-by: Sergii Shcherbakov <x0155537@ti.com>
8 years agoMerge "audio: No re-order of multichannel output if already in CEA format" into d...
Barry Woodward [Wed, 7 Nov 2012 21:01:01 +0000 (15:01 -0600)]
Merge "audio: No re-order of multichannel output if already in CEA format" into d-jb-release

8 years agoDisable Board_id libs
Andrii Beregovenko [Fri, 26 Oct 2012 13:14:38 +0000 (16:14 +0300)]
Disable Board_id libs

Since it is not buildable with PDK, do not build it if PDK build
happened.

Change-Id: I77b1a4440653fd9419bddb0d24041e78fe049ad8
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
8 years agoMerge jb-release into d-jb-release
Keith Deacon [Tue, 9 Oct 2012 22:31:47 +0000 (17:31 -0500)]
Merge jb-release into d-jb-release

8 years agoaudio: modem: Tune Voicecall record volumes
Pierre Moos [Thu, 27 Sep 2012 10:29:19 +0000 (12:29 +0200)]
audio: modem: Tune Voicecall record volumes

Change-Id: Ib7b2390ae3c058b23148d5844b21ec9b239cdf67
Signed-off-by: Pierre Moos <p-moos@ti.com>
8 years agoaudio: update audio hal to support an ABE without a dl2 path
Bryan Honza [Thu, 27 Sep 2012 21:07:35 +0000 (16:07 -0500)]
audio: update audio hal to support an ABE without a dl2 path

Modify the multiport audio hal solution to add support for an ABE
without a dl2 path. The audio hal will support an ABE
with both dl1 and dl2 paths, and also an ABE without the dl2 path.

Change-Id: I99a8708a06dc5486213a22084a3dfc86442afa23
Signed-off-by: Bryan Honza <honza@ti.com>
8 years agoaudio: update audio hal to support usb with multiport audio hal
Bryan Honza [Thu, 21 Jun 2012 19:19:47 +0000 (14:19 -0500)]
audio: update audio hal to support usb with multiport audio hal

Modified to initialize correct output port for usb.

Change-Id: Ifb10ea6c5c16293ea797a04ca1f3e53fc3fd11c7
Signed-off-by: Bryan Honza <honza@ti.com>
8 years agoaudio: allow phone call use cases with multiport audio hw module
Bryan Honza [Tue, 8 May 2012 18:28:41 +0000 (13:28 -0500)]
audio: allow phone call use cases with multiport audio hw module

Modify the multiport audio hw module to support use cases involving
phone calls. Adds a persistant copy of output devices available per
stream which is updated when a stream output device is selected.
Mixer front end configuration distinguishes low-power output stream
to better choose front end routing.

Change-Id: Icf5790c26c68d39b5aa7651ebf6964cdb938431d
Signed-off-by: Bryan Honza <honza@ti.com>
8 years agoaudio: Enable "deep buffer" feature in audio_policy.conf
Gabriel M. Beddingfield [Tue, 24 Jul 2012 19:40:51 +0000 (14:40 -0500)]
audio: Enable "deep buffer" feature in audio_policy.conf

Change-Id: I52e101d68b5737540522a54d950de6b997eabab5
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
8 years agoaudio: open output for low power if flag is set
Gabriel M. Beddingfield [Tue, 24 Jul 2012 19:29:42 +0000 (14:29 -0500)]
audio: open output for low power if flag is set

By checking the flags that are set in the open_output_stream
parameters, the correct ABE port can be determined for a given
stream. For now, only OUTPUT_FLAG_LOW_POWER is checked and used
to open MM_DL_LP and the TONES_DL port will be used otherwise.

Change-Id: I623467e5da325c29fb8ea58e0969fc58b1738c74
Signed-off-by: Chris Kelly <c-kelly@ti.com>
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
Signed-off-by: Bryan Honza <honza@ti.com>
8 years agoaudio: allow multiple active outputs
Gabriel M. Beddingfield [Tue, 24 Jul 2012 19:02:29 +0000 (14:02 -0500)]
audio: allow multiple active outputs

To allow more flexible use of the audio hardware, the audio hw module
needs to support muliple simultaneous active outputs. In this specific
case, support for a low latency output and an optional low-power output
is added by tracking the number of active outputs and comparing the
active_output to the stream handle passed down from AudioFlinger.

echo_reference also needs to be updated for multi port support.

Change-Id: Ic53e973a3b54d70b26a7b7d12a107e3927622d28
Signed-off-by: Chris Kelly <c-kelly@ti.com>
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
Signed-off-by: Bryan Honza <honza@ti.com>
8 years agoaudio: No re-order of multichannel output if already in CEA format
Priyesh Bisla [Tue, 2 Oct 2012 23:25:38 +0000 (17:25 -0600)]
audio: No re-order of multichannel output if already in CEA format

If 6 or more channels match the CEA channel position we have confidence
the advertised channel position is in CEA format. No need to re-order
channel position as this is format HDMI expects

Signed-off-by: Priyesh Bisla <a0271372@ti.com>
Change-Id: If78e2ed15d9e5c93d6bf777a06d6ed9b6e1cb590

8 years agoMerge jb-release into d-jb-release
Keith Deacon [Thu, 27 Sep 2012 14:16:27 +0000 (09:16 -0500)]
Merge jb-release into d-jb-release

8 years agoaudio: modem: Disable modem acoustics before switching device
Pierre Moos [Wed, 26 Sep 2012 12:42:20 +0000 (14:42 +0200)]
audio: modem: Disable modem acoustics before switching device

As modem acoustics are changed after device switch, for a short time
the modem had a wrong acoustic until new one was sent.
I.e, when switching from Speaker mode to Headset, the headset mode was starting
with a Speaker acoustic for a few milliseconds which introduced a pop.

Change-Id: If0892f288f6c36de30b0d8b8ace45eb464df9f3b
Signed-off-by: Pierre Moos <p-moos@ti.com>
8 years agoaudio: Change "Flat Response" equalizer name to "Flat response"
Jyri Sarha [Tue, 18 Sep 2012 09:23:01 +0000 (12:23 +0300)]
audio: Change "Flat Response" equalizer name to "Flat response"

The flat response equalizer name on in the default ABE firmware header
is "Flat response" with lower-case 'r', not "Flat Response".

Change-Id: I9592fd403a191e71277398ebe967c7993bde3930
Signed-off-by: Jyri Sarha <jsarha@ti.com>
8 years agoaudio: Add speaker equalizer support to single path
Jyri Sarha [Tue, 18 Sep 2012 08:48:28 +0000 (11:48 +0300)]
audio: Add speaker equalizer support to single path

This change requires "450Hz High-pass" equalizer to be present also on
DL1 path:

Kernel 3.0: http://review.omapzoom.org/#/c/27898/
Kernel 3.4: http://review.omapzoom.org/#/c/27848/

Change-Id: Ic1d832aa1fc765d2fc789262c2d23763ea9d2d2d
Signed-off-by: Jyri Sarha <jsarha@ti.com>
8 years agoaudio: Re-order multichannel output based on advertised codec mapping
Priyesh Bisla [Fri, 31 Aug 2012 18:50:30 +0000 (12:50 -0600)]
audio:  Re-order multichannel output based on advertised codec mapping

Extract advertised channel mapping from stagefright.
Use the mapping to re-order the pcm output.

Signed-off-by: Priyesh Bisla <a0271372@ti.com>
Change-Id: I6f69c638117f194d18480ceeab057cf3b57f6ee0

8 years agoMerge jb-release into d-jb-release
Keith Deacon [Thu, 20 Sep 2012 00:25:43 +0000 (19:25 -0500)]
Merge jb-release into d-jb-release

Conflicts:
audio/audio_policy.conf

Change-Id: I691109f5d113e97d05d9f78b0b63c4410ba1822d

8 years agoMerge "audio: Enable USB headset mic" into d-jb-release
Barry Woodward [Tue, 18 Sep 2012 18:26:05 +0000 (18:26 +0000)]
Merge "audio: Enable USB headset mic" into d-jb-release

8 years agoaudio: modem: Enable dual mic voicecall
Pierre Moos [Wed, 15 Feb 2012 15:12:32 +0000 (16:12 +0100)]
audio: modem: Enable dual mic voicecall

Both mic's are enabled for speaker or earpiece calls, regarding the following
properties set to 1 (enabled) or 0 (disabled):

- modem.audio.dual_mic.speaker
- modem.audio.dual_mic.earpiece

Change-Id: Ief3c5f6946707b9624bd492212f6ae203b2e1958
Signed-off-by: Pierre Moos <p-moos@ti.com>
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
8 years agoaudio: Update audio_policy.conf for Voice Call Record
Pierre Moos [Thu, 30 Aug 2012 14:18:50 +0000 (16:18 +0200)]
audio: Update audio_policy.conf for Voice Call Record

Add AUDIO_DEVICE_IN_VOICE_CALL as input device.

Change-Id: I4b2c47fcebf608027cd4df867faec6fa884fade8
Signed-off-by: Pierre Moos <p-moos@ti.com>
8 years agoaudio: omap5 sevm: Earpiece and handset volume tuning
Cedric Poignet [Fri, 11 May 2012 12:25:18 +0000 (14:25 +0200)]
audio: omap5 sevm: Earpiece and handset volume tuning

The earpiece and handset audio volume was too low on OMAP5 SEVM.

The "defaults" gains structure has been duplicated for SEVM
to increase:
+ DL1 Voice Playback Volume to 132 in the AESS and
+ Headset Playback Volume to 15, the maximum value of Phoenix.

Change-Id: Ibc4bd93cb9aa19db888f445a42cba3ff50c24bd3
Signed-off-by: Cedric Poignet <c-poignet@ti.com>
8 years agoSensor App: Make the temp conversion happen immediately
Dan Murphy [Mon, 17 Sep 2012 13:45:24 +0000 (08:45 -0500)]
Sensor App: Make the temp conversion happen immediately

The temp conversion from farenhiet to celcius would only take
effect when the temperature is updated from the sensor.

This change will make the conversion happen immediately without the
temp sensor needing to update

Change-Id: Id0905f77851a37d4882dfe39b4dffc20c12a5dc4
Signed-off-by: Dan Murphy <dmurphy@ti.com>
8 years agoaudio: Enable USB headset mic
Priyesh Bisla [Fri, 14 Sep 2012 18:25:48 +0000 (12:25 -0600)]
audio: Enable USB headset mic

Change-Id: If6ea12ed92cafacf61e702571fc1304efbc349da
Signed-off-by: Priyesh Bisla <a0271372@ti.com>