Commit Graph

316 Commits

Author SHA1 Message Date
Patrick Scott
fd2e048d2c am d9b1ab0b: am 7930a644: Merge change I5d43ba27 into eclair-mr2
Merge commit 'd9b1ab0b564fea713db053d3acbf98f5e4506276'

* commit 'd9b1ab0b564fea713db053d3acbf98f5e4506276':
  Remove calls to dump_l.
2009-10-30 05:35:49 -07:00
Patrick Scott
cb53be231e am 7930a644: Merge change I5d43ba27 into eclair-mr2
Merge commit '7930a644d5accac458193650ba5e1241299d048d' into eclair-mr2-plus-aosp

* commit '7930a644d5accac458193650ba5e1241299d048d':
  Remove calls to dump_l.
2009-10-30 05:30:30 -07:00
Android (Google) Code Review
d79323d3f0 Merge change I5d43ba27 into eclair-mr2
* changes:
  Remove calls to dump_l.
2009-10-30 08:23:03 -04:00
Jean-Michel Trivi
0672624153 am ba1d8944: am 467b9983: am e26fd757: Fix bug 2210203 where Music volume is reduced after reducing in-call volume. This is the combination of two issues: - on QSD8K, the voice volume affects all streams, even when not in call. This is fixed by setting the voice volu
Merge commit 'ba1d894484e8063378df9957163858cdc8d3e1d6'

* commit 'ba1d894484e8063378df9957163858cdc8d3e1d6':
  Fix bug 2210203 where Music volume is reduced after reducing in-call volume.
2009-10-29 20:20:59 -07:00
Jean-Michel Trivi
9fccf28bc0 am 467b9983: am e26fd757: Fix bug 2210203 where Music volume is reduced after reducing in-call volume. This is the combination of two issues: - on QSD8K, the voice volume affects all streams, even when not in call. This is fixed by setting the voice volume to unity g
Merge commit '467b99831bbcfdb42edf7794409095ee8bc84c71' into eclair-mr2-plus-aosp

* commit '467b99831bbcfdb42edf7794409095ee8bc84c71':
  Fix bug 2210203 where Music volume is reduced after reducing in-call volume.
2009-10-29 20:00:46 -07:00
Jean-Michel Trivi
b9352d71f8 am e26fd757: Fix bug 2210203 where Music volume is reduced after reducing in-call volume. This is the combination of two issues: - on QSD8K, the voice volume affects all streams, even when not in call. This is fixed by setting the voice volume to unity gain whenever
Merge commit 'e26fd7576c0c0963ac7e11c249db8f56a8c08a92' into eclair-mr2

* commit 'e26fd7576c0c0963ac7e11c249db8f56a8c08a92':
  Fix bug 2210203 where Music volume is reduced after reducing in-call volume.
2009-10-29 19:27:55 -07:00
Patrick Scott
4705b7db85 Remove calls to dump_l.
This fails to compile without NDEBUG and the log statement is accomplishing the
same thing.
2009-10-29 08:35:22 -04:00
Dave Sparks
f712780670 am 83548d1f: am 6eb47e20: am 5d89308f: Add wakelock to audio HAL. Bug 2218158.
Merge commit '83548d1f5bc2591d64dccbf199fd57835188f1ef'

* commit '83548d1f5bc2591d64dccbf199fd57835188f1ef':
  Add wakelock to audio HAL. Bug 2218158.
2009-10-29 01:56:18 -07:00
Dave Sparks
05d8b7709c am 6eb47e20: am 5d89308f: Add wakelock to audio HAL. Bug 2218158.
Merge commit '6eb47e20d76678b265a9d8e7dd0cf2fe4fbf6253' into eclair-mr2-plus-aosp

* commit '6eb47e20d76678b265a9d8e7dd0cf2fe4fbf6253':
  Add wakelock to audio HAL. Bug 2218158.
2009-10-29 01:47:45 -07:00
Dave Sparks
7755f2900f am 5d89308f: Add wakelock to audio HAL. Bug 2218158.
Merge commit '5d89308f2e1252eff2743bf823bf558dbb0de2fa' into eclair-mr2

