Commit graph

506 commits

Author SHA1 Message Date
Jamie Gennis
66b0002115 am 29ead941: Gralloc: add a usage bit for video encoding
* commit '29ead941b377cb87bcc7fe48208b96d84d649d43':
  Gralloc: add a usage bit for video encoding
2011-11-22 12:16:15 -08:00
Jamie Gennis
29ead941b3 Gralloc: add a usage bit for video encoding
This change adds a new Gralloc usage bit to indicate that a buffer will
be passed to the HW video encoder.

Change-Id: I75c3fc514906e5b18fb60345a2d9c5a606403633
2011-11-21 17:45:29 -08:00
Mathias Agopian
71212e3fca improve h/w composer documentation
Change-Id: Ia3f47c1750f5a436037e4391d6744d63639ee099
2011-11-21 17:35:15 -08:00
Jean-Baptiste Queru
66ae214f90 am 4ef5e2e5: Merge from AOSP
* commit '4ef5e2e5376043e433e01b61d219dd2444719893':
  improve sensor HAL documentation
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
2011-11-18 02:37:25 -08:00
Jean-Baptiste Queru
4ef5e2e537 Merge from AOSP
Change-Id: I41161514ae072b40bf4c94a9392007de1e9db937
2011-11-17 16:00:20 -08:00
Mathias Agopian
df0db69c7a am fb410365: improve hw composer documentation
* commit 'fb410365ca67d36d4c81d7826712c6a05437612f':
  improve hw composer documentation
2011-11-17 07:48:25 -08:00
Mathias Agopian
7dbfb96eaf am fb410365: improve hw composer documentation
* commit 'fb410365ca67d36d4c81d7826712c6a05437612f':
  improve hw composer documentation
2011-11-16 18:15:35 -08:00
Mathias Agopian
fb410365ca improve hw composer documentation
Change-Id: I39363e37417991b9853309154d6691240e706acf
2011-11-16 16:05:56 -08:00
Mathias Agopian
c72c5311c1 improve sensor HAL documentation
Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda
2011-11-16 13:16:32 -08:00
Mathias Agopian
552c9f7e64 change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
the current API / Documentation would not allow to set the
rate of "non continuous" sensors.

