Accept audio from audio server in data_interval_us chunks
Currently, we request audio server to pass audio data in 2ms intervals. With LE Audio this makes not much sense, data is encoded in 7.5 or 10ms interval. With this patch applied, we request audio server to provide us with data only once every interval. Looks like waking/sleeping, locking/unlocking and additional buffer moves were actually quite expensive. Before this patch, CPU usage by bluetooth process is around 86% on Pixel 6 PRO when playing music with screen off. Audio is often breaking and sttering. With this patch applied, the CPU usage in same scenario goes down to around 46%, and the audio stuttering is significantly reduced. Test: manual, verify audio quality in hearing test. Bug: 150670922 Change-Id: I9687a4ab813f389597d674b2bc1f0f16d709f1c7
Loading
Please register or sign in to comment