OSDN Git Service

AudioService: SCO audio backward compatibility
authorEric Laurent <elaurent@google.com>
Sat, 13 Apr 2013 00:24:56 +0000 (17:24 -0700)
committerEric Laurent <elaurent@google.com>
Thu, 18 Apr 2013 00:19:56 +0000 (17:19 -0700)
commitc18c9138cee0f0859bcab636a004ce92ca4a9ab5
treea6a77098b0a4bc577c0a6d9c17c219353bf6a62a
parenta0042742c8941519718cc8872a84cfec10294386
AudioService: SCO audio backward compatibility

After commit 25fc29b3, AudioManager.startBluetoothSco()
does not use virtual voice call mode anymore when starting the
SCO audio connection to the headset.
To help backward compatibility, this change makes that virtual voice call
is used if the request comes from an application targeting a SDK version
before JB MR2. For applications targeted to JB MR2 and above a raw SCO
audio connection is established.

Bug 8157702

Change-Id: If1ded2fd99b7ed76d2435d95ee03659e78a7882a
media/java/android/media/AudioManager.java
media/java/android/media/AudioService.java
media/java/android/media/IAudioService.aidl