588 Commits

Author SHA1 Message Date
Eric Laurent
77e8236cd3 Issue 2071329: audio track is shorter than video track for video capture on sholes
Add API to retrieve number of frames dropped by audio input kernel driver.

Submitted on behalf of Masaki Sato <masaki.sato@motorola.com>
2010-02-26 03:04:56 -08:00
Eric Laurent
7738c014af am 3df4850c: am b26d493d: Fix issue 2459650.
Merge commit '3df4850c0bc7c1c4591ac594b3c1540c2edd93a8'

* commit '3df4850c0bc7c1c4591ac594b3c1540c2edd93a8':
  Fix issue 2459650.
2010-02-22 11:19:56 -08:00
Eric Laurent
ea83a3150d am b26d493d: Fix issue 2459650.
Merge commit 'b26d493deaa9897cc6f34577aa5c9c1ff0655129' into eclair-plus-aosp

* commit 'b26d493deaa9897cc6f34577aa5c9c1ff0655129':
  Fix issue 2459650.
2010-02-22 11:13:17 -08:00
Eric Laurent
ea53b07e8b Fix issue 2459650.
Modify input path for TTY VCO device from TTY_HEADSET_MIC to SPKR_PHONE_MIC.

Submitted on behalf of HK chen <HK_Chen@htc.com>
2010-02-22 08:50:12 -08:00
Mathias Agopian
a5ffced80a add support for YCbCr (as opposed to YCrCb) to copybit 2010-02-17 18:02:17 -08:00
Jaikumar Ganesh
af7751fbff Merge "Fix issue 2440226: Car dock volume synchronization." 2010-02-17 09:16:07 -08:00
Mathias Agopian
f238b9e88c temporary hack to map the correct yuv format to the current (broken) mdp constants 2010-02-16 19:44:06 -08:00
Mathias Agopian
48000e415a fix [2444483] gralloc size for YUV formats 2010-02-16 14:04:36 -08:00
Eric Laurent
97045a5a91 Fix issue 2440226: Car dock volume synchronization.
Force stream volume to maximum when playing over A2DP output and
connected to car dock.
2010-02-16 06:11:46 -08:00
Jean-Michel Trivi
1bcceb0300 Merge "Only close the file descriptor for A1026 control after it was successfully opened." 2010-02-12 13:10:14 -08:00
Jean-Michel Trivi
565cda57d4 Only close the file descriptor for A1026 control after it was
successfully opened.
2010-02-12 09:42:49 -08:00
Mathias Agopian
68260700db split libsurfaceflinger_client and libcamera_client out of libui 2010-02-10 16:23:33 -08:00
Eric Laurent
444050dada am e93aca53: am 6727fbd4: Additional corrections for AudioHardware:
Merge commit 'e93aca535c64c9be9564e218fb83b6bbd1b99975'

* commit 'e93aca535c64c9be9564e218fb83b6bbd1b99975':
  Additional corrections for AudioHardware:
2010-02-10 09:01:51 -08:00
Eric Laurent
4fcd76bde8 am 6727fbd4: Additional corrections for AudioHardware:
Merge commit '6727fbd4be7d7cd0acfb55b7461f9d9a23225f60' into eclair-plus-aosp

* commit '6727fbd4be7d7cd0acfb55b7461f9d9a23225f60':
  Additional corrections for AudioHardware:
2010-02-10 08:56:06 -08:00
Eric Laurent
baa059dc44 Additional corrections for AudioHardware:
- Fix error in getACDB() when reading battery temperature:
Return value of get_batt_temp() has changed and calling code must be corrected.

- Fix handling of echo cancellation and noise reduction for car kits:
doAudioRouteOrMute() should not force SND_DEVICE_BT_EC_OFF sound device if
current device is SND_DEVICE_CARKIT.

Submitted on behalf of HK Chen <HK_Chen@htc.com>
2010-02-10 04:49:45 -08:00
Eric Laurent
742cb4f019 am 2be1045f: am 6af540e6: Fix issue 2422322 again.
Merge commit '2be1045fd92ee1998a90f49ce3d335dfc5d95289'

* commit '2be1045fd92ee1998a90f49ce3d335dfc5d95289':
  Fix issue 2422322 again.