* commit '5d89308f2e1252eff2743bf823bf558dbb0de2fa':
  Add wakelock to audio HAL. Bug 2218158.
2009-10-29 01:24:25 -07:00
Eric Laurent
0142ba88bf am fc023055: (-s ours) am 88316f70: am 0bf3ac2c: (-s ours) do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
Merge commit 'fc023055dba94779d5ab5455c1eab071e00a786e'

* commit 'fc023055dba94779d5ab5455c1eab071e00a786e':
  do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
2009-10-28 23:49:02 -07:00
Jean-Michel Trivi
b8dba8904e Fix bug 2210203 where Music volume is reduced after reducing in-call volume.
This is the combination of two issues:
- on QSD8K, the voice volume affects all streams, even when not in call.
 This is fixed by setting the voice volume to unity gain whenever
 exiting a call.
- another related issue was that when entering a call with no audio
 playing, the in-call volume would be at its max. This is due to
the audio driver resetting the gain to unity when creating a new
output. AudioPolicyManager::setPhoneState() would sometimes fail
to force the reset of the audio volumes when entering a call, causing
the driver to use the unity gain, not the in-call volume set by the
user. This is fixed by testing whether is call is starting or ending
independently from the logic to determine the new ouput device.
2009-10-28 17:24:53 -07:00
Eric Laurent
f3c6967b17 am 88316f70: am 0bf3ac2c: (-s ours) do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
Merge commit '88316f709083652c4aa9eca6f64631c0ec77fb07' into eclair-mr2-plus-aosp

* commit '88316f709083652c4aa9eca6f64631c0ec77fb07':
  do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
2009-10-28 10:42:53 -07:00
Eric Laurent
c21ca94f0f am 0bf3ac2c: (-s ours) do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
Merge commit '0bf3ac2c797fc9e1a327f867d69bbb0b54a68ffa' into eclair-mr2

* commit '0bf3ac2c797fc9e1a327f867d69bbb0b54a68ffa':
  do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
2009-10-28 10:26:39 -07:00
Dave Sparks
61e76b47a1 Add wakelock to audio HAL. Bug 2218158.
Applications are supposed to hold a wakelock. However, since 1.0,
the audio driver and/or HAL has held a partial wakelock. That means
that many apps will be broken if we don't hold a wakelock while
audio is playing. This patch holds a wakelock while the audio
driver is open and releases it when it goes to standby mode.
2009-10-27 16:27:04 -07:00
Eric Laurent
52af604c93 do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
Bluetooth A2DP suspend-resume improvements.

This change will reduce the occurence rate of A2DP sink suspend resume failures observed in issues 2184627, 2181005 and possibly 2189628.

Suspend A2DP output when phone state is not NORMAL and not only when it is RINGTONE.
Update A2DP suspend state when an A2DP or SCO device is connected or disconnected while phone state is not NORMAL.
2009-10-26 09:07:41 -07:00
Eric Laurent
b2984a2f52 am 2b6fb948: am a8eaa9a3: am 7eda9410: Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Merge commit '2b6fb9488422ae136a272eb7c2fb3409b3753618'

* commit '2b6fb9488422ae136a272eb7c2fb3409b3753618':
  Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
2009-10-24 01:58:02 -07:00
Eric Laurent
401d78acc4 am a8eaa9a3: am 7eda9410: Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Merge commit 'a8eaa9a397383b776b5b65dc479502e70d567dcf' into eclair-mr2-plus-aosp

* commit 'a8eaa9a397383b776b5b65dc479502e70d567dcf':
  Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
2009-10-24 01:51:00 -07:00
Eric Laurent
2e01134db8 am 7eda9410: Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Merge commit '7eda9410e218b2f2ff3f776897fbc1b679b6132d' into eclair-mr2

* commit '7eda9410e218b2f2ff3f776897fbc1b679b6132d':
  Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
