Commit Graph

396 Commits

Author SHA1 Message Date
Eric Laurent
c682bc3e4d am ecc9989f: am 0d93253c: am dd65e389: Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
Merge commit 'ecc9989f2c8394cad87ad4ebcb4f6b9f7706861c'

* commit 'ecc9989f2c8394cad87ad4ebcb4f6b9f7706861c':
  Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
2009-11-12 23:23:55 -08:00
Eric Laurent
d64d406883 am 0d93253c: am dd65e389: Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
Merge commit '0d93253c31af46df60283329daa44db74f81dde4' into eclair-mr2-plus-aosp

* commit '0d93253c31af46df60283329daa44db74f81dde4':
  Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
2009-11-12 23:18:20 -08:00
Eric Laurent
b89ce69b11 am dd65e389: Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
Merge commit 'dd65e38951ed174f9d3d34886795438440f7eea0' into eclair-mr2

* commit 'dd65e38951ed174f9d3d34886795438440f7eea0':
  Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
2009-11-12 23:10:22 -08:00
Eric Laurent
b0987a90f9 Fix issue 2242614: Wired headset not recognized: bogus "state" in ACTION_HEADSET_PLUG broadcast.
Removed platform specific devices from the list of devices listed in AudioSystem.
2009-11-12 12:18:31 -08:00
Mathias Agopian
f754afe950 am 90626684: am bcd5273d: am 072b5f0d: Merge change I42e2860a into eclair
Merge commit '90626684d776a54dfeb3fade05f0b356a52e880a'

* commit '90626684d776a54dfeb3fade05f0b356a52e880a':
  should help [2223746] qsd8k MDP locks up, logs show copyBits failed (Connection timed out) in Passion camera zoom level 1
2009-11-11 17:39:54 -08:00
Eric Laurent
f5286df0dd am 274334cc: am d285af56: am 956f7ba5: Workaround for issue 2229040: [Passion] Audio driver stuck when changing input routing while recording is active.
Merge commit '274334ccea85996b5b23eebf8111b6e55d20b162'

* commit '274334ccea85996b5b23eebf8111b6e55d20b162':
  Workaround for issue 2229040: 	[Passion] Audio driver stuck when changing input routing while recording is active.
2009-11-11 17:39:51 -08:00
Mathias Agopian
2376dcc6f6 am bcd5273d: am 072b5f0d: Merge change I42e2860a into eclair
Merge commit 'bcd5273d6aa77cc961261202c8c9eee950ddc8b7' into eclair-mr2-plus-aosp

* commit 'bcd5273d6aa77cc961261202c8c9eee950ddc8b7':
  should help [2223746] qsd8k MDP locks up, logs show copyBits failed (Connection timed out) in Passion camera zoom level 1
2009-11-11 17:28:53 -08:00
Eric Laurent
51bc3712bd am d285af56: am 956f7ba5: Workaround for issue 2229040: [Passion] Audio driver stuck when changing input routing while recording is active.
Merge commit 'd285af5636ac54b37da3b4048b17855ac9c32a42' into eclair-mr2-plus-aosp

* commit 'd285af5636ac54b37da3b4048b17855ac9c32a42':
  Workaround for issue 2229040: 	[Passion] Audio driver stuck when changing input routing while recording is active.
2009-11-11 17:28:49 -08:00
Mathias Agopian
619e0358c9 am 072b5f0d: Merge change I42e2860a into eclair
Merge commit '072b5f0df424b2a0c50cdb7b605d3a749dcac7cf' into eclair-mr2

* commit '072b5f0df424b2a0c50cdb7b605d3a749dcac7cf':
  should help [2223746] qsd8k MDP locks up, logs show copyBits failed (Connection timed out) in Passion camera zoom level 1
2009-11-11 17:16:09 -08:00
Eric Laurent
419618500a am 956f7ba5: Workaround for issue 2229040: [Passion] Audio driver stuck when changing input routing while recording is active.
Merge commit '956f7ba5ee0f087c91b5fefd2718dae30f8c1e29' into eclair-mr2

* commit '956f7ba5ee0f087c91b5fefd2718dae30f8c1e29':
  Workaround for issue 2229040: 	[Passion] Audio driver stuck when changing input routing while recording is active.
