How to change the Bluetooth audio codec on Xiaomi smartphones: from SBC to LDAC

If you use wireless headphones or a speaker with Xiaomi, youโ€™ve probably noticed that the audio quality of Bluetooth can vary greatly depending on the device, and the reason lies in audio codecs, compression algorithms that determine how clear, detailed and stable the sound will be. By default, most Xiaomi smartphones (including Redmi models, POCO and flagship series) use a basic SBC codec that provides compatibility with all devices, but does not always give the best quality.

In this article, we will discuss how to manually change the Bluetooth audio codec to Xiaomi, which codecs are supported by different models, and how this affects sound. You will learn why aptX or LDAC may sound better than AAC, but consume more power, and how to circumvent the limitations of MIUI if the desired codec is not displayed in the settings. Instructions are relevant for devices on MIUI 12/13/14 and HyperOS, including Xiaomi 13/14, Redmi Note 12/13, POCO F5/X6 and others.

Why it is important to choose the right audio codec for Bluetooth

The audio codec is the translator between the digital sound on your smartphone and the analog signal in your headphones.

  • ๐ŸŽต Sound quality: bitrate, sampling rate, dynamic range. For example, LDAC transmits up to 990 kbit/s, and SBC only 328 kbit/s.
  • ๐Ÿ”‹ Battery consumption: Complex codecs (e.g. aptX Adaptive) require more energy to encode /dek.
  • ๐Ÿ“ถ Connection stability: Some codecs are sensitive to interference. AAC works better in weak signal conditions than LDAC.
  • โฑ๏ธ Latency: critical for gaming and video. aptX Low Latency reduces latency to 30-40 ms.

Xiaomi often has SBC activated by default, a versatile codec, but not the most advanced. If your headphones support AAC, aptX or LDAC, it makes sense to switch to them for better sound. However, not all codecs are compatible with every Xiaomi model - it depends on the chipset and version of the MIUI/HyperOS.

โš ๏ธ Warning: Some codecs (e.g., LDAC) can cause sound artifacts (clicks, cliffs) on cheap headphones or with a weak Bluetooth signal. If the sound gets worse after changing the codec, go back to AAC or SBC.

What audio codecs are supported by Xiaomi smartphones

The list of available codecs depends on your Xiaomi processor and firmware version. Below is a compatibility table for popular chipsets:

ChipsetSupported codecsXiaomi models
Snapdragon 8 Gen 2/3SBC, AAC, aptX, aptX HD, aptX Adaptive, LDAC, LC3Xiaomi 13/14 Ultra, POCO F6 Pro, Redmi K70 Pro
Snapdragon 7+ Gen 2/3SBC, AAC, aptX, aptX HD, LC3Xiaomi 13T, Redmi Note 13 Pro+, POCO X6 Pro
Dimensity 9000/9200SBC, AAC, LDAC, LC3Xiaomi 12S Ultra, Redmi K60 Ultra
Snapdragon 6xx/4xxSBC, AAC (sometimes aptX)Redmi Note 12/11, POCO M6

Please note:

  • ๐Ÿ”น The LC3 codec appeared in Bluetooth 5.2 and is optimized for LE Audio (e.g., Xiaomi Buds 4 Pro).
  • ๐Ÿ”น LDAC is only available on flagships with Snapdragon 8xx or Dimensity 9000.
  • ๐Ÿ”น On budget models (e.g., Redmi 10A) often only SBC is available.
๐Ÿ“Š What headphones do you use with Xiaomi?
Sony (LDAC)
Samsung (Scalable)
Apple (AAC)
Xiaomi (AAC/aptX)
Others

How to check the current audio codec on Xiaomi

Before you change the codec, make sure your headphones or column support it.

  1. Connect the headphones to your smartphone.
  2. Open Settings โ†’ Connected devices (or Bluetooth).
  3. Click on your device name (e.g. Sony WH-1000XM5).
  4. Look at the line โ€œAudio Codecโ€ or โ€œSound Qualityโ€.