2010-02-09 10:35:05 -08:00
Eric Laurent
fee0b3751f am 6af540e6: Fix issue 2422322 again.
Merge commit '6af540e6c360750623644c6b25e3d97590990694' into eclair-plus-aosp

* commit '6af540e6c360750623644c6b25e3d97590990694':
  Fix issue 2422322 again.
2010-02-09 10:31:59 -08:00
Eric Laurent
4dc376fc19 Fix issue 2422322 again.
Correct merge error in previous commit ec78ad65a1110fe007c3bdaba824f66bbfe522e3: all changes sent by HTC were not included.
2010-02-09 09:51:58 -08:00
Iliyan Malchev
39cc1f343e am 833d7fb8: am e7af7ee4: libaudio-qsd8k: enable separate in-call TTY settings
Merge commit '833d7fb8e415a0908228b9d05c6221b96c601d6c'

* commit '833d7fb8e415a0908228b9d05c6221b96c601d6c':
  libaudio-qsd8k: enable separate in-call TTY settings
2010-02-09 09:32:29 -08:00
Iliyan Malchev
63e560401b am e7af7ee4: libaudio-qsd8k: enable separate in-call TTY settings
Merge commit 'e7af7ee40e27869a0cbbe4a5c91cbe6719fdfd44' into eclair-plus-aosp

* commit 'e7af7ee40e27869a0cbbe4a5c91cbe6719fdfd44':
  libaudio-qsd8k: enable separate in-call TTY settings
2010-02-09 09:26:01 -08:00
Jean-Michel Trivi
c4938a960f Fix A1026 configuration bugs
- in doAudience_A1026_Control(): if setting a new path ID on the A1026
 has failed several times, the A1026 will be reset by a call to
 doA1026_init(). However after a reset, the file descriptor for the
 A1026 configuration will be invalid (-1), so the device needs to
 be reopened for the configuration to be successfully reapplied
 after a reset.
- in setParameters(): after setting the noise suppression param,
 the A1026 file descriptor is closed, and needs to be reset to a
 negative value, as this is used in other places in the code to
 indicate it's closed.
