Commit graph

1835 commits

Author SHA1 Message Date
Lajos Molnar
a163e491c1 Merge "gralloc: clarify lock_ycbcr in light of multimedia codec usage" into lmp-mr1-dev 2015-02-04 07:18:04 +00:00
Haynes Mathew George
d5f7dbec0c audio: Add audio parameter key for device connect
Add audio parameter key for device connect.

Bug: 17785277
Bug: 19214836
Change-Id: Icd81702634e0bd83645d89c2d65e2b303fc11f8c
(cherry picked from commit 55c07c3418a3bc19a72c4935d8ed57a57074c49a)
2015-01-31 01:42:31 +00:00
Lajos Molnar
811677e68d gralloc: clarify lock_ycbcr in light of multimedia codec usage
Bug: 19179927
Change-Id: I53886f8d1a3a998b958f031b04ddd4cbf19aad2c
2015-01-30 11:02:58 -08:00
Zhijun He
b2bc0e5182 camera3: update ZSL spec
INPUT stream is not used by framework-implemented ZSL (HAL3.2), the sample
use case description is incorrect.

Bug: 19197776
Change-Id: I247ad8755b2197c2a62cc109c151749b42a4bd49
2015-01-29 14:44:37 -08:00
Jinsuk Kim
8b7eca8674 CEC: Add a new flag for set_option
Added a flag to pass system language information to HAL so that it can
respond to <Get Menu Language> in standby mode.

Bug: 19054079

Change-Id: Iada00307202f5c9429944184b62b6456b624125a
2015-01-19 10:46:39 +09:00
Pavan Chikkala
83b47a6891 usb audio: Fix incorrect bytes returned for recording
In a recording session , the number of bytes read is
not updated when pcm_read() fails. This results in
silence/invalid data being added during a device switch
from USB headset to handset.
Fix is to reset the number of bytes read if pcm_read()
returns an error indicating removal of USB headset.

Bug: 18611518

Change-Id: I10d578c3cf1037c90a891e63be2bd1c2b7e6126b
2015-01-09 14:14:41 -08:00
soon1.choi
781bb3f72e DO NOT MERGE - fix: memory leak
free momory for str_parms to prevent memory leak.

cherry-pcik from aosp c357157e28

Bug: 18798194.

Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
2014-12-18 09:55:05 -08:00
Jinsuk Kim
4b280b0cd0 CEC: Add a parameter port ID to set_audio_return_channel
This CL addresses the cases where TV has more than one ARC-supported
HDMI ports.

Bug: 18781204

Change-Id: I4eaeb755caf2552b826a7322d19ee671407ee43f
2014-12-17 17:35:14 +09:00
Haynes Mathew George
2cbdfa9c99 usbaudio: reset profile on device disconnect
Reset ALSA device profile on disconnect event. Entries like
supported sample rates, channel counts, formats will be repopulated
on next connect.

CRs-Fixed: 765434
Change-Id: I27d3b7fd7ff22646996f58c53de08547b1a1fb6a
Bug: 18606219
2014-12-11 09:14:19 -08:00
Jean-Michel Trivi
257fde6eb5 Reroute submix HAL: fix race condition on output state
When reading from a pipe, the output may have been previously
 closed, therefore the output state should only be read if it
 is still available.
This fixes a race condition observed between in_read() (which
 accesses the output stream) and adev_close_output_stream()
 (which sets the output reference to NULL).
 No issue with out_write() which checks the input reference.

Bug 16009464

Change-Id: I979bc12c8fe91fad9b6f6c9e0be107c1bacae360
2014-12-09 20:27:11 -08:00
Andre Eisenbach
285fed0963 Add server-side callback for change in MTU (1/4)
When a client requests to update the LE transport MTU, the server
currently does not get notified and can therefor not properly size
notifications appropriate to the current MTU.

Bug: 18388114
Change-Id: I136f32cba48da3302e13fb9a9ec81b8e01712138
2014-11-26 12:56:23 -08:00
Jean-Michel Trivi
b73bc86089 Support multiple pipes for rerouting
The implementation for "remote submix" supported only one pipe
  to capture the output of a mix.
This CL adds support for multiple pipes to support capturing
  multiple audio routes.
The structure for the r_submix audio device holds an array
  of route configurations (route_config), each referencing
  the input and output of the pipe dedicated to this route.
  Each route is associated to a unique address. Standby
  status is maintained per stream.

Bug 16009464

