Commit Graph

5 Commits

Author SHA1 Message Date
Christopher R. Palmer
5df5bd5278 consumerir: Dynamically grow an appropriately sized buffer
The IR pulse sequences are written to a local buffer to be
passed to the kernel.

Previously, we doubled the fixed size buffer (from 1K to 2K)
to work around a crash that was occurring for long sequences.

Another crash has been found when using Smart IR Remote and the
POWER function of the TX P42X10E remote by Panasonic (TV category).

Rather than double the size again and wait for another counter-
example, dynamically allocate the buffer and grow it as needed
to handle any IR sequence.

Change-Id: Id4fb799d8a5ad4242e04a68e6cc6436a14f4d2d0
2014-11-05 20:41:48 -05:00
Tony Layher
aac6c49894 IR: Increase Buffer size
Fixes JIRA CYAN-5239

Change-Id: I6d6a2cd48f9b7b485099c84517cab9e7b08d1e3a
2014-09-19 19:29:58 -04:00
Christopher R. Palmer
a22ea508a6 msm8974: consumerir: Convert transmit input from ms to pulses
According to:

 https://developer.android.com/reference/android/hardware/ConsumerIrManager.html#transmit%28int,%20int[]%29

the pattern is supposed to be in ms.  Apparently Samsung and HTC
in versions 4.4.2 and earlier of Android were treating this as
the number of pulses instead of ms.  This is what our HAL is
supporting because it mimic'ed what the vendors were doing.

However, we should switch to the correct spec of the pattern (ms)
and eventually this will cause apps to converge on the right
patterns.

Currently, this change will break half the existing apps and cause
the other half of the apps to stop being broken and to start
working.

Change-Id: I87cedcc8e0b85d7b96ed63c7d4f82cc53ecb4ecb
2014-08-25 16:47:50 -04:00
Ethan Chen
1b982908b9 msm8974-common: Clean up Samsung device inheritance
* Remove duplicate keylayouts
* Move media_codecs to platform tree
* Unconditionally build consumerir
* Move postrecoveryboot to qcom-common
* Move common msm8974 HAL/packages to platform tree
* Move wifi config to device trees
* Use nested cm.dependencies
* Generate firmware symlinks at compile time
* Move egl.cfg to msm8974-common
* Move QCOM_BSP to platform repos
* Move telephony permissions to device
* Move reboot to download option to qcom-common
* Move common overlay options to qcom-common

Change-Id: I493dcf24269e852e7819c045dc3afc5c47da176a
2014-08-01 13:58:26 -07:00
Christopher R. Palmer
fd9f888009 msm8974-common: Add consumerir from hlte
Change-Id: Id30ef56e7e9e6dbd1e82579f277d7aaec2b6afda
2014-05-19 14:31:45 -04:00