Most sensors HAL implementation already support changing the rate
(technically they're not compliant with the doc), so it's easier
to change the doc (and also allows more control).

Change-Id: I4ad324ddc3b569ec61770b3cf927c06f8ff4af4e
2011-11-16 13:16:28 -08:00
Mathias Agopian
f04ab0706b am e9eaf372: improve sensor HAL documentation
* commit 'e9eaf3721dd715901d669df6488b1ecd63b1e634':
  improve sensor HAL documentation
2011-11-10 01:11:15 +00:00
Mathias Agopian
8e8c1776bf am e9eaf372: improve sensor HAL documentation
* commit 'e9eaf3721dd715901d669df6488b1ecd63b1e634':
  improve sensor HAL documentation
2011-11-09 18:58:57 +00:00
Mathias Agopian
e9eaf3721d improve sensor HAL documentation
Change-Id: If2c1613902de6ed0e6cae8fe4755948c0f623bda
2011-11-08 12:20:21 -08:00
Martijn Coenen
a65be35d31 resolved conflicts for merge of 45065f97 to ics-aah
Change-Id: I1e76a495d1ff76a49bfa091f63ed5bfc1d4f49c9
2011-11-07 08:47:30 -08:00
Martijn Coenen
1892e4ebd1 am 45065f97: Merge "New NFC HAL." into ics-mr1
* commit '45065f97354b4411d99dd57b348f758c6dbb5479':
  New NFC HAL.
2011-11-07 16:22:45 +00:00
Martijn Coenen
45065f9735 Merge "New NFC HAL." into ics-mr1 2011-11-07 08:19:18 -08:00
Mathias Agopian
77b9ddbdb9 am 15879d89: change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
* commit '15879d89af055f6cd651a94125a3802b526c3d66':
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
2011-11-05 19:33:17 +00:00
Mathias Agopian
f1802c8091 am 15879d89: change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
* commit '15879d89af055f6cd651a94125a3802b526c3d66':
  change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
2011-11-04 19:15:26 +00:00
Martijn Coenen
44ae5b2476 New NFC HAL.
First implementation of a NFC HAL. This implementation doesn't
offer a generic NFC device HAL (yet), but offers typed interfaces
for different NFC controllers. Currently only the PN544 is supported.

Change-Id: I3ac04dcd767fb12a433edbe88ec7068eb1930a57
2011-11-04 09:05:22 -07:00
Mathias Agopian
15879d89af change sensor HAL documentation to allow setting polling rate for "non continuous" sensors
the current API / Documentation would not allow to set the
rate of "non continuous" sensors.

Most sensors HAL implementation already support changing the rate
(technically they're not compliant with the doc), so it's easier
to change the doc (and also allows more control).

Change-Id: I4ad324ddc3b569ec61770b3cf927c06f8ff4af4e
2011-11-01 19:17:58 -07:00
Ed Heyl
3e9dd0a0a2 keep previous history after reset to mr1 plus aah changes (ics-aah-wip) 2011-10-28 19:05:54 +00:00
Mike J. Chen
71f274c6f1 Modifications to audio_hal for Android@Home Tungsten.
This is a squashed merge from master-tungsten of the following changes:

Commit f560da61a5e128ca9f82f7fe939afcf1f09188c7
Author: John Grossman <johngro@google.com>
Date:   Thu Aug 11 15:34:55 2011 -0700

    Fill out a missing entry in the audio HAL function table.

    The entry for get_initial_master_volume was missing from the non-legacy audio
    HAL and needs to be filled out.  Also fix up the order of the comments
    describing the get_initial_master_volume method.

    Change-Id: I87d5415ef92611497a6dab4c657fc00367c4d80b

commit cea82facb63fd237a4ea6fb770605fcb500850ff
Author: Jason Simmons <jsimmons@google.com>
Date:   Thu Jun 16 14:24:24 2011 -0700

    Define a replacement for getSampleDelta that returns a DMA start time and count of samples queued

    Change-Id: I2d13f57b5a8c5b97fb3aa0a90834ce91c56864ef

commit 60a9acd7eee470a8d870218e8be618bfa3be15a5
Author: Mike J. Chen <mjchen@google.com>
Date:   Tue Jun 7 09:13:23 2011 -0700

    Add Tungsten extensions to new Audio HAL interface.

    Change-Id: I3ea4676d4b7d2afd78a5a7a7003ad5c437276d05
    Signed-off-by: Mike J. Chen <mjchen@google.com>

Change-Id: Id9d0d2fb2fb28e2868f4eb8d8fbf86a975c47ceb
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
2011-10-28 10:28:11 -04:00
Mike J. Chen
ce59ece246 Add a HAL representing a system-wide local time counter.
This is a squashed merge from master-tungsten of the following changes:

commit 9def1ae65f6b4d6a8fdec147fdcd34f22f08174a
Author: John Grossman <johngro@google.com>
Date:   Fri Aug 12 11:47:20 2011 -0700

    Change the signature of set_local_slew.

    Changed the definition of the slew function in the local time HAL to take an
    int16 instead of an int32 and to use the full range of the int instead of
    attempting to imply any particular PPM range.

    Change-Id: Ia67f50e77f1fe674a63ec69460e830d1191ef5a0

commit afab51327453d1bfc7423f8ce7a28933d8fc49b2
Author: John Grossman <johngro@google.com>
Date:   Mon Jun 27 17:29:07 2011 -0700

    Remove "primary" from the local_time HAL.

    Interface instances are a pattern which should only be used by audio.  Remove
    its use from the local_time HAL.

    Change-Id: If4c458cf16a02d9dc63c04185111ae793fc57801

commit 1c26e59a66e75ccb31027f42183aaa32bde6e456
Author: John Grossman <johngro@google.com>
Date:   Fri Jun 17 14:19:24 2011 -0700

    Refactor the local/common clock services.

    This change is one of a set of 5 changes made to different repositories.  Look
    for this comment in all of them.

    Refactor the local/common clock services in tungsten to match android best
    practice.  Notable changes include

    + The kernel no longer knows anything about common time.  Common time has been
      moved completely up into user land.  This has an impact on the accuracy of the
      timesync debugging code, and the netfilter assisted approach to network based
      timesync is going to have to be modified.
    + The timesync driver used by A@H is now just local time driver.
    + The kernel no longer needs access to the linear transform math code, and it
      has been removed.
    + A new HAL has been introduced to expose the concept of local time to the
      system.
    + A non-slewable stub implementation of the local time HAL based on
      CLOCK_MONOTONIC has been added.
    + The TungstenTime library has been eliminated.  Its functionality has been
      distributed among the common time binder service, the local time hal and the
      linear transform utility code.
    + All clients of the old TungstenTime library have been changed to be clients of
      the binder service, the hal and the utility code.
    + The reset_tt utilities have been removed, they no longer have a purpose in the
      system.
    + more progress has been made in eliminating the word "tungsten" from the code.

    Things left to do include
    + Finish getting rid of tungsten from the time service.
    + Move the time service into the framework; AudioFlinger's new timed mode
      depends on it and the service cannot continue to live in vendor tungsten.

    Change-Id: I39843b94f9b6d13f63b22145a2edcafe4ca87349

Change-Id: Ifbc8c4c28c1cf45a762dd4fb00f8dffccd7efe94
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
2011-10-28 10:28:06 -04:00
Ed Heyl
530211b161 undo reset to ics-mr1 until we have a better method 2011-10-26 21:53:25 +00:00
Ed Heyl
3f6886df15 reset to ics-mr1, but keep history 2011-10-26 18:50:22 +00:00
Steve Block
1e28bb3734 am 7567eba2: (-s ours) Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
* commit '7567eba2afa94abee27965d68c29b31d79b19e60':
  Rename LOGV(_IF) to ALOGV(_IF)  DO NOT MERGE
2011-10-26 04:48:31 -07:00
Steve Block
7567eba2af Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGE
See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I8772e564a55981aad2a9cf7cb9245367fcf57fe8
2011-10-25 18:16:10 +01:00
David 'Digit' Turner
be1d7317e5 am cf209523: am 7bd7dd5d: am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
* commit 'cf209523884350a3ad6af5840f1b0ae2dde9b98b':
  emulator: Add <hardware/qemu_pipe.h> header
2011-09-27 12:38:16 -07:00
David 'Digit' Turner
cf20952388 am 7bd7dd5d: am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
* commit '7bd7dd5d49e21c66c83618cb9f85ef43af29e441':
  emulator: Add <hardware/qemu_pipe.h> header
2011-09-27 12:36:16 -07:00
Mathias Agopian
7d68d150f7 am cc3f6a34: improve sensor HAL test
* commit 'cc3f6a345b0cc356b22f9ea748505ce8a705d358':
  improve sensor HAL test
2011-09-26 19:50:23 -07:00
David 'Digit' Turner
7bd7dd5d49 am 3c935eda: resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
* commit '3c935eda2dcd96eda70da6367d705b3b081f6524':
  emulator: Add <hardware/qemu_pipe.h> header
2011-09-23 11:17:34 -07:00
David 'Digit' Turner
3c935eda2d resolved conflicts for merge of 33fddf0c to gingerbread-plus-aosp
Change-Id: I8720ca884f326b661e30b51c4cf1cfe31c1ac579
2011-09-23 20:13:07 +02:00
Mathias Agopian
cc3f6a345b improve sensor HAL test
Change-Id: Id5e22ae2b9cb3bf71ec235a2ec6bb4319d0389da
2011-09-18 15:21:33 -07:00
David 'Digit' Turner
33fddf0ca9 emulator: Add <hardware/qemu_pipe.h> header
This header is required by our GLES emulation guest code to be able
to access the emulator services provided through the /dev/qemu_pipe
special device.

Change-Id: Ia9782256048d7340237f3e1d18d7452dd815e561
2011-09-16 17:11:49 +02:00
Mike J. Chen
619febb15c Modifications to audio_hal for Android@Home Tungsten.
This is a squashed merge from master-tungsten of the following changes:

Commit f560da61a5e128ca9f82f7fe939afcf1f09188c7
Author: John Grossman <johngro@google.com>
Date:   Thu Aug 11 15:34:55 2011 -0700

    Fill out a missing entry in the audio HAL function table.

    The entry for get_initial_master_volume was missing from the non-legacy audio
    HAL and needs to be filled out.  Also fix up the order of the comments
    describing the get_initial_master_volume method.

    Change-Id: I87d5415ef92611497a6dab4c657fc00367c4d80b

commit cea82facb63fd237a4ea6fb770605fcb500850ff
Author: Jason Simmons <jsimmons@google.com>
Date:   Thu Jun 16 14:24:24 2011 -0700

    Define a replacement for getSampleDelta that returns a DMA start time and count of samples queued

    Change-Id: I2d13f57b5a8c5b97fb3aa0a90834ce91c56864ef

commit 60a9acd7eee470a8d870218e8be618bfa3be15a5
Author: Mike J. Chen <mjchen@google.com>
Date:   Tue Jun 7 09:13:23 2011 -0700

    Add Tungsten extensions to new Audio HAL interface.

    Change-Id: I3ea4676d4b7d2afd78a5a7a7003ad5c437276d05
    Signed-off-by: Mike J. Chen <mjchen@google.com>

Change-Id: I09f3756d12a1ce4f9af39610ed857890742a72df
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
2011-08-25 16:18:09 -07:00
Mike J. Chen
643b5c6744 Add a HAL representing a system-wide local time counter.
This is a squashed merge from master-tungsten of the following changes:

commit 9def1ae65f6b4d6a8fdec147fdcd34f22f08174a
Author: John Grossman <johngro@google.com>
Date:   Fri Aug 12 11:47:20 2011 -0700

    Change the signature of set_local_slew.

    Changed the definition of the slew function in the local time HAL to take an
    int16 instead of an int32 and to use the full range of the int instead of
    attempting to imply any particular PPM range.

    Change-Id: Ia67f50e77f1fe674a63ec69460e830d1191ef5a0

commit afab51327453d1bfc7423f8ce7a28933d8fc49b2
Author: John Grossman <johngro@google.com>
Date:   Mon Jun 27 17:29:07 2011 -0700

    Remove "primary" from the local_time HAL.

    Interface instances are a pattern which should only be used by audio.  Remove
    its use from the local_time HAL.

    Change-Id: If4c458cf16a02d9dc63c04185111ae793fc57801

commit 1c26e59a66e75ccb31027f42183aaa32bde6e456
Author: John Grossman <johngro@google.com>
Date:   Fri Jun 17 14:19:24 2011 -0700

    Refactor the local/common clock services.

    This change is one of a set of 5 changes made to different repositories.  Look
    for this comment in all of them.

    Refactor the local/common clock services in tungsten to match android best
    practice.  Notable changes include

    + The kernel no longer knows anything about common time.  Common time has been
      moved completely up into user land.  This has an impact on the accuracy of the
      timesync debugging code, and the netfilter assisted approach to network based
      timesync is going to have to be modified.
    + The timesync driver used by A@H is now just local time driver.
    + The kernel no longer needs access to the linear transform math code, and it
      has been removed.
    + A new HAL has been introduced to expose the concept of local time to the
      system.
    + A non-slewable stub implementation of the local time HAL based on
      CLOCK_MONOTONIC has been added.
    + The TungstenTime library has been eliminated.  Its functionality has been
      distributed among the common time binder service, the local time hal and the
      linear transform utility code.
    + All clients of the old TungstenTime library have been changed to be clients of
      the binder service, the hal and the utility code.
    + The reset_tt utilities have been removed, they no longer have a purpose in the
      system.
    + more progress has been made in eliminating the word "tungsten" from the code.

    Things left to do include
    + Finish getting rid of tungsten from the time service.
    + Move the time service into the framework; AudioFlinger's new timed mode
      depends on it and the service cannot continue to live in vendor tungsten.

    Change-Id: I39843b94f9b6d13f63b22145a2edcafe4ca87349

Change-Id: Ib264c992d564b99ef7c7847a788e4fa7f5e101b4
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: John Grossman <johngro@google.com>
2011-08-25 09:55:32 -07:00
Eric Laurent
78d2c69af4 audio policy: register effect CPU on enable
Added a method on audio policy interface to register
audio effect CPU usage on enable and unregister on disable
instead of when the effect is created or destroyed.

Change-Id: Iee20bf70fee7302f817ec4c7d9bf7640caca2e95
2011-08-11 08:48:25 -07:00
Jamie Gennis
2f94535daa Merge "Gralloc: add a HWComposer usage bit" 2011-08-10 12:54:46 -07:00
David Turner
54c673d30a am 73bff7f3: am bce402a8: Merge "qemu_pipe: fix Mac build error."
* commit '73bff7f3fddf182bc51a0e20096b76d9e0d877ad':
  qemu_pipe: fix Mac build error.
2011-08-10 12:21:16 -07:00
Vladimir Chtchetkine
3e7bfaede6 am abe47190: am 079ff13b: Merge "Enable connection to QEMUD via pipe."
* commit 'abe471909d749c7430409c00bdbc39bbf8ff0c43':
  Enable connection to QEMUD via pipe.
2011-08-10 12:21:03 -07:00
Jamie Gennis
4b560d5563 Gralloc: add a HWComposer usage bit
This change adds a new Gralloc usage bit to indicate that the Gralloc
buffer being allocated will be passed to the HWComposer HAL module.

Change-Id: If901f886cb22fc8379811898db3a380a61c0e442
2011-08-10 11:41:52 -07:00
David Turner
73bff7f3fd am bce402a8: Merge "qemu_pipe: fix Mac build error."
* commit 'bce402a8fadf27b07b164b0468e27bb9b6de79e6':
  qemu_pipe: fix Mac build error.
2011-08-09 10:05:32 -07:00
David Turner
bce402a8fa Merge "qemu_pipe: fix Mac build error." 2011-08-09 03:54:00 -07:00
David Turner
554566e1ae qemu_pipe: fix Mac build error.
The <hardware/qemu_pipe.h> header was missing an include
that causes the code under development/tools/emulator/opengl
to fail to compile on OS X.

You need to define BUILD_EMULATOR_OPENGL=true in your
environment, otherwise this code doesn't get built yet by default.

Change-Id: Ia1b48c0ab84f493f3c9f95030d9165961069fb6e
2011-08-09 10:45:19 +02:00
Vladimir Chtchetkine
abe471909d am 079ff13b: Merge "Enable connection to QEMUD via pipe."
* commit '079ff13b07b41d49c4d2f961ba6131960bd81c89':
  Enable connection to QEMUD via pipe.
2011-08-08 13:18:48 -07:00
Vladimir Chtchetkine
079ff13b07 Merge "Enable connection to QEMUD via pipe." 2011-08-08 12:59:17 -07:00
Eric Laurent
70e8110fcf audio HAL: add support for TTY mode selection
Change-Id: I680e008a091e31e6c0b11adb26f6b232829baacb
2011-08-07 10:05:40 -07:00
Vladimir Chtchetkine
39e2630dd9 Enable connection to QEMUD via pipe.
With the new model, we will try to connect client via pipe first, and only if
the pipe connection is not available we will fall back to the socket connection.

Change-Id: I7112ff3cb63e1f82a004b80b9ae579d97e15e029
2011-08-05 10:17:39 -07:00
Mike Lockwood
ee43a308b6 am 20013279: am 4306ca7d: Merge "GPS: added update_network_availability to AGpsRilInterface"
* commit '20013279f3dacec0b1d6c2844213d762b469cf98':
  GPS: added update_network_availability to AGpsRilInterface
2011-08-04 07:53:33 -07:00
Mike Lockwood
20013279f3 am 4306ca7d: Merge "GPS: added update_network_availability to AGpsRilInterface"
* commit '4306ca7d446c26752ecd9f724590487d68a27f10':
  GPS: added update_network_availability to AGpsRilInterface
2011-08-04 07:52:14 -07:00