Commit graph

506 commits

Author SHA1 Message Date
Eino-Ville Talvala
e6a3c3c113 Camera2: Match updated camera_metadata methods.
Bug: 6243944

Change-Id: Ib691ef513b4811ca1290f0a9a4e3c1ce1e3f0945
2012-05-14 15:26:44 -07:00
Eino-Ville Talvala
567b4a24fa Substantial cleanup of camera2 HAL, and some initial unit tests
- Clean up const/struct usage in HAL
- Add user pointer to notify callback
- Revamp allocate_stream, now it picks its own ID.
- Much simpler stream interface
- Merged request/reprocess input queues
- Frame queue interface no longer a mirror of request queue
- Added triggers/notifications
- Added default request creation
- Lots of comments

Unit tests added:

- Lots of utility code to speed up test writing
- Basic open/close
- Capturing 1 raw buffer (request input, frame output, buffer output)
- Capturing a burst of 10 raw buffers

Bug: 6243944
Change-Id: I490bd5df81079a44c43d87b02c9a7f7ca251f531
2012-05-08 17:30:56 -07:00
Eino-Ville Talvala
984272d92e Add RAW_SENSOR to gralloc sample
Change-Id: I0621bd70896385c3d522d283a1be714f5f29df3b
2012-05-07 11:01:17 -07:00
Todd Poynor
3f86dbb657 am bcdb4cd3: hardware: Power HAL: Add POWER_HINT_INTERACTION
* commit 'bcdb4cd34b9c2a4a3ccebf0048137892e5586fe8':
  hardware: Power HAL: Add POWER_HINT_INTERACTION
2012-05-03 18:53:26 -07:00
Todd Poynor
bcdb4cd34b hardware: Power HAL: Add POWER_HINT_INTERACTION
Change-Id: I9b2c29eadc60e2bea2f01b3925ad6a8539ec2655
2012-05-03 16:04:41 -07:00
Jamie Gennis
4467a5e51f am 6b7adef0: hwcomposer: clarify vsync timestamp meaning
* commit '6b7adef0ef38f568099eab38d6865f402c92235b':
  hwcomposer: clarify vsync timestamp meaning
2012-04-30 13:49:10 -07:00
Jamie Gennis
6b7adef0ef hwcomposer: clarify vsync timestamp meaning
This change clarifies the meaning of the HWC vsync timestamp to specify that
the timestamp must be relative to the system monotonic clock.

Change-Id: I4386ce90511fd5b8f8e988917da637d84d86f026
2012-04-30 12:57:11 -07:00
Mathias Agopian
aeba023e68 am 5cb1de89: add version number to power HAL
* commit '5cb1de89a905dd13c858779d73721bbc36cd4be1':
  add version number to power HAL
2012-04-26 19:56:05 -07:00
Mathias Agopian
5cb1de89a9 add version number to power HAL
Change-Id: I6acf4523b5878565035ea6c85bddd58f9b20ef1b
2012-04-26 19:49:40 -07:00
Todd Poynor
a0d4e32a0d am 2f143fba: (-s ours) hardware: libhardware: Power HAL add power hints -- DO NOT MERGE
* commit '2f143fba74f6be91fe8805ef8bbdffe5b8ece8b4':
  hardware: libhardware: Power HAL add power hints -- DO NOT MERGE
2012-04-25 21:41:22 -07:00
Todd Poynor
2f143fba74 hardware: libhardware: Power HAL add power hints -- DO NOT MERGE
Change-Id: I8ab0376e4f5d8ef09d5b1062cbfbb30c30c5bb96
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2012-04-25 18:16:40 -07:00
Todd Poynor
1d1775bb4d hardware: libhardware: Power HAL add power hints
Change-Id: I8ab0376e4f5d8ef09d5b1062cbfbb30c30c5bb96
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2012-04-25 11:15:16 -07:00
Mike Lockwood
f7781bc9dd Merge "Update USB audio HAL to use API" 2012-04-24 16:51:00 -07:00
Mike Lockwood
46a9809e9c Update USB audio HAL to use API
Also don't clear card and device when out_set_parameters is called
to set other parameters.