If this line is not there, then your firmware is not showing the default codec.

  • ๐Ÿ› ๏ธ Use the Developer Options app (described below).
  • ๐Ÿ“ฑ Install third-party software, such as Bluetooth Audio Codec Checker (available on Google Play).

๐Ÿ’ก

If there is no codec information in your Bluetooth settings, try turning on the developer mode and activating the Bluetooth debugging option โ€“ sometimes this helps to display hidden settings.

Step-by-step: how to change the audio codec to Xiaomi

There are two ways to change the codec: through standard settings (if available) or through developer mode (for advanced users).

Method 1: via Bluetooth Menu (for MIUI 14/HyperOS)

This method works for most modern Xiaomi devices:

  1. Put your headphones on Bluetooth.
  2. Go to Settings. โ†’ Connected devices.
  3. Tap your device name (e.g., JBL Live 660NC).
  4. Select "Audio Codec" or "Sound Quality".
  5. In the list of available codecs, select the desired one (for example, AAC or aptX Adaptive).

If the option "Audio codec" is missing - go to the second method.

Method 2: Developer Mode (for all versions of MIUI)

This method is universal, but requires the inclusion of hidden settings:

Activate Developer Mode |Connect headphones via Bluetooth |Open developer settings |Look for Bluetooth Audio Codec|Select the desired codec-->

  1. Turn on Developer Mode: Go to Settings โ†’ About Phone. Tap 7 once on the line "MIUI Version" (you're a developer! notification will appear).

Settings โ†’ Additional โ†’ For Developers

"Network settings"

"Bluetooth audio codec."

LDAC

aptX LL

Reconnect the headphones so that the changes take effect.

โš ๏ธ Warning: Some firmware (especially custom ones) may not have the Bluetooth Audio Codec option even in developer mode, requiring manual editing of configuration files (see next section).

What to do if the codec does not change?
If the codec in the settings did not improve or the codec reset to SBC, the reasons may be: 1. Headphones do not support the selected codec (check the device specifications). 2. The firmware limits the choice (for example, on some versions of MIUI for Redmi LDAC codec blocked). 3. Conflict with MIUI optimizations (try disabling MIUI audio effects in the audio settings). 4. Bluetooth stack error (reboot or reset network settings will help).

How to turn on LDAC or aptX if they are not on the list

If your Xiaomi supports LDAC or aptX, but these codecs donโ€™t show up in the settings, the problem may be:

  • ๐Ÿ”ธ Regional firmware restrictions (e.g., the global version MIUI sometimes blocks LDAC).
  • ๐Ÿ”ธ Lack of license (the chipset manufacturer did not pay for codec support).
  • ๐Ÿ”ธ Hidden settings that can be activated via ADB.

To unlock hidden codecs, follow the following steps:

Method 1: Through ADB (without root)

You will need a computer with ADB- drivers installed and USB debugging enabled on your smartphone.

adb shell settings put global bluetooth_a2dp_offload_capability 31


adb shell settings put global bluetooth_a2dp_offload_disabled 0




adb shell settings put global bluetooth_hw_a2dp_offload_enabled 1

After completing the commands, restart the phone and check for codecs in the settings.

Method 2: Edit build.prop (requires root)

If you have root access, open the file /system/build.prop and add the following lines:

persist.bluetooth.a2dp_offload_cap=31


persist.bluetooth.a2dp_offload_disabled=0

Save the changes, restart the device and check the available codecs.

โš ๏ธ Warning: Editing system files without root may result in loss of warranty or unstable Bluetooth. If you are not sure about your actions, use the first method (ADB).

Which codec to choose for different scenarios

The choice of codec depends on your tasks:

ScriptRecommended codecReason.
๐ŸŽง Music (high quality)LDAC (990 kbps) or aptX AdaptiveMaximum sound detail, wide dynamic range.
๐ŸŽฎ Games (low latency)aptX Low Latency or AACMinimum latency (40 ms), stable connection.
๐Ÿ“ž Bluetooth callsSBC or mSBC (for Hands-Free)Better compatibility with voice codecs.
๐Ÿš‡ Weak signal (street, subway)AAC or SBCResistance to interference, less energy consumption.

For most Xiaomi users, the best choice is:

  • ๐Ÿ”น AAC Balance between quality and stability (supported by Apple AirPods, most headphones).
  • ๐Ÿ”น aptX Adaptive โ€“ if your headphones support (e.g. Sony WH-1000XM4, Sennheiser Momentum).
  • ๐Ÿ”น LDAC โ€” only for flagship Xiaomi models and headphones with support (for example, Sony LDAC).

๐Ÿ’ก

If your headphones support multiple codecs, Xiaomi will automatically select the most advanced one available, but you can manually prioritize the codec for specific tasks (for example, forced AAC for calls).

Frequent problems and their solutions

When changing the audio codec to Xiaomi, the following errors may occur:

  • ๐Ÿ”Š Sound interrupted or distorted: Try lowering bitrate (e.g., in LDAC select 660 kbit/s instead of 990 kbit/s). Switch to AAC or SBC.
  • ๐Ÿ”‹ Fast battery discharge: LDAC and aptX Adaptive consume more power. Use AAC to save.
  • ๐Ÿ“ต The codec resets to SBC after reconnecting: This is a bug of some versions MIUI Solution: disable the audio effects MIUI in the audio settings.
  • ๐Ÿ”„ No option to change the codec in the settings: Use ADB or check your chipset compatibility (see table above).

If the problem persists, try:

  1. Reset network settings (Settings โ†’ System โ†’ Reset โ†’ Reset Wi-Fi, mobile network and Bluetooth).
  2. Update to the latest version of MIUI/HyperOS.
  3. Clear the Bluetooth cache (Settings โ†’ Applications โ†’ Application Management โ†’ Bluetooth โ†’ Storage โ†’ Clear the cache).
๐Ÿ”น Why is my Xiaomi Redmi Note 12 not having the option to change the codec?
On budget models (like the Redmi Note 12 with a Snapdragon 4 Gen 1 chipset), often only SBC and AAC are available. This is a hardware limitation - the processor just doesn't support aptX or LDAC. Check the specifications of your chipset in the table above.
๐Ÿ”น Which codec is better for listening to music: AAC or aptX?
It depends on the headphones and the source of the sound: AAC is better suited for streaming services (Spotify, Apple Music), as they use this codec by default. aptX (or aptX HD) is preferred for local high-resolution files (FLAC, WAV), as it provides more accurate audio transfer. If your headphones support both codecs, try both and compare subjectively.
๐Ÿ”น Can I turn on LDAC on Xiaomi POCO X3 Pro?
No. POCO X3 Pro features a Snapdragon 860 chipset that doesn't support LDAC at the hardware level, the most available on this model is AAC and aptX (if the headphones support them).
๐Ÿ”น Why did the codec change to aptX make the sound quieter?
This is normal behavior - some codecs (such as aptX or LDAC) can turn down the volume to prevent distortion. Solutions: Increase the volume in the headphones (if there is a separate controller); turn on MIUI audio effects and activate the equalizer. Check the headphone settings (for example, in the Sony Headphones Connect application you can turn off the volume limit).
๐Ÿ”น Would there be an improvement in sound if you changed the codec from SBC to AAC?
Yes, but the difference may be small. AAC supports a higher bitrate (250-320 kbit/s vs. 192-328 kbit/s in SBC) and better maintains high frequencies. However, for noticeable improvement you need: High-quality headphones (with support for AAC). High-bitrate source (for example, Spotify Premium or FLAC- files); Good Bluetooth connection (no interference). If you listen to compressed music (MP3 128 kbit/s) - there will be almost no difference between SBC and AAC.