2009-11-11 17:16:05 -08:00
Android (Google) Code Review
e961f58156 Merge change I42e2860a into eclair
* changes:
  should help [2223746] qsd8k MDP locks up, logs show copyBits failed (Connection timed out) in Passion camera zoom level 1
2009-11-11 16:45:41 -08:00
Mathias Agopian
ef686c51fd should help [2223746] qsd8k MDP locks up, logs show copyBits failed (Connection timed out) in Passion camera zoom level 1
make sure to return an error when mdp limits are exceeded
2009-11-11 16:28:21 -08:00
Eric Laurent
e210a8ccce Workaround for issue 2229040: [Passion] Audio driver stuck when changing input routing while recording is active.
This change avoids the audio driver lockup when changing audio input path configuration. It does not solve the root cause in audio driver or dsp.
When applied lockups observed in the folling use cases are eliminated:
- use back mic for camcorder recording (issue 2194140)
- switch input device when headset is plugged in or out during record (issue 2226658).

Also removes warnings.

	Submitted on behalf of H.K Chen <hk_chen@htc.com>
2009-11-11 10:49:32 -08:00
Iliyan Malchev
aab6275034 am 1d902f52: am 8495e338: am d74adff0: Merge change I08516fe5 into eclair
Merge commit '1d902f5294b6c476e81f2ba666bdd4fc6b6d2700'

* commit '1d902f5294b6c476e81f2ba666bdd4fc6b6d2700':
  libaudio-qsd8k: update a1026.h header and improve firmware-loading code
2009-11-10 18:15:58 -08:00
Iliyan Malchev
e085b18294 am 8495e338: am d74adff0: Merge change I08516fe5 into eclair
Merge commit '8495e3383d78fab7b281dc8f1f1233e07cfea21b' into eclair-mr2-plus-aosp

* commit '8495e3383d78fab7b281dc8f1f1233e07cfea21b':
  libaudio-qsd8k: update a1026.h header and improve firmware-loading code
2009-11-10 18:12:21 -08:00
Iliyan Malchev
63100efee5 am d74adff0: Merge change I08516fe5 into eclair
Merge commit 'd74adff01615816857b075325ffa01eb8a58e854' into eclair-mr2

* commit 'd74adff01615816857b075325ffa01eb8a58e854':
  libaudio-qsd8k: update a1026.h header and improve firmware-loading code
2009-11-10 18:07:07 -08:00
Android (Google) Code Review
a6675bb910 Merge change I08516fe5 into eclair
* changes:
  libaudio-qsd8k: update a1026.h header and improve firmware-loading code
2009-11-10 15:20:02 -08:00
Eric Laurent
5939d8ca05 am 4ad4ab29: am 5fd5d902: am f06a9889: Merge change I108ada59 into eclair
Merge commit '4ad4ab296ba6bb90322ee2780e05a33c67883089'

* commit '4ad4ab296ba6bb90322ee2780e05a33c67883089':
  Fix issue 2226658: Audio path not updated when a headset is plugged or unplugged while recording.
2009-11-09 22:48:05 -08:00
Eric Laurent
097d3433bf am 5fd5d902: am f06a9889: Merge change I108ada59 into eclair
Merge commit '5fd5d902775cbdb0e9498c6708b99316de8e3e17' into eclair-mr2-plus-aosp

* commit '5fd5d902775cbdb0e9498c6708b99316de8e3e17':
  Fix issue 2226658: Audio path not updated when a headset is plugged or unplugged while recording.
2009-11-09 22:45:23 -08:00
Eric Laurent
2dd94cf938 am f06a9889: Merge change I108ada59 into eclair
Merge commit 'f06a9889288034e9bd3e54fbae3bb48ad7bd3f89' into eclair-mr2

* commit 'f06a9889288034e9bd3e54fbae3bb48ad7bd3f89':
  Fix issue 2226658: Audio path not updated when a headset is plugged or unplugged while recording.
2009-11-09 22:42:16 -08:00
Android (Google) Code Review
05a1ef9930 Merge change I108ada59 into eclair
* changes:
  Fix issue 2226658: Audio path not updated when a headset is plugged or unplugged while recording.