Change-Id: Ie164c4ad2a6d8138f825484e7faf29a974ccf82e
2014-11-17 17:04:45 -08:00
Dan Stoza
e0e834e3fe Merge "Add a BufferItem parameter to onFrameAvailable" into lmp-mr1-dev 2014-11-07 19:44:33 +00:00
Yin-Chia Yeh
8d3acf6e6e Merge "Camera2/3 HAL test: cleanup deprecated keys" into lmp-mr1-dev 2014-11-07 18:23:01 +00:00
Daniel Estrada Alva
700d2c2cf5 Merge "Fix typo and add more detailed comments on what we expect from GPS HAL. b/16727892" into lmp-mr1-dev 2014-11-06 21:52:43 +00:00
Yin-Chia Yeh
8df990b3a2 Camera2/3 HAL test: cleanup deprecated keys
Bug:16877860
Change-Id: I1eddec02cefa39692f63cc54cc40b75f449516a7
2014-11-06 10:11:32 -08:00
Dan Stoza
32ef0cae63 Add a BufferItem parameter to onFrameAvailable
Passes the BufferItem for the queued buffer to the onFrameAvailable
callback so the consumer can track the BufferQueue's contents.

Bug: 18111837
Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
2014-11-04 11:39:35 -08:00
Ruchi Kandoi
0e6a158eaf Merge "power: Adds setFeature functionality for the power module" into lmp-mr1-dev 2014-10-31 23:31:09 +00:00
Tsuwei Chen
a90cf193b9 Fix typo and add more detailed comments on what we expect from GPS HAL.
b/16727892

Change-Id: I73d3ea3e743846b9e579c78b80d7a393319c09f1
2014-10-31 13:43:07 -07:00
Ruchi Kandoi
d091713884 power: Adds setFeature functionality for the power module
Adds the setFeature callback which could be used to enable/disable
power as well as performance specific features.

POWER_FEATURE_DOUBLE_TAP_WAKE is added which uses the setFeature
callback to enable/disable the double-tap feature.

Bug: 16875464
Change-Id: I5ed9b5be8fddedf9861eedd962def421d9fac5bf
2014-10-31 10:58:30 -07:00
Wonsik Kim
357ce00a5b Merge "tv_input: more documentation to events" into lmp-mr1-dev 2014-10-23 06:55:32 +00:00
Wonsik Kim
fbb4412b1c tv_input: more documentation to events
Bug: 18047715
Change-Id: I63fd594d3380f92fce3224a258060ca2bf37e79b
2014-10-23 14:11:19 +09:00
Eric Laurent
bc19a3de77 audio: new parameter key for HW A/V sync ID allocation
The HW A/V sync ID is retrieved from the HAL by calling
global get_parameters() with key AUDIO_PARAMETER_HW_AV_SYNC.

After the output stream is opened, the HW A/V sync ID is communicated
by stream set_parameters() with key AUDIO_PARAMETER_STREAM_HW_AV_SYNC.

Bug: 17112525.
Change-Id: Id1e3a3aa1e88d15461a609b381ca8c1902735a29
2014-10-20 09:58:04 -07:00
Jean-Michel Trivi
4b6c515509 am 5ff76cb5: am 793a854e: Fix remote submix crash on null sink
* commit '5ff76cb59a892a856fa2476bd5bf7c41537b78e1':
  Fix remote submix crash on null sink
2014-10-16 05:52:39 +00:00
Jean-Michel Trivi
5ff76cb59a am 793a854e: Fix remote submix crash on null sink
* commit '793a854e4547fa43632907a987684cadc93eb5e2':
  Fix remote submix crash on null sink
2014-10-15 23:41:09 +00:00
Jean-Michel Trivi
793a854e45 Fix remote submix crash on null sink
The "remote submix" HAL uses a MonoPipe instance to "pipe" audio
  from the sink of this virtual device HAL to its source.
  The life-cycle of this pipe is:
  - creation when either the input or output stream is open
  - destruction when both input and output are closed.

Changes are:
Fix test for pipe destruction: destroy pipe when both
  input and output streams are NULL.
Count how many read errors went into the logs and cap them
  so as not to spam the logs when the pipe is not properly
  set up. Less 'I' logs, 'D' logs instead.
When opening input stream, check for non-null sink before
  checking if it's shutdown.

Bug 16653334
Bug 17111907

Change-Id: I634b4192b00f9b74a5109f42242423e9c8cb4c7c
2014-10-15 15:16:10 -07:00
Nick Vaccaro
6b82558129 am e914d696: Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliant
* commit 'e914d696a95a799bbcca221238a1874f995871ca':
  Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliant
2014-10-11 02:49:27 +00:00
Nick Vaccaro
e914d696a9 Report multihal is SENSORS_DEVICE_API_VERSION_1_3 compliant
Ignore calls to any HALs that are not 1_0 or 1_3 compliant.
Fix an unused parameter compiler warning.

Bug: 17645248
Change-Id: Ia50f7512dfe35f37973440bba84e1b1b177a7bd3
2014-10-10 16:02:26 -07:00
Paul McLean
69edc52bcb Merge "Support MONO and STERO USB inputs. Allow "dynamic" flag in audio_policy.conf." into lmp-mr1-dev 2014-09-23 23:08:11 +00:00
Jungshik Jang
1707637ed4 Remove MHL hal definition.
Bug: 17479050
Change-Id: I7e238e09e253d46a552b775b0483215f8f1ae512
2014-09-18 17:06:14 +09:00
Paul McLean
2cfd81bae0 Support MONO and STERO USB inputs. Allow "dynamic" flag in audio_policy.conf.
Bug 17526569

