Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b69d7135 authored by Naval saini's avatar Naval saini Committed by Bruno Martins
Browse files

codec support for DevUI am: f915bd9438

CRs-Fixed: 2435483
Change-Id: I88df89d6f751971c9bccf80a82912c79ed9a3772
parent c5b4c01f
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -85,6 +85,9 @@ public class BluetoothAudioCodecPreferenceController extends
                    case 6:
                        codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_ADAPTIVE;
                        break;
                    case 7:
                        codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_TWSP;
                        break;
                    default:
                        break;
                }
@@ -114,13 +117,17 @@ public class BluetoothAudioCodecPreferenceController extends
                codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
                break;
            case 7:
                codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_TWSP;
                codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
                break;
            case 8:
                synchronized (mBluetoothA2dpConfigStore) {
                    if (mBluetoothA2dp != null) {
                        mBluetoothA2dp.enableOptionalCodecs(null); // Use current active device
                    }
                }
                return;
            case 8:
            case 9:
                synchronized (mBluetoothA2dpConfigStore) {
                    if (mBluetoothA2dp != null) {
                        mBluetoothA2dp.disableOptionalCodecs(null); // Use current active device
@@ -157,6 +164,9 @@ public class BluetoothAudioCodecPreferenceController extends
            case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_ADAPTIVE:
                index = 6;
                break;
            case BluetoothCodecConfig.SOURCE_CODEC_TYPE_APTX_TWSP:
                index = 7;
                break;
            case BluetoothCodecConfig.SOURCE_CODEC_TYPE_INVALID:
            default:
                break;