2009-11-09 22:39:39 -08:00
Mathias Agopian
3f3f01f33f am 54dc5807: am 97772930: am b7f7f038: enable mdp debugging on error, also check for invalid inputs
Merge commit '54dc5807fe74b1d94e9c9ef52dd6929200aa0b80'

* commit '54dc5807fe74b1d94e9c9ef52dd6929200aa0b80':
  enable mdp debugging on error, also check for invalid inputs
2009-11-09 20:24:34 -08:00
Mathias Agopian
d6580e4a75 am 97772930: am b7f7f038: enable mdp debugging on error, also check for invalid inputs
Merge commit '977729303ce0a5609b3ddbd36e6801d8397ff5c4' into eclair-mr2-plus-aosp

* commit '977729303ce0a5609b3ddbd36e6801d8397ff5c4':
  enable mdp debugging on error, also check for invalid inputs
2009-11-09 20:21:46 -08:00
Mathias Agopian
8e72981f86 am b7f7f038: enable mdp debugging on error, also check for invalid inputs
Merge commit 'b7f7f038529135a5c21234ae89e4b87a1c56854a' into eclair-mr2

* commit 'b7f7f038529135a5c21234ae89e4b87a1c56854a':
  enable mdp debugging on error, also check for invalid inputs
2009-11-09 20:19:58 -08:00
Mathias Agopian
9e8b8a119d enable mdp debugging on error, also check for invalid inputs 2009-11-09 20:15:50 -08:00
Jean-Michel Trivi
1f873a83c3 am 92286d74: am 8d4f9726: am ba36d4fa: When configuring the A10026 for microphone input outside of a call, always use the A1026_xx_RECEIVER paths. This prevents the use of the A1026_xx_SPEAKER paths for voice reco modes for which the gain is too high.
Merge commit '92286d749dbc594c223ca25f9c294082088c7b38'

* commit '92286d749dbc594c223ca25f9c294082088c7b38':
  When configuring the A10026 for microphone input outside of a call,
2009-11-09 16:31:34 -08:00
Jean-Michel Trivi
28e09dd3dc am 5175b4b6: am 9bf3ce7d: am 63af0f3c: Use new acoustic parameters when recording in voice recognition mode or for camcorder mode.
Merge commit '5175b4b6992568d92e0476e9d6bdb98cf4e126a3'

* commit '5175b4b6992568d92e0476e9d6bdb98cf4e126a3':
  Use new acoustic parameters when recording in voice recognition mode
2009-11-09 16:31:31 -08:00
Jean-Michel Trivi
83dff8fae9 am 8d4f9726: am ba36d4fa: When configuring the A10026 for microphone input outside of a call, always use the A1026_xx_RECEIVER paths. This prevents the use of the A1026_xx_SPEAKER paths for voice reco modes for which the gain is too high.
Merge commit '8d4f9726fcf28989a8e6d6cce6b1ef8fa464a160' into eclair-mr2-plus-aosp

* commit '8d4f9726fcf28989a8e6d6cce6b1ef8fa464a160':
  When configuring the A10026 for microphone input outside of a call,
2009-11-09 16:25:48 -08:00
Jean-Michel Trivi
53121efd2a am 9bf3ce7d: am 63af0f3c: Use new acoustic parameters when recording in voice recognition mode or for camcorder mode.
Merge commit '9bf3ce7d445eb3fc4043bc59d6c1adc16f3f8f32' into eclair-mr2-plus-aosp

* commit '9bf3ce7d445eb3fc4043bc59d6c1adc16f3f8f32':
  Use new acoustic parameters when recording in voice recognition mode
2009-11-09 16:25:44 -08:00
Jean-Michel Trivi
b1ab17ff35 am ba36d4fa: When configuring the A10026 for microphone input outside of a call, always use the A1026_xx_RECEIVER paths. This prevents the use of the A1026_xx_SPEAKER paths for voice reco modes for which the gain is too high.
Merge commit 'ba36d4fa33072ef14183365fffd289762c26905e' into eclair-mr2