2009-10-24 01:39:05 -07:00
Eric Laurent
7996f999be Fix issue 2192181: AudioFlinger must provide separated methods to set VOICE_CALL stream volume and down link audio volume.
Modified checkAndSetVolume() method to adjust VOICE_CALL, BLUETOOTH_SCO and DTMF stream volumes to match audio hardware behavior (never 0).
Also do the following adjustments on stream volumes:
- VOICE_CALL:
	if in call, force software volume to max to avoid applying the volume twice (software mixer + audio hardware)
	send setVoiceVolume() to set in call volume in audio hardware
- BLUETOOTH_SCO:
	send setVoiceVolume() with max value because volume is applied by BT headset and should not be also applied by audio hardware.
- DTMF:
	if in call and not using the BT SCO device, force software volume to max to avoid applying the volume twice (software mixer + audio hardware)
2009-10-21 08:19:36 -07:00
Eric Laurent
ed39ad603d am 3bd76d78: am 6d14e709: Bluetooth A2DP suspend-resume improvements.
Merge commit '3bd76d781a412e96986eec13e3051b3f4ee73c4a'

* commit '3bd76d781a412e96986eec13e3051b3f4ee73c4a':
  Bluetooth A2DP suspend-resume improvements.
2009-10-20 00:51:02 -07:00
HK Chen
a81c636dbc am 5a9bd914: am 3cb88645: qsd8k: fix set_mic_mute() in AudioHardware.
Merge commit '5a9bd9145853d405614c04b6cb46b0aac9b5e643'

* commit '5a9bd9145853d405614c04b6cb46b0aac9b5e643':
  qsd8k: fix set_mic_mute() in AudioHardware.
2009-10-20 00:50:59 -07:00
Eric Laurent
b4638d0d98 am 6d14e709: Bluetooth A2DP suspend-resume improvements.
Merge commit '6d14e709e58488a67332fbeb0dd872ac18a19c17' into eclair-mr2-plus-aosp

* commit '6d14e709e58488a67332fbeb0dd872ac18a19c17':
  Bluetooth A2DP suspend-resume improvements.
2009-10-20 00:43:13 -07:00
HK Chen
1aa59df4b9 am 3cb88645: qsd8k: fix set_mic_mute() in AudioHardware.
Merge commit '3cb8864598e72c04859f410bb03f242cf3965dbe' into eclair-mr2-plus-aosp

* commit '3cb8864598e72c04859f410bb03f242cf3965dbe':
  qsd8k: fix set_mic_mute() in AudioHardware.
2009-10-20 00:43:11 -07:00
Eric Laurent
45fc65f5e1 Bluetooth A2DP suspend-resume improvements.
This change will reduce the occurence rate of A2DP sink suspend resume failures observed in issues 2184627, 2181005 and possibly 2189628.

Suspend A2DP output when phone state is not NORMAL and not only when it is RINGTONE.
Update A2DP suspend state when an A2DP or SCO device is connected or disconnected while phone state is not NORMAL.
2009-10-16 10:19:01 -07:00
HK Chen
b5075dd3df qsd8k: fix set_mic_mute() in AudioHardware.
Signed-off-by: Brian Swetland <swetland@google.com>
2009-10-15 01:23:48 -07:00
Eric Laurent
e64d2eecb4 am 9cad54e0: am ba8101e9: Merge change I34a989e8 into eclair
Merge commit '9cad54e0ea6ad903b10a4fd8dd0e116328c5b416'

* commit '9cad54e0ea6ad903b10a4fd8dd0e116328c5b416':
2009-10-14 16:21:09 -07:00
Jean-Michel Trivi
4d75b93352 am 7b5d43fe: am 195d08b5: Fix bug 2172716. Align AudioPolicyManager code in msm7k/libaudio and msm7k/libaudio-qsd8k
Merge commit '7b5d43feb9489520eaeeed4a413954f81115e020'

* commit '7b5d43feb9489520eaeeed4a413954f81115e020':
2009-10-14 16:21:07 -07:00
Dima Zavin
6da5db92e5 am 3a6a4c27: am a6537357: gralloc-qsd8k: Call glFinish on composition complete.
Merge commit '3a6a4c2723affadfa882d969395ad248b91d5d58'