Change-Id: I4feda9f6a2e76cb45bbc8a8f8256bb1760302707
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-04-24 16:46:24 -07:00
Mathias Agopian
eb67160b99 fix typo in documentation
Change-Id: I2c55034c25edd466180cd9c5718c2ad568aeedff
2012-04-24 15:42:37 -07:00
Eric Laurent
da4b0b26d1 rename audio policy output flags.
Change-Id: I965fa9bcba45f223f2f2cbc4adccfb5491414c8b
2012-04-18 13:58:44 -07:00
Eric Laurent
55786bcf3c audio: updated audio HAL device API
Modified open output and input stream functions to add new
parameters needed by audio HAL. Also grouped parameters
in a config structure for clarity.

Change-Id: I60832d8e5b5e4a48f209a6d83f5ca9c044be61f1
2012-04-17 16:02:48 -07:00
Eino-Ville Talvala
0c8e630ad6 Merge "Revise camera HAL 2, and add unit test skeleton." 2012-04-17 08:57:44 -07:00
Simon Wilson
19957a37a0 usbaudio: add initial usbaudio default HAL
Change-Id: I6e93b2512883f3697683a74cadb9a29113966bc0
2012-04-12 22:48:10 -07:00
Eino-Ville Talvala
fed0c0244b Revise camera HAL 2, and add unit test skeleton.
- Add missing method in stream_ops (set_buffers_geometry)

- Remove extra method in stream_ops (set_swap_interval)

- Document metadata queue protocol

- Change metadata queue methods to be set/get through function calls
  only, instead of a struct member in the HAL device ops.

- Change vendor extension tag query methods to be retrieved by a get
  call, instead of a struct member in the HAL device ops.

- Add basic gtest unit test skeleton, which currently just returns
  static info from all camera devices.

Change-Id: I94117097b0243023ad60638070cc7f0cefec18e6
2012-04-11 11:23:31 -07:00
Mathias Agopian
6d3fec70d8 improve hwc VSYNC documentation
Change-Id: I5820d8fa183701ebbc0a825cf27bd0004b47d62e
2012-04-10 21:22:28 -07:00
Eric Laurent
c65a2fe392 audio policy: load audio hw modules.
Added methods to audio_policy_service_ops to load an audio hw module.

Added methods to open an output or input stream on a particualr module.

Change-Id: Ia0618053bec9978c1b7d2a5f6c02b78209557256
2012-04-03 19:47:04 -07:00
Mathias Agopian
d126b910ab Merge "add support for VSYNC events in h/w composer HAL" 2012-04-03 19:10:25 -07:00
Eric Laurent
b934784bbe Merge "audio: added definitions for audio HAL modules" 2012-04-03 16:46:46 -07:00
Eric Laurent
431fc78c11 audio: added definitions for audio HAL modules
Change-Id: I16f8b42ab5de503d38086413b83e934ac9aa1f24
2012-04-03 16:01:17 -07:00
Mathias Agopian
b08d45dff6 add support for VSYNC events in h/w composer HAL
Change-Id: Ic19a41ae522a236f45957e50c792934d987b116a
2012-04-03 11:45:41 -07:00
Glenn Kasten
0cacd8d44b Update comments
Change-Id: I123d9baeceda13608cc01eda6a19e13822258dc0
2012-04-01 13:43:02 -07:00
Dima Zavin
e8da6bf1cc Merge "hardware: add some guidance on providing version defines" 2012-03-30 11:58:04 -07:00
Eino-Ville Talvala
e911e4c160 Merge "Add specific version number constants to Camera HAL." 2012-03-27 16:50:18 -07:00
Eino-Ville Talvala
ddc026e393 Add specific version number constants to Camera HAL.
These constants should be used by HAL implementations to indicate
which versions of the module and device APIs they support.

Change-Id: I4b6eae278481545694e6a1827833b5958c26720c
2012-03-27 16:15:25 -07:00
Dima Zavin
2fe3ae5ec9 hardware: add some guidance on providing version defines
Change-Id: I456cb209bc5d5eb739b6fd2e2f3e869caa363ff0
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-26 23:14:15 -07:00
James Dong
89c8a6df0e Merge "Fixed an incorrect path for the include header file in a comment" 2012-03-26 17:47:50 -07:00
Kenny Root
6be478050f Merge "keymaster: add flags for keymaster features" 2012-03-26 16:42:39 -07:00
James Dong
d0ca70d834 Fixed an incorrect path for the include header file in a comment
Change-Id: I9c6f76279b54c2de66a31f751afc9222c345eb47
2012-03-26 16:32:23 -07:00
Kenny Root
3c338f4731 keymaster: add flags for keymaster features
The first flag is something for the default implementation to use to
indicate that its keys are importable to hardware keymasters. This
allows easy migration from the default software implementation to
hardware implementations as they become available.

