Commit Graph

380 Commits

Author SHA1 Message Date
tytung 2ef9a48295 USB: gadget: added f_accessory gadget driver for android USB accesories and applied all patches. (credit to tytung)
https://github.com/android/kernel_msm/commit/5d9d8625e39f815673dedea353f39edccabb1fac and so on.
2011-11-16 00:31:12 +08:00
tytung aabb2fb32d usb: msm72k_udc: Fix handling of OUT packets on ep0 with length > 0
The gadget level completion function was getting called for the ACK packet
instead of the data packet, making it impossible to read the data from the host.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-11-16 00:29:34 +08:00
tytung 89f23f9c1c htcleo: fixed an issue that the USB device is not recognized after backporting the 2.6.35 USB drivers.
Either CONFIG_USB_ANDROID_DIAG or CONFIG_USB_ANDROID_SERIAL causes this issue.
2011-11-16 00:25:39 +08:00
tytung 70f8304d7a usb: gadget: Backport Android drivers from 2.6.35 for HD2 by tytung.
Completely breaks compatibility with HTC Sense, but is needed for Android 2.3.
References:
https://github.com/CyanogenMod/htc-kernel-msm7x30/commit/3362439a1df2aa7e900dd825bde0670ded7d0cc3
https://github.com/CyanogenMod/htc-kernel-msm7x30/commit/03c08c01c60b4220158c484127ba5b9aa9d67c81
https://github.com/android/kernel_msm/commit/3fa64c7f7fc44d88bfbb6cb925882017850c0c69
2011-11-15 23:13:34 +08:00
tytung 330c350fdb net: New iface_stat module to monitor persistent network stats.
Adding a new module that tracks the number of bytes/packets transfered by a network interface, even after the interface has been removed.
This is relevant to track the total data usage in mobile devices whose interfaces are added and removed quite frequently (WiFi, Bluetooth, 3G,..).

Monitoring is done only for devices that are configured with a valid IP address (check to exclude virtual/loopback/tunnel interfaces).

Change-Id: I8ac642af1990433ebd0784e8dbd72bf0714b5bf6
Signed-off-by: Ashish Sharma <ashishsharma@google.com>

Included a little modification for the out-of-date HD2 .32 kernel.
2011-11-15 23:00:32 +08:00
tytung 42b00bc76a htcleo: updated htcleo_defconfig to tytung_r14_callrec 2011-11-10 01:47:03 +08:00
tytung 6333fda476 htcleo: updated htcleo_defconfig to tytung_r14 2011-11-10 01:32:06 +08:00
tytung 6d2048e7da drivers: video: msm: fixed the color banding issue. (Credit to marc1706)
https://github.com/marc1706/cm-on-wince-htc/commit/dfe41d02cac454e3e58c583cd4fa0c0825160d1f
2011-11-10 01:31:07 +08:00
tytung dc9dd2b9a1 htcleo: updated to tytung_r13_callrec 2011-11-05 00:50:54 +08:00
tytung cedba87f03 htcleo: updated to tytung_r13 2011-11-05 00:30:34 +08:00
tytung 95a83e17c2 htcleo: compiled as modules: alsa-mix-htc-leo.ko and alsa-pcm-htc-leo.ko. 2011-11-01 01:32:40 +08:00
tytung 13c4a30c18 sound: ALSA: htcleo: try to fix the sound crash. 2011-11-01 01:31:54 +08:00
tytung 63c3709b91 sound: htcleo: added support for ALSA
http://gitorious.org/linux-on-wince-htc/linux_on_wince_htc/commit/a2653ab6d52676a960b5290c30746f88b4fa452c
2011-11-01 00:32:16 +08:00
tytung 8ebc201e13 Sound: ALSA: htcleo: permit to load the driver as module
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
2011-11-01 00:16:40 +08:00
tytung facbe114ed msm: ajust the QDSP6 audio driver for the newer htc leo ALSA driver
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
2011-11-01 00:09:14 +08:00
tytung e7f4d881c0 ALSA: Add new ALSA driver for QDSP6 sound system
This driver works on the htc leo.