* commit '3a6a4c2723affadfa882d969395ad248b91d5d58':
2009-10-14 16:21:04 -07:00
Eric Laurent
0c29188c48 am ba8101e9: Merge change I34a989e8 into eclair
Merge commit 'ba8101e944ec0ffea2b89739667d3ce731d6e818'

* commit 'ba8101e944ec0ffea2b89739667d3ce731d6e818':
  Fix issue 2172934: AudioHardware for msm7k: some file descriptor tests must be fixed.
2009-10-13 17:00:24 -07:00
Jean-Michel Trivi
baeea6092f am 195d08b5: Fix bug 2172716. Align AudioPolicyManager code in msm7k/libaudio and msm7k/libaudio-qsd8k
Merge commit '195d08b5a1d93025464f7347280f182e5da7fda7'

* commit '195d08b5a1d93025464f7347280f182e5da7fda7':
  Fix bug 2172716. Align AudioPolicyManager code in msm7k/libaudio and msm7k/libaudio-qsd8k
2009-10-13 17:00:21 -07:00
Dima Zavin
e850535731 am a6537357: gralloc-qsd8k: Call glFinish on composition complete.
Merge commit 'a653735759df4b8338475d79044c6494b238e681'

* commit 'a653735759df4b8338475d79044c6494b238e681':
  gralloc-qsd8k: Call glFinish on composition complete.
2009-10-13 11:53:11 -07:00
Eric Laurent
dd3deeed9d am ba8101e9: Merge change I34a989e8 into eclair
Merge commit 'ba8101e944ec0ffea2b89739667d3ce731d6e818' into eclair-plus-aosp

* commit 'ba8101e944ec0ffea2b89739667d3ce731d6e818':
  Fix issue 2172934: AudioHardware for msm7k: some file descriptor tests must be fixed.
2009-10-12 09:48:13 -07:00
Android (Google) Code Review
7c65dd73a3 Merge change I34a989e8 into eclair
* changes:
  Fix issue 2172934: AudioHardware for msm7k: some file descriptor tests must be fixed.
2009-10-12 12:42:51 -04:00
Jean-Michel Trivi
f91bd47a25 am 195d08b5: Fix bug 2172716. Align AudioPolicyManager code in msm7k/libaudio and msm7k/libaudio-qsd8k
Merge commit '195d08b5a1d93025464f7347280f182e5da7fda7' into eclair-plus-aosp

* commit '195d08b5a1d93025464f7347280f182e5da7fda7':
  Fix bug 2172716. Align AudioPolicyManager code in msm7k/libaudio and msm7k/libaudio-qsd8k
2009-10-12 09:03:37 -07:00
Eric Laurent
0933f47098 Fix issue 2172934: AudioHardware for msm7k: some file descriptor tests must be fixed. 2009-10-09 18:18:47 -07:00
Jean-Michel Trivi
fcc698f9b4 Fix bug 2172716. Align AudioPolicyManager code in msm7k/libaudio and msm7k/libaudio-qsd8k 2009-10-09 16:58:34 -07:00
Dima Zavin
7567fe11a4 am a6537357: gralloc-qsd8k: Call glFinish on composition complete.
Merge commit 'a653735759df4b8338475d79044c6494b238e681' into eclair-plus-aosp

* commit 'a653735759df4b8338475d79044c6494b238e681':
  gralloc-qsd8k: Call glFinish on composition complete.
2009-10-08 01:20:12 -07:00
Dima Zavin
ef7776257a gralloc-qsd8k: Call glFinish on composition complete.
Change-Id: I09c8287bcaf89f3f8bcaa4108631641a0fcc397b
Signed-off-by: Dima Zavin <dima@android.com>
2009-10-08 01:13:51 -07:00
Eric Laurent
1d27258481 am b0fbafbf: am ee997372: Fix issue 2146459:AudioPolicyManager: notification and ringtone streams can remain muted.
Merge commit 'b0fbafbfb328166b61c3e842a8781696f281f3ca'