* commit 'ba36d4fa33072ef14183365fffd289762c26905e':
  When configuring the A10026 for microphone input outside of a call,
2009-11-09 16:16:41 -08:00
Jean-Michel Trivi
cbff02d902 am 63af0f3c: Use new acoustic parameters when recording in voice recognition mode or for camcorder mode.
Merge commit '63af0f3cbd387e97bcaca82d1e22787c224d6430' into eclair-mr2

* commit '63af0f3cbd387e97bcaca82d1e22787c224d6430':
  Use new acoustic parameters when recording in voice recognition mode
2009-11-09 16:16:38 -08:00
Iliyan Malchev
84abafaf65 libaudio-qsd8k: update a1026.h header and improve firmware-loading code
-- new a1026.h kernel header that contains just the user-space API and is
   sanitized through bionic/libc/kernel/tools/clean_header.py
-- AudioHardware.cpp:
	-- replace vr_mode with vr_mode_enabled, and use 0 and 1 instead of
	   A1026_VR_MODE_DISABLED/ENABLED, which is not defined in the kernel
	   header;
	-- in doA1026_init(), replace a fread() of 1 byte with a read that as
	   much as possible from the firmware file in as few as possible passes
	   before we call into the kernel
	-- Replace the size of the on-stack f/w buffer with A1026_MAX_FW_SIZE,
	   which now comes from the kernel header
	-- Fix up some signed-unsigned comparison warnings on mBluetoothIdTx

Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-11-09 16:06:57 -08:00
Eric Laurent
920fea9258 Fix issue 2226658: Audio path not updated when a headset is plugged or unplugged while recording.
Modified AudioPolicyManager::setDeviceConnectionState() so that the device on active audio input is updated when a device is connected or disconnected.
2009-11-09 11:57:59 -08:00
Jean-Michel Trivi
af1701fa98 When configuring the A10026 for microphone input outside of a call,
always use the A1026_xx_RECEIVER paths.
This prevents the use of the A1026_xx_SPEAKER paths for voice reco
modes for which the gain is too high.
2009-11-08 18:50:57 -08:00
Jean-Michel Trivi
2cf344031b Use new acoustic parameters when recording in voice recognition mode
or for camcorder mode.
2009-11-08 14:03:59 -08:00
Eric Laurent
9657f9387e am 04e3b469: am 679e97fb: am 255bdedb: Fix issue 2243808: Audio input routing broken.
Merge commit '04e3b4696297b59a5fb13409d8a51b7447fd8cf5'

* commit '04e3b4696297b59a5fb13409d8a51b7447fd8cf5':
  Fix issue 2243808: Audio input routing broken.
2009-11-06 08:57:50 -08:00
Eric Laurent
9ee4a5ffff am 679e97fb: am 255bdedb: Fix issue 2243808: Audio input routing broken.
Merge commit '679e97fb32c2816bc8d978e8cb6b508b974db0c2' into eclair-mr2-plus-aosp

* commit '679e97fb32c2816bc8d978e8cb6b508b974db0c2':
  Fix issue 2243808: Audio input routing broken.
2009-11-06 08:48:27 -08:00
Eric Laurent
9f93f2655b am 255bdedb: Fix issue 2243808: Audio input routing broken.
Merge commit '255bdedb2d7ebf4b14690776ff652df1de97fe95' into eclair-mr2

* commit '255bdedb2d7ebf4b14690776ff652df1de97fe95':
  Fix issue 2243808: Audio input routing broken.
2009-11-06 08:28:17 -08:00
Eric Laurent
420a78df14 Fix issue 2243808: Audio input routing broken.
The wrong key was used when removing the voice recognition mode from parameters list after handling it in AudioStreamInMSM72xx::setParameters() causing the set routing parameter to be removed and ignored.
2009-11-06 03:02:05 -08:00
Jean-Michel Trivi
ffe1375add am c59618f9: am 2bc9e006: am ee9fa1a5: Fix typo in AudioPolicyManager log for voice recognition mode. This fixes a build error when the log for AudioPolicyManager for QSD8K is enabled.
Merge commit 'c59618f9d5f0ba671f9e7b5445e2dd43083aeced'