The driver was written by Cotulla

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
2011-10-31 23:53:43 +08:00
tytung 0aab481de3 msm: Add HTC auto white balance calibration driver 2011-10-31 01:02:44 +08:00
tytung eeabf2c38c htcleo: updated to tytung_r12.4 2011-10-01 13:15:18 +08:00
tytung 71715e042d msm: cpu: enable 128MHz 2011-10-01 13:12:46 +08:00
tytung 0e74412bfe htcleo: updated to tytung_r12.3 2011-09-29 23:43:29 +08:00
tytung 64b3392b72 bluetooth: updated bluetooth stack 2011-09-29 23:42:22 +08:00
tytung 4da1d6cab6 htcleo: updated to tytung_r12.2 2011-09-29 00:35:48 +08:00
tytung 0f2738a1ee htcleo: updated to tytung_r12.1 2011-09-29 00:19:53 +08:00
tytung 92f2f11dd5 Revert "bluetooth: updated bluetooth stack"
This reverts commit eb94bc60a6.
2011-09-29 00:18:46 +08:00
tytung 6e0cc9a888 Revert "USB: gadget: f_accessory: Add new gadget driver for android USB accesories."
This reverts commit bcd275a3ef.
2011-09-29 00:17:56 +08:00
tytung bcd275a3ef USB: gadget: f_accessory: Add new gadget driver for android USB accesories. 2011-09-24 19:31:58 +08:00
tytung a11a1a886e htcleo: updated htcleo_defconfig to tytung_r12 version. 2011-09-11 14:05:23 +08:00
tytung 36b925848c drivers: net: Added HTC Official kineto_gan.c for WiFi Calling. 2011-09-10 18:27:07 +08:00
tytung f3bf007056 htcleo: wifi: remove the old support for wifi.mac=... from kernel cmdline. 2011-09-09 00:49:58 +08:00
tytung 9c8917c035 htcleo: wifi: Load the real MAC address from SPL if running SD build on WM.
Thank for Savan's help.
Refer to https://gitorious.org/2-6-32-photon/testing/commit/3c64a1c16fd17ba892e76170cd54b9719dd72c37
2011-09-08 00:36:00 +08:00
tytung c26ad4782d qdsp6: add missing code. 2011-09-04 16:55:04 +08:00
tytung 4d83e05864 htcleo: remove support for specific htcleo.acdb file to improve the booting speed when htcleo.acdb is not present. 2011-08-29 22:13:23 +08:00
tytung ca26744fe2 htcleo: audio: add proc file interface /proc/mic_level and fix mic gain (Credits to mdebeljuh and jdivic)
Apply the diff file from http://forum.xda-developers.com/showpost.php?p=17031938&postcount=97
Disable debug output and fix typo by tytung.

