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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 targets
Build this app only for OMAP platforms.
Change-Id: I457b7e1d11432110ff36e6f747b07ecedbcde788
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
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 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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 d-jb-mr2.0-release
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>
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: 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>
Close the usb device when the fuse filesystem is destroyed.
Change-Id: I3230f82b56a2b60a741890891ea6a4350939feba
Signed-off-by: Shankar Rao <shankar.nrao@ti.com>
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>
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.
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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 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>
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 capabilities
Change-Id: Icfe19c422d135c99c28b3fe66f1cad20118ee89f
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Change-Id: Icfe19c422d135c99c28b3fe66f1cad20118ee89f
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Merge omap-mirror/p-jb-mr1-release into omap-mirror/d-jb-mr1-release
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>
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-release
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>
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 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>
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 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>
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-release
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>
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-release
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>
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 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>
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()
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>
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.
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>
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."
This reverts commit 1892d5bbd0f61243186d7c1b623f815e5fecdf10.
This reverts commit 1892d5bbd0f61243186d7c1b623f815e5fecdf10.
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>
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>
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>
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>
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>
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>
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>
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>
[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>
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>
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>
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>
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>
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>
WFD: Added 1280x720p60 and 1920x1080p30 resolutions
Change-Id: Ia60cd9e697be3bc201d3e147a7d4474b5f4f7d92
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
Change-Id: Ia60cd9e697be3bc201d3e147a7d4474b5f4f7d92
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
WFD: Added source and sink configuration files
Change-Id: I63dc7a818645fa299ce4deec97f12888e0006631
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
Change-Id: I63dc7a818645fa299ce4deec97f12888e0006631
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
WFD: Clean up deprecated files
Change-Id: I636ca320429e61918a5a747c60495321020aaf10
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
Change-Id: I636ca320429e61918a5a747c60495321020aaf10
Signed-off-by: Oleksandr Brykov <alex.brykov@ti.com>
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>
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>
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>
This patch adds USB headset into the
list of audio input sources
Change-Id: I303ff17626fce7b004ac9a9afe0e8e5e91aca012
Signed-off-by: Dmytro Dubovyk <dmytro.dubovyk@ti.com>
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>
Change-Id: Ica669df7db70eb2c9fbb61a7970eb611a597f23d
Signed-off-by: Daniel Levin <dendy@ti.com>
Merge remote-tracking branch 'omap-mirror/jb-mr0-release' into HEAD
Merge "cpcam: add CPCAM product to common-open" into jb-mr0-release
Audio policy for remote submix.
Change-Id: I6c8f0daa2d0a79de7605ad9a9541850d717ab8fd
Signed-off-by: Illia Ragozin <x0160199@ti.com>
Change-Id: I6c8f0daa2d0a79de7605ad9a9541850d717ab8fd
Signed-off-by: Illia Ragozin <x0160199@ti.com>
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>
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>
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>
Change-Id: Iac76adb0d6da4af80e5bcde711e43790d82ab70b
Signed-off-by: Daniel Levin <dendy@ti.com>
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>
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>
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>
Change-Id: Ie424f22a1ba4553ba1466669e9e0a5864fe2b033
Signed-off-by: Daniel Levin <dendy@ti.com>
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>
Added JNI to set S3D configuration to the SurfaceView layer
Change-Id: I8cb648d0beb1c74840787371a46bacc5a6035d3f
Signed-off-by: Pavel Nedev <pnedev@mm-sol.com>
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>
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>
[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>
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>
Merge "audio: No re-order of multichannel output if already in CEA format" into d-jb-release
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>
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>
Merge jb-release into d-jb-release
audio: modem: Tune Voicecall record volumes
Change-Id: Ib7b2390ae3c058b23148d5844b21ec9b239cdf67
Signed-off-by: Pierre Moos <p-moos@ti.com>
Change-Id: Ib7b2390ae3c058b23148d5844b21ec9b239cdf67
Signed-off-by: Pierre Moos <p-moos@ti.com>
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>
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>
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>
Modified to initialize correct output port for usb.
Change-Id: Ifb10ea6c5c16293ea797a04ca1f3e53fc3fd11c7
Signed-off-by: Bryan Honza <honza@ti.com>
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>
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>
audio: Enable "deep buffer" feature in audio_policy.conf
Change-Id: I52e101d68b5737540522a54d950de6b997eabab5
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
Change-Id: I52e101d68b5737540522a54d950de6b997eabab5
Signed-off-by: Gabriel M. Beddingfield <gabrbedd@ti.com>
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>
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>
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>
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>
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
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
Merge jb-release into d-jb-release
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>
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>
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>
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>
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>
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>
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
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
Merge jb-release into d-jb-release
Conflicts:
audio/audio_policy.conf
Change-Id: I691109f5d113e97d05d9f78b0b63c4410ba1822d
Conflicts:
audio/audio_policy.conf
Change-Id: I691109f5d113e97d05d9f78b0b63c4410ba1822d
Merge "audio: Enable USB headset mic" into d-jb-release
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>
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>
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>
Add AUDIO_DEVICE_IN_VOICE_CALL as input device.
Change-Id: I4b2c47fcebf608027cd4df867faec6fa884fade8
Signed-off-by: Pierre Moos <p-moos@ti.com>
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>
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>
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>
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>
audio: Enable USB headset mic
Change-Id: If6ea12ed92cafacf61e702571fc1304efbc349da
Signed-off-by: Priyesh Bisla <a0271372@ti.com>
Change-Id: If6ea12ed92cafacf61e702571fc1304efbc349da
Signed-off-by: Priyesh Bisla <a0271372@ti.com>
Panda5: Always auto-enable Stereo LineOut
Add AUXR/AUXL switches to the mixer control and use them
to auto-enable LineOut route on Panda boards.
Change-Id: I54b7b3d7cd68ad9e36307faba0045f3732613948
Signed-off-by: Dmitry Fink <finik@ti.com>
Add AUXR/AUXL switches to the mixer control and use them
to auto-enable LineOut route on Panda boards.
Change-Id: I54b7b3d7cd68ad9e36307faba0045f3732613948
Signed-off-by: Dmitry Fink <finik@ti.com>
Panda5: Add panda5 routing handling
Add Panda5 enum to the logic thus making it
participate in the audio setup as well
Change-Id: I906720f5593fa1a136e4e5cc603f790642996bae
Signed-off-by: Dmitry Fink <finik@ti.com>
Add Panda5 enum to the logic thus making it
participate in the audio setup as well
Change-Id: I906720f5593fa1a136e4e5cc603f790642996bae
Signed-off-by: Dmitry Fink <finik@ti.com>
audio: Implement adev_set_mic_mute
The mic mute function sets to 0 the voice uplink volume if state
parametter is true, else it sets it to default volume (0dB or 6dB).
We mute the voice uplink in the voice call mode, else
in the multimedia mode we mute all mics.
To use this AESS mute instead of the default mute made by the modem,
set to "true" the send_mic_mute_to_AudioManager resource in the
packages/apps/Phone/res/values/config.xml file.
Change-Id: I321049e02a8b96c81a7d7281666818237989905e
Signed-off-by: Cedric Poignet <c-poignet@ti.com>
The mic mute function sets to 0 the voice uplink volume if state
parametter is true, else it sets it to default volume (0dB or 6dB).
We mute the voice uplink in the voice call mode, else
in the multimedia mode we mute all mics.
To use this AESS mute instead of the default mute made by the modem,
set to "true" the send_mic_mute_to_AudioManager resource in the
packages/apps/Phone/res/values/config.xml file.
Change-Id: I321049e02a8b96c81a7d7281666818237989905e
Signed-off-by: Cedric Poignet <c-poignet@ti.com>
S3D: Fixed SDK addon build on JB
- changed to correct path Surface.h
- renamed LOG to ALOG
Change-Id: I56a96f50fada07a8fac30db798f47eebb2a98060
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
- changed to correct path Surface.h
- renamed LOG to ALOG
Change-Id: I56a96f50fada07a8fac30db798f47eebb2a98060
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
Board-id: Fix the board ID app
Fix the board ID app to convert the LOG macro
to ALOG macro.
Change-Id: I6b76718239a672b16502a33cea58f39d3937d5d0
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Fix the board ID app to convert the LOG macro
to ALOG macro.
Change-Id: I6b76718239a672b16502a33cea58f39d3937d5d0
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Revert "Temporary fix to successfully compile JB."
This reverts commit a06d4db3c635f97f41b8943ed44e759d80f22ffb.
Improperly removed issues should have been fixed and not removed.
Pulling this back in and fixing the issues.
Signed-off-by: Dan Murphy <dmurphy@ti.com>
This reverts commit a06d4db3c635f97f41b8943ed44e759d80f22ffb.
Improperly removed issues should have been fixed and not removed.
Pulling this back in and fixing the issues.
Signed-off-by: Dan Murphy <dmurphy@ti.com>