2010-02-09 09:17:24 -08:00
Eric Laurent
6121b241ad Fix issue 2276684 Kernel audio driver should fully support AUDIO_SET_CONFIG.
This change is the user space half of the modification allowing to adapt the input and output
buffer size to the sampling rate. This allows for similar latencies for all sampling rates
with a buffer duration of around 20ms.
2010-02-09 04:56:00 -08:00
Iliyan Malchev
6052637fe6 libaudio-qsd8k: enable separate in-call TTY settings
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-02-08 15:58:37 -08:00
Eric Laurent
d8fa6e65a7 am c3e56b57: am ec78ad65: Partial fix 2422322: [Passion#VZW] audio issues found with release CL24761.
Merge commit 'c3e56b578fea50f956253bbede16157e53392859'

* commit 'c3e56b578fea50f956253bbede16157e53392859':
  Partial fix 2422322: [Passion#VZW] audio issues found with release CL24761.
2010-02-05 16:25:59 -08:00
Eric Laurent
64d1160940 am f3fcb795: am 04b67c8c: Merge "Fix issue 2418435: Device is rebooted after pairing with A2DP/Bluetooth and made a call to other phone." into eclair
Merge commit 'f3fcb7952818bddefda84b49f0ec5a550effffcf'

* commit 'f3fcb7952818bddefda84b49f0ec5a550effffcf':
  Fix issue 2418435: Device is rebooted after pairing with A2DP/Bluetooth and made a call to other phone.
2010-02-05 16:24:18 -08:00
The Android Open Source Project
ebc9c82276 am 88457c5c: am 3530ef81: reconcile main tree with open-source eclair
Merge commit '88457c5c5d4abdf0f99f19612db5d29c1f45ffa1'

* commit '88457c5c5d4abdf0f99f19612db5d29c1f45ffa1':
  android-2.1_r1 snapshot
2010-02-05 14:26:00 -08:00
Eric Laurent
d3e127cdcc am ec78ad65: Partial fix 2422322: [Passion#VZW] audio issues found with release CL24761.
Merge commit 'ec78ad65a1110fe007c3bdaba824f66bbfe522e3' into eclair-plus-aosp

* commit 'ec78ad65a1110fe007c3bdaba824f66bbfe522e3':
  Partial fix 2422322: [Passion#VZW] audio issues found with release CL24761.
2010-02-05 09:50:53 -08:00
Eric Laurent
6c9e41a01b Partial fix 2422322: [Passion#VZW] audio issues found with release CL24761.
This Change fixes issues 1 and 2.1 reported by HTC.

Submitted on behalf of HK Chen <HK_Chen@htc.com>
2010-02-05 09:43:36 -08:00
Eric Laurent
9cb3de7e54 am 04b67c8c: Merge "Fix issue 2418435: Device is rebooted after pairing with A2DP/Bluetooth and made a call to other phone." into eclair
Merge commit '04b67c8c9fadfc174fb66aef3a31544707bd4b0d' into eclair-plus-aosp

* commit '04b67c8c9fadfc174fb66aef3a31544707bd4b0d':
  Fix issue 2418435: Device is rebooted after pairing with A2DP/Bluetooth and made a call to other phone.
2010-02-05 09:38:15 -08:00
Eric Laurent
9f78b4b74d Merge "Fix issue 2418435: Device is rebooted after pairing with A2DP/Bluetooth and made a call to other phone." into eclair 2010-02-05 09:31:13 -08:00
The Android Open Source Project
20f10d8544 am 3530ef81: reconcile main tree with open-source eclair
Merge commit '3530ef81d13e243bb568b8d33327f5fdda8a5b1a' into eclair-plus-aosp

* commit '3530ef81d13e243bb568b8d33327f5fdda8a5b1a':
  android-2.1_r1 snapshot
2010-02-05 08:49:52 -08:00
The Android Open Source Project
6390084fa4 reconcile main tree with open-source eclair 2010-02-05 08:09:38 -08:00
Eric Laurent
0b673f7c27 Fix issue 2418435: Device is rebooted after pairing with A2DP/Bluetooth and made a call to other phone.
This change removes the temporary fix for this issue.
The actual fix is in vendor/htc/passion/AudioBTID.csv.
2010-02-05 05:23:51 -08:00
Eric Laurent
edfe1d499f am e7e14f01: am 2d319172: Temporary patch for issue 2419260.
Merge commit 'e7e14f014274b7c3e921bfe9a35804b4ed7b5eed'

* commit 'e7e14f014274b7c3e921bfe9a35804b4ed7b5eed':
  Temporary patch for issue 2419260.
2010-02-05 05:15:47 -08:00
Eric Laurent
c62f1c7484 resolved conflicts for merge of a9642a5c to master 2010-02-05 04:41:50 -08:00
Eric Laurent
16c161fcc6 am 2d319172: Temporary patch for issue 2419260.
Merge commit '2d319172300af10e139818ea367c4afc14c616f5' into eclair-plus-aosp

* commit '2d319172300af10e139818ea367c4afc14c616f5':
  Temporary patch for issue 2419260.
2010-02-04 12:01:11 -08:00
Eric Laurent
3f6a9031d1 Temporary patch for issue 2419260.
Comment out code that causes kernel crash reported in issue 2419260 until HTC provides a real fix.
2010-02-04 11:52:15 -08:00
Eric Laurent
1823b21524 am 17b4d724: Fix issue: 2413494: [Passion-c] Add TTY support.
Merge commit '17b4d724c2d8f3b70ae94ab523f584940d1c175a' into eclair-plus-aosp

* commit '17b4d724c2d8f3b70ae94ab523f584940d1c175a':
  Fix issue: 2413494: [Passion-c] Add TTY support.
2010-02-04 09:34:37 -08:00
Eric Laurent
99f813b469 Fix merge error in previous commit 457a471ec2d74eb2f4f6723be0797155aed22fa1. 2010-02-04 04:27:35 -08:00
Eric Laurent
0cef292e23 Fix issue: 2413494: [Passion-c] Add TTY support.
AudioHardware receives TTY mode selection from HeadsetObserver by means of the setParameters() method.
Whenever the audio mode is MODE_IN_CALL and a headset is connected, the sound device selection
is modified by TTY mode in order to select TTY full, VCO ot HCO oudio routes and a1026 configuations accordingly.
2010-02-03 23:35:06 -08:00
Iliyan Malchev
7c63be3a8f resolved conflicts for merge of 85ce45e2 to master
Merge commit '85ce45e2' into manualmerge

Conflicts:
	libaudio-qsd8k/AudioHardware.cpp
	libaudio-qsd8k/AudioHardware.h

Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-02-03 14:53:19 -08:00
Iliyan Malchev
52c16eb522 am f92ef8fe: libaudio-qsd8k: updates for passionc
Merge commit 'f92ef8fe452d3f8742d3aa680d1a443f571f028d' into eclair-plus-aosp

* commit 'f92ef8fe452d3f8742d3aa680d1a443f571f028d':
  libaudio-qsd8k: updates for passionc
2010-02-03 14:16:53 -08:00
Iliyan Malchev
cdbc47e396 am 97e4ee03: am 9ab0b5b1: libaudio-qsd8k: fix a1026.h kernel header include
Merge commit '97e4ee03851bc8635d8d4a42e656ebb0f9e943d7'

* commit '97e4ee03851bc8635d8d4a42e656ebb0f9e943d7':
  libaudio-qsd8k: fix a1026.h kernel header include
2010-02-02 14:23:27 -08:00
Iliyan Malchev
cb2ec0c1f0 am 9ab0b5b1: libaudio-qsd8k: fix a1026.h kernel header include
Merge commit '9ab0b5b1f3244f261fcda2ead8fcdd5fe5d714b6' into eclair-plus-aosp

* commit '9ab0b5b1f3244f261fcda2ead8fcdd5fe5d714b6':
  libaudio-qsd8k: fix a1026.h kernel header include
2010-02-02 14:19:01 -08:00
Iliyan Malchev
2b2d936767 libaudio-qsd8k: updates for passionc
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-02-02 13:46:58 -08:00
Iliyan Malchev
abb2ce35f7 libaudio-qsd8k: fix a1026.h kernel header include
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-02-02 12:27:15 -08:00
Eric Laurent
7f8c5c273e Fix issue 2410159: Camcorder: audio capture is sometimes silent when a wired headset is plugged on Passion.
This change fixes two issues:

1 There is a problem with the mutex mA1026Lock protecting access to Audience chip configuration. The mutex is always locked
after the driver is opened and unlocked before the driver is closed. There is a risk that the driver is closed by an instance
of doAudience_A1026_Control() ready to exit while it had already been tested as opened by another instance of doAudience_A1026_Control()
entering and waiting for mA1026Lock to be released. This is what happens when a record is starting and that at the same time the output routing
is changed because the record jingle is playing.
The fix consists in locking mA1026Lock before opening the driver and unlocking it after closing the driver.

2 There is a problem on both 7k and 8k with the way doRouting() handles the routing requests for inputs and outputs. Current implementation
of doRouting() has a parameter indicating if the requestest comes from an input or from an output. The input device is only considered if the
request comes from this particular input. This creates a problem when the input is already active and a routing request is received on an output.
In this case, the new device is chosen as if no record was active resulting in potential change in input routing and a1026 configuration.

The fix consists in checking if at least one input is active when entering doRouting() and always take its device selection into account.
If no input is active, the device selected for the output is used.

For 8k platform, also call doRouting() instead of doAudience_A1026_Control() when record is started or stopped to make sure that all audio path and
accoustic parameters are properly selected and not only the A1026 configuraiton applied.
2010-02-02 02:22:34 -08:00
The Android Open Source Project
96112ea629 reconcile android-2.1_r1 snapshot 2010-01-29 14:09:19 -08:00
Eric Laurent
6a373ebdde Fix issue 2285561: New AudioFlinger and audio driver API needed for A/V sync
Added getRenderPosition() API to AudioHardwareInterface to retreive number of audio frames
written by DSP to DAC.

This API is not yet implemented on 7k and 8k kernel drivers.
2010-01-26 18:33:20 -08:00
Eric Laurent
c94e8021b6 am 3a76d8b9: am c42d5b9b: Fix issue 2378103: Bluetooth car kit partly handled by Passion AudioHardware implementation.
Merge commit '3a76d8b93bb14a718ec7558fbfdbbbe62f24cce8'

* commit '3a76d8b93bb14a718ec7558fbfdbbbe62f24cce8':
  Fix issue 2378103: Bluetooth car kit partly handled by Passion AudioHardware implementation.
2010-01-22 12:36:41 -08:00