* commit 'c59618f9d5f0ba671f9e7b5445e2dd43083aeced':
  Fix typo in AudioPolicyManager log for voice recognition mode.
2009-11-05 20:47:43 -08:00
Jean-Michel Trivi
8c3a625568 am 2bc9e006: am ee9fa1a5: Fix typo in AudioPolicyManager log for voice recognition mode. This fixes a build error when the log for AudioPolicyManager for QSD8K is enabled.
Merge commit '2bc9e0067f0e9ed7c40ebea98ead8e6962b32bc2' into eclair-mr2-plus-aosp

* commit '2bc9e0067f0e9ed7c40ebea98ead8e6962b32bc2':
  Fix typo in AudioPolicyManager log for voice recognition mode.
2009-11-05 20:37:59 -08:00
Jean-Michel Trivi
2e71954441 am ee9fa1a5: Fix typo in AudioPolicyManager log for voice recognition mode. This fixes a build error when the log for AudioPolicyManager for QSD8K is enabled.
Merge commit 'ee9fa1a5e85cb4a4bffea3bca901fa828f7012fb' into eclair-mr2

* commit 'ee9fa1a5e85cb4a4bffea3bca901fa828f7012fb':
  Fix typo in AudioPolicyManager log for voice recognition mode.
2009-11-05 20:27:38 -08:00
Eric Olsen
2dcd0d7e3f am 59a10928: am da6818d3: am dbef679f: Merge change Id27d9e35 into eclair
Merge commit '59a10928801282ca6aeb195a0d9c8228136fd62a'

* commit '59a10928801282ca6aeb195a0d9c8228136fd62a':
  Update lights to support the change in parameters passed by the framework
2009-11-05 19:31:21 -08:00
Jean-Michel Trivi
8da4c9c3ed am af0348b9: am 79ad38d0: am 4bcd5b16: Use new A1026 header to us 1026 presets that match the driver. Update record configuration to use those presets.
Merge commit 'af0348b94bcf190f73eec870f2d0106ba45e5fa2'

* commit 'af0348b94bcf190f73eec870f2d0106ba45e5fa2':
  Use new A1026 header to us 1026 presets that match the driver.
2009-11-05 19:31:16 -08:00
Eric Olsen
0967f4c9f0 am da6818d3: am dbef679f: Merge change Id27d9e35 into eclair
Merge commit 'da6818d3785571964bb5bdedf7afa18900deb9ea' into eclair-mr2-plus-aosp

* commit 'da6818d3785571964bb5bdedf7afa18900deb9ea':
  Update lights to support the change in parameters passed by the framework
2009-11-05 19:21:58 -08:00
Jean-Michel Trivi
b8ac5557c5 am 79ad38d0: am 4bcd5b16: Use new A1026 header to us 1026 presets that match the driver. Update record configuration to use those presets.
Merge commit '79ad38d0b62ad2abfc7bedcb07f478594ebd3b76' into eclair-mr2-plus-aosp

* commit '79ad38d0b62ad2abfc7bedcb07f478594ebd3b76':
  Use new A1026 header to us 1026 presets that match the driver.
2009-11-05 19:21:53 -08:00
Eric Olsen
6423acfc2b am dbef679f: Merge change Id27d9e35 into eclair
Merge commit 'dbef679fccd8d44881642564c54baafa41da6c55' into eclair-mr2

* commit 'dbef679fccd8d44881642564c54baafa41da6c55':
  Update lights to support the change in parameters passed by the framework
2009-11-05 19:10:05 -08:00
Jean-Michel Trivi
8ea88d0389 Fix typo in AudioPolicyManager log for voice recognition mode.
This fixes a build error when the log for AudioPolicyManager for
QSD8K is enabled.
2009-11-05 17:58:40 -08:00
Android (Google) Code Review
9059d84a60 Merge change Id27d9e35 into eclair
* changes:
  Update lights to support the change in parameters passed by the framework
2009-11-05 19:23:58 -05:00
Eric Olsen
1220be4e5e Update lights to support the change in parameters passed by the framework
Signed-off-by: Eric Olsen <eolsen@android.com>
2009-11-05 15:32:32 -08:00