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

Commit 8489aaab authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: Set sampling rate."

parents c8693e4a 17051138
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1990,6 +1990,15 @@ final class HandsfreeClientStateMachine extends StateMachine {
                         mAudioManager.setMode(newAudioMode);
                    }
                    Log.d(TAG,"hfp_enable=true");
                    Log.d(TAG,"mAudioWbs is " + mAudioWbs);
                    if (mAudioWbs) {
                        Log.d(TAG,"Setting sampling rate as 16000");
                        mAudioManager.setParameters("hfp_set_sampling_rate=16000");
                    }
                    else {
                        Log.d(TAG,"Setting sampling rate as 8000");
                        mAudioManager.setParameters("hfp_set_sampling_rate=8000");
                    }
                    mAudioManager.setParameters("hfp_enable=true");
                    broadcastAudioState(device, BluetoothHandsfreeClient.STATE_AUDIO_CONNECTED,
                            BluetoothHandsfreeClient.STATE_AUDIO_CONNECTING);