Bluetooth: Hack: Do not use power_save feature.
authorNick Pelly <npelly@google.com>
Thu, 4 Feb 2010 17:06:57 +0000 (09:06 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 8 Feb 2010 23:36:01 +0000 (15:36 -0800)
commitc09426ea439387637204ccebafd6cd7f02065e62
treee386e7087500f1630f20ae5d51da6db14559e35e
parentd7897fd1e9fb3a5df0740dc2dc45ec94ca0965f2
Bluetooth: Hack: Do not use power_save feature.

power_save is a feature to allow HID devices to control the sniff mode.
Unfortunately it also prevents us exiting sniff mode on some A2DP devices
that do not explicitly exit sniff mode themselves, resulting in skipping
audio.

Marcel is trying to finalize a setsockopt() API to control whether power_save
is enabled on a per socket basis. In the mean-time, turn off power_save for
Android, since we do not have official HID support, and this is causing
problems for A2DP which we do support.

(Note the power_save logic is reversed, 0 is on, 1 is off).

Change-Id: Ife4478055128b81669bf49308d2e2199e1aa11a1
Signed-off-by: Nick Pelly <npelly@google.com>
net/bluetooth/hci_conn.c