Change-Id: I64b00fd338eb937303b41608728a18341ee78820
2014-09-17 08:38:57 -07:00
Eric Laurent
253def9fa0 usb audio: implement microphone mute.
Bug: 17321604.
Change-Id: I8e3daf2636dfd5f85d990c0093c52c908064afac
2014-09-14 12:32:28 -07:00
Eino-Ville Talvala
b545983975 Camera HALs: Promote device HAL v3.2
And deprecate older HALs.

Bug: 17445920
Change-Id: I37a5e53fda3c93080e37ec848f84c702a2c9120b
2014-09-10 11:13:16 -07:00
Aravind Akella
110d2f2713 sensors.h documentation change.
i) on-change sensors should set maxDelay.
  ii) Drivers should hold a wake_lock till poll() is called
  the next time when delivering events from wake-up sensors.

Change-Id: I4b137843d5c857f04601618548306a710fbfbe5c
2014-09-05 14:50:07 -07:00
Tsuwei Chen
02516c78f3 Merge "Creates interface to dynamically configure GPS. Bug: 17110478 Change-Id: I2a053d02e3c198d519d6306809f81ff601169151" into lmp-dev 2014-09-02 17:01:23 +00:00
Tsuwei Chen
167d31f528 Creates interface to dynamically configure GPS.
Bug: 17110478
Change-Id: I2a053d02e3c198d519d6306809f81ff601169151
2014-08-30 00:16:14 +00:00
Griff Hazen
f0f67e6af9 Merge commit '38014a7c' into lmp-dev
Conflicts:
	include/hardware/sensors.h

Change-Id: I21517f717761af7f52c003d535e86059ebb75f05
2014-08-28 17:02:50 -07:00
Vinod Krishnan
38014a7c81 am 74279e3c: Adding information about the first activation
* commit '74279e3c23bd62c70d53098be91db85df5a68ece':
  Adding information about the first activation
2014-08-28 23:08:37 +00:00
Vinod Krishnan
74279e3c23 Adding information about the first activation
Change-Id: If5759749c5e6a88dcaf5ab600c9086b056c3908a
2014-08-28 15:25:13 -07:00
Paul McLean
0f519a9e5e Merge "Fix problem with dropouts with multiple USB audio streams." into lmp-dev 2014-08-28 20:44:42 +00:00
Paul McLean
c48cdc8ec0 Fixing non-playback on USB devices with support for MONO playback.
Bug 17136854

Change-Id: Ia0136fa8f9b4789d538b2dccb3f6071ae5062010
2014-08-28 09:16:39 -07:00
Paul McLean
2c6196f20c Fix problem with dropouts with multiple USB audio streams.
Bug 17136569

Change-Id: I94bdbe037533a3fd77f249fdd42f4d828d3bf87f
2014-08-28 07:59:03 -07:00
Aravind Akella
6edd4d605f Merge "Sensor HAL documentation fix." into lmp-dev 2014-08-22 17:54:51 +00:00
Aravind Akella
a7f2cda848 Sensor HAL documentation fix.
Change-Id: Ibc3f643a22163f734ba0ca912f011decf55d9bfa
2014-08-21 16:31:14 -07:00
Glenn Kasten
8f40bc5599 Merge "Quick hack fix for USB accessory audio support" into lmp-dev 2014-08-21 15:35:20 +00:00
Mike Lockwood
7de76b2d4d Quick hack fix for USB accessory audio support
tinyalsa fails to retrieve the correct value for the period count
from the f_audio_source driver and tries to use zero instead.
This wasn't a problem before because the usb audio HAL used hard coded values
that were compatible with the driver.

Bug: 16799652
Change-Id: I6f5b907a0699c58b071e9f419ed8e053a7d9dc77
2014-08-21 14:51:29 +00:00
Etienne Le Grand
772d85ad35 Some parameter renaming and comment update in sensors.h
bug: 16818625
Change-Id: Ifcda8cd4e80a7377a6b5b138b9c7a5a2275af153
2014-08-19 17:29:10 -07:00
Paul McLean
93d4e0db0e Fix problem with reloading config of new capture devices
with same card/device numbers.

Bug: 17012657
Change-Id: I7cb50aedc538d8c648e7f66c8e153cf47ce12577
2014-08-13 23:08:41 +00:00
Paul McLean
af5187efbd Fix problem with reloading config of new devices with same card/device numbers.
Bug 16981885

Change-Id: I65c6c418ee0d0f42c87379b614f64302d27f8e77
2014-08-12 13:57:10 -07:00
Zhijun He
9605e80e18 Merge "Camera2/3 HAL test: Update tet according createStream change" into lmp-dev 2014-08-11 17:09:03 +00:00