Change-Id: Ideb26a4b1ac91ca8c330a4fe4df323f028b2f855
2012-03-26 16:21:07 -07:00
Kenny Root
6c64e73772 Merge "Add delete_all to keymaster API" 2012-03-26 14:54:22 -07:00
Kenny Root
8ae65e7199 Add delete_all to keymaster API
In order to aid keymasters erase their memory efficiently, introduce new
delete_all API to tell keymasters to forget everything. This will be
triggered when keystore itself is told to reset.

Change-Id: I730375f1f32cd1ea0bf1fa38d5b1bec2f81ba492
2012-03-26 13:26:05 -07:00
Mathias Agopian
81c323dd54 improve HWC versioning
Change-Id: Ieb50629f23c0d2b7af12c5541a8278a0979d2ee4
2012-03-25 01:11:43 -07:00
Mathias Agopian
eb8fb50814 add support for setting the background color
this is a revision of the h/w composer API. This change
is binary backward compatible.

Change-Id: Id4cf43447594db9049f7e2c44ea08157ca725129
2012-03-24 15:29:07 -07:00
Kenny Root
caf62bd7fb Use frameworks/native copy of UniquePtr.h
Change-Id: Idfe46c057699b5f019f84e588bb8a9697e48236c
2012-03-22 16:33:37 -07:00
Eino-Ville Talvala
daacbf4016 Fix camera2.h header.
Change-Id: Ibcc93279da2180743d7bbe2561f2bf10879ae08e
2012-03-22 13:09:56 -07:00
Eino-Ville Talvala
7ace9aaed8 Merge "Reorganize camera HAL, and add versioning support." 2012-03-22 11:09:08 -07:00
Mike Lockwood
19a228cf0a Merge remote-tracking branch 'goog/ics-aah-exp'
empty -s ours merge

Change-Id: Idccc5a540d4d50ad529fe8d08a49fe55556dd9a8
2012-03-21 17:35:04 -07:00
Eino-Ville Talvala
8bf364ef20 Reorganize camera HAL, and add versioning support.
Includes a draft of camera device HAL 2.

Change-Id: I5f56a8c54a33d0ca039360185822a9c22436cab8
2012-03-21 17:34:33 -07:00
Dima Zavin
02a5801af9 hardware: add hardware_device_api_version() macro
Change-Id: I79c4d65f6bab227364d5f271df9bd7bc565857c2
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-21 13:35:49 -07:00
Dima Zavin
b0bef12f79 Merge "libhardware: add current HAL version and a module version macro" 2012-03-21 10:44:43 -07:00
Dima Zavin
65820e4d7a libhardware: add current HAL version and a module version macro
Change-Id: I30c67a6c5231f8b270b57f78bd6322c201b90859
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-20 23:23:06 -07:00
Dima Zavin
fb0e64e40b Merge changes Ie543d3a9,I3e33e5a9
* changes:
  hardware: provide temp version defines for source compatibility
  hardware: rename version_major/minor to module/hal api version
2012-03-20 12:32:17 -07:00
Dima Zavin
8dc4e710c0 hardware: provide temp version defines for source compatibility
This allows all the existing modules to have source level
compatibility until they are fixed to use the new field names.

Since the binary compatibility has not been altered, we do not
need to force all the implementors to rev their version numbers.

This change should be reverted when all the clients have been updated.

Change-Id: Ie543d3a972d8abe03ca5123e3000966f048d1771
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-20 12:30:20 -07:00
Dima Zavin
2b57780d88 hardware: rename version_major/minor to module/hal api version
The previous names and documentation were not clear as to how the
version fields should be used. As a result, they were often either
unused or used improperly.

It became clear that there were two version fields necessary. One
to version the implementing module and the other to version the
hw_module_t interface itself.

This change renames version_major and version_minor members of
hw_module_t to module_api_version and hal_api_version. It also
provides in-depth descriptions for all the fields and clarifies
the purpose of the version field in hw_device_t structure.

Change-Id: I3e33e5a922cdc17c5e3b1c30a00e211394f18e86
Signed-off-by: Dima Zavin <dima@android.com>
2012-03-20 12:30:16 -07:00