* commit 'b0fbafbfb328166b61c3e842a8781696f281f3ca':
  Fix issue 2146459:AudioPolicyManager: notification and ringtone streams can remain muted.
2009-10-01 11:38:30 -07:00
Eric Laurent
33575214c1 am ee997372: Fix issue 2146459:AudioPolicyManager: notification and ringtone streams can remain muted.
Merge commit 'ee997372b7d4aea4966d0c27cbd11fe43de31197' into eclair-plus-aosp

* commit 'ee997372b7d4aea4966d0c27cbd11fe43de31197':
  Fix issue 2146459:AudioPolicyManager: notification and ringtone streams can remain muted.
2009-09-29 15:13:18 -07:00
Eric Laurent
addb2c56fc Fix issue 2146459:AudioPolicyManager: notification and ringtone streams can remain muted.
The fix consists in adding a parameter to handleIncallSonification() indicating that it is called from setPhoneState() in which case the stream mute or unmute is called as many times as there are active tracks on the output.

Also change the time when handleIncallSonification() is called in setPhoneState() to make sure that both mPhoneSate and the selected device are coherent with the IN_CALL state when the fucntion is called.
2009-09-29 15:04:46 -07:00
HK Chen
2b44244851 am 02b088fe: am 7161d052: Fix get_snd_dev() in AudioHardware.
Merge commit '02b088fe2fdc2d61dbee5af3c52bbd2144b66dd8'

* commit '02b088fe2fdc2d61dbee5af3c52bbd2144b66dd8':
  Fix get_snd_dev() in AudioHardware.
2009-09-29 11:11:52 -07:00
HK Chen
c4bc52ded6 am 7161d052: Fix get_snd_dev() in AudioHardware.
Merge commit '7161d052ce69228825bd5deca3bfa4a213a99f06' into eclair-plus-aosp

* commit '7161d052ce69228825bd5deca3bfa4a213a99f06':
  Fix get_snd_dev() in AudioHardware.
2009-09-28 16:18:53 -07:00
HK Chen
2d2802d283 Fix get_snd_dev() in AudioHardware. 2009-09-28 14:58:06 -07:00
Jean-Michel Trivi
387c595bcc am cb323590: am 9b5caf53: Merge change 27062 into eclair
Merge commit 'cb32359081c08d147bdb0569de21ceed59b57fc9'

* commit 'cb32359081c08d147bdb0569de21ceed59b57fc9':
  Fix bug 2146274. Modify the Audio Policy Manager
2009-09-27 15:39:55 -07:00
Jean-Michel Trivi
500868d0c0 am 9b5caf53: Merge change 27062 into eclair
Merge commit '9b5caf539136ccc1106b49155f531f5e70b41ba0' into eclair-plus-aosp

* commit '9b5caf539136ccc1106b49155f531f5e70b41ba0':
  Fix bug 2146274. Modify the Audio Policy Manager
2009-09-25 15:10:38 -07:00
Android (Google) Code Review
ac5de163ca Merge change 27062 into eclair
* changes:
  Fix bug 2146274. Modify the Audio Policy Manager to support dynamic rerouting of STREAM_VOICE_CALL streams when using AudioManager.setSpeakerphoneOn(bool) even when not in call.
2009-09-25 18:01:44 -04:00
HK Chen
ae84218649 am 511722f3: am 31923bb6: qsd8k: audio: remove pre-filling buffers for pcm playback.
Merge commit '511722f38480f2fba2b579ba3c59dc6c817a00d1'

* commit '511722f38480f2fba2b579ba3c59dc6c817a00d1':
  qsd8k: audio: remove pre-filling buffers for pcm playback.
2009-09-25 11:15:16 -07:00
Dima Zavin
99768a3763 am b8e3c56c: am afff0dae: copybit: hack to always request premultiplied alpha blend.
Merge commit 'b8e3c56c4b9045b16401698e46be40b6e7b454e0'

* commit 'b8e3c56c4b9045b16401698e46be40b6e7b454e0':
  copybit: hack to always request premultiplied alpha blend.
2009-09-25 11:11:48 -07:00