libion: JB migration

Reconcile the usespace libion library with kernel.
This change requires kernel ion headers to be updated:
  http://review.omapzoom.org/18390        kernel/omap
  https://android.dal.design.ti.com/7121  bionic

Change-Id: I502215d66f98439673a159661f4177989121a952
Signed-off-by: Daniel Levin <dendy@ti.com>
init: support udev events from CRDA

correctly parse the COUNTRY env variable and pass it to the crda daemon
when a CRDA related messages is received

Change-Id: Ibb64c72d383cf4487f68b47b1502d31897987d27
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Grant sdcard_r to ril-daemon.

Bug: 6793799
Change-Id: Ife23c98c30d7b08479d75798c7075005bf281119
FM Tx: Defined FM Tx definition in Android framework.

FM Tx output device defined in Android framework.
Ported from ICS Ic81943 patch

Change-Id: Ifa17b2930ce064f553cf2816e825281ae269b477
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
Merge "FM Tx: Defined FM Tx definition in Android framework." into p-jb-release
FM Rx: Defined FM definition in Android Framework

FM Rx input device defined in Android framework.
Ported from ICS I767f1d patch.

Change-Id: Ide75c36b13a0105c9058e58e45a7d9928e67214d
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
Merge "FM Rx: Defined FM definition in Android Framework" into p-jb-release
Camera: Adds burst camera message type

Change-Id: I5ae041ae6062367abd8f8f59879846ae4ef3f72b
Signed-off-by: Solaiyappan Saravanan <saravanan.s@ti.com>
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Vicky Martinez-DeFrain <a0869710@ti.com>
Signed-off-by: Daniel Levin <dendy@ti.com>
Add RAW burst message

Change-Id: I5b42c66485151d1ba9eea8fbe58d334c2a892c24
Signed-off-by: Tyler Luu <tluu@ti.com>
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Signed-off-by: Daniel Levin <dendy@ti.com>
libnl_2: Add nl_socket_set_cb API

Add missing API nl_socket_set_cb in libnl_2
(needed fot latest calibrator and iw tool)

Change-Id: Ib1a4f7dc2a547d85190af706f35c64f94e4f966d
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Ido Reis <idor@ti.com>
Add new AID_FMRADIO group for FM radio service

As of now since there is no support of FM radio in Android
framework there is no permission group allocated for it.

This patch adds a new AID_FMRADIO group so that the FM Radio
services can use this group ID.
Cherry-oick from ICS to JB.

Change-Id: I9a0688b7cd51809b9ca64f4c835c9ceb7a97ebe5
Signed-off-by: Manjunatha Halli <x0130808@ti.com>
Adding *_IN_USB_HEADSET device in the audio enum.

Porting from ICS to JB.

Change-Id: I5f25b98e377a490cd3c634540d31cc25384f0a60
Signed-off-by: Karimuddin sayed <sayed.karimuddin@ti.com>
Signed-off-by: Sergii Iegorov <x0155539@ti.com>
Merge "Add new AID_FMRADIO group for FM radio service" into p-jb-release
Avoid zombies on androidscreencast

[Cherry-picked from ICS to JB]
When using a third party screen capture program called androidscreencast
(http://code.google.com/p/androidscreencast/) to get the framebuffer of
the device, there are tons of screencap zombie processes got left behind.
The issue is also mentioned here:
http://code.google.com/p/android/issues/detail?id=22836.

The cause of the issue is that adbd spawns off screencap processes,
and these child processes were not waited to be finished.
This change fixes the issue.

Change-Id: I4596b6e4d1d1dd9d76896fe79138dee4084d8406
Signed-off-by: Yuriy Zabroda <yuriy.zabroda@ti.com>
Fastboot: Modify to work with rom usb

We need this patch to workaround ES1.0 OMAP5 ROM USB
limitations. This patch needs to be reverted when we
move to OMAP5 ES2.0.

Note: this patch will not affect omap4 fastboot
functionality.

Change-Id: I20b4bb4196643a89d726b9b3925db2047c7637dd
Signed-off-by: Christina Warren <cawarren@ti.com>
adb: Fix detection for SuperSpeed devices

SS devices will have SS ep companion descriptors
that needs to be accounted. This patch addreses
this issue.

This patch depends on the following two patches:
http://review.omapzoom.org/25628
http://review.omapzoom.org/25632

Change-Id: I0868dd7606d0bb893f47001ae19c155120b233c6
Signed-off-by: Moiz Sonasath <m-sonasath@ti.com>
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
adb: fix build time include pathes

Add valid include path to list of C includes for building adb.

Change-Id: I0be12faf1f63c8afa24396bebfd940e717d79bd0
Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
Native Window changes to support buffer layout setting

Android native window interface is extended to
support buffer layout configuration. For this
purpose where added new function native_window_set_buffers_layout.

Ported from ICS

Change-Id: I60cf9931f71de52ce254a04b28e6a89af9eb952c
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Signed-off-by: Andriy Chepurnyy <x0155536@ti.com>
Signed-off-by: Daniel Levin <dendy.ua@gmail.com>
Merge changes I5b42c664,I5ae041ae into p-jb-release

* changes:
  Add RAW burst message
  Camera: Adds burst camera message type
init: better filter country events for CRDA

Filter country events for crda with modalias paramter as well.

Filtering CRDA events by subsystem as "platform" and action as "change" is very generic.
In JB VSYNC events also haapen with same subsystem and action.

Change-Id: I708881787fffe5d23408ab17ab5e1e424a033c27
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>