Usage: echo 'device_id level' > /proc/mic_level
Level range: 0-1000; -1 use level from acdb
Current levels (device_id):
HANDSET (0): -1
SPKR_PHONE (1): -1
HEADSET (2): -1
TTY_HEADSET (3): -1
BT_SCO (4): -1
2011-08-29 22:07:47 +08:00
tytung 343845b70a htcleo: updated htcleo_defconfig to tytung_r11 version. 2011-08-22 00:09:55 +08:00
tytung cc7e778762 htcleo: changed unique WiFi address by using IEEE Standards 00:23:76:XX:XX:XX for HTC. -- http://standards.ieee.org/cgi-bin/ouisearch?00-23-76 2011-08-19 00:49:38 +08:00
tytung f6c36f2d66 msm: camera: Clean up during open failure. 2011-08-19 00:48:31 +08:00
tytung e04e3db5d9 msm: add wakeup lag fix for AUO panels. (credits to xda members mdebeljuh and jdivic) 2011-08-18 00:05:19 +08:00
tytung 6ca79cd6f1 usb: gadget: Add RNDIS (Remote Network Driver Interface Specification) for supporting native USB Tethering. 2011-08-17 23:59:31 +08:00
tytung bdfeaacf04 htcleo: sent missing AT commands to fix RIL on NAND boot.
We cannot load ril wrapper library (libhtc_ril_wrapper.so) if we want to load GAN RIL (libganril.so) to support T-Mobile WiFi Calling (UMA).
So I fix RIL on NAND boot in kernel, not via ril wrapper library.
2011-04-30 21:53:42 +08:00
tytung d0fb339c5f q6audio: audio boost 2011-04-12 00:16:35 +08:00
tytung 8f470e6b2d htcleo: fixed Bluetooth MAC address to board device dependend one. (i.e. unique Bluetooth address)
Use IEEE Standards 00:23:76:YY:YY:YY for HTC. -- http://standards.ieee.org/cgi-bin/ouisearch?00-23-76
2011-04-09 01:56:44 +08:00
tytung 028bb98fc1 audio: added Two-way call recording (Credit to avs333)
Applied snq-'s modified patch below and fixed the compilation error on HD2 by tytung
http://forum.xda-developers.com/showpost.php?p=12316760&postcount=154
2011-03-29 00:09:00 +08:00
tytung eb94bc60a6 bluetooth: updated bluetooth stack 2011-03-26 13:07:29 +08:00
tytung 839936cbf9 Revert "genirq: pm: Fix the enable ordering in resume"
This reverts commit 43b7c2a243.
2011-03-26 13:02:07 +08:00
tytung a22bca12d1 Revert "netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values"
This reverts commit 895493dad6.
2011-03-26 13:01:49 +08:00
tytung 1b9449e9a4 Fixed Bluetooth 60mA battery drain
Based on Trilu's patch http://forum.xda-developers.com/showthread.php?t=1007774
Removed some debug and unnecessary code, and added some missing code by tytung.
Thanks to Trilu for finally fixing the BT problem.
Thanks to Charansingh for the work he has done on the BT problem.
2011-03-25 23:15:05 +08:00
tytung ea113caeb1 Revert "msm: audio: 8k: Send ACDB data after the PREPARE stage of device switch"
This reverts commit b46eec7adc.
2011-03-24 23:23:23 +08:00
tytung 9717a238a2 Revert "msm: audio: 8k: Send ACDB configuration during device switch"
This reverts commit 520bef6caf.
2011-03-24 23:22:55 +08:00
Jan Engelhardt 895493dad6 netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values
commit 9ef0298a8e5730d9a46d640014c727f3b4152870 upstream.

Like many other places, we have to check that the array index is
within allowed limits, or otherwise, a kernel oops and other nastiness
can ensue when we access memory beyond the end of the array.

[ 5954.115381] BUG: unable to handle kernel paging request at 0000004000000000
[ 5954.120014] IP:  __find_logger+0x6f/0xa0
[ 5954.123979]  nf_log_bind_pf+0x2b/0x70
[ 5954.123979]  nfulnl_recv_config+0xc0/0x4a0 [nfnetlink_log]
[ 5954.123979]  nfnetlink_rcv_msg+0x12c/0x1b0 [nfnetlink]
...

The problem goes back to v2.6.30-rc1~1372~1342~31 where nf_log_bind
was decoupled from nf_log_register.

Reported-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>,
  via irc.freenode.net/#netfilter
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-03-23 01:43:17 +08:00
Abhijeet Dharmapurikar 43b7c2a243 genirq: pm: Fix the enable ordering in resume
In suspend interrupts are disabled from 0 to NR_IRQ, in resume interrupts
should be enabled in reverse order.

Enabling parent or summary interrupts before enabling child interrupts
causes the handler of the child interrupt to run even before it is
enabled. Usually the genirq handler does the correct thing of masking
the interrupt and additionally marking the interrupt IRQ_PENDING if its
an edge triggered interrupt. However the nested handler
(handle_nested_irq()) simply ignores the interrupt causing a loss of it.

Not calling the action of an interrupt, especially if it marked wakeup,
causes the system to incorrectly go back to suspend immediately.

Change-Id: Ica30c10a975a4a7b41b97b4f21250dac80335b2b
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2011-03-23 01:41:36 +08:00