Skip to content

Yocto 3.4 Honister: Fixes to Pinephone Pro audio

Compare
Choose a tag to compare
@Biktorgj Biktorgj released this 14 Dec 05:58
· 88 commits to honister since this release

This release is a flashable package based on the following repos:

COMPATIBILITY:

  • Pinephone
  • Pinephone Pro
  • Quectel EG25 based MiniPCIe cards (make sure you enable USB audio if you want to make a call)

ADSP Firmware:

Depending on your carrier, some firmware versions will work better than others. You can check your current ADSP firmware version by sending the "AT+QGMR" AT command. If in doubt, version 01.002.01.002 is the default if you used the recovery repo. I've been using version 003 for months without issues (and improvements in data handling) but some users have reported problems making VoLTE calls with it, so pick whatever works best for you (or don't change it at all if it worked fine before)

Flashing it:

  1. Open a root terminal and run: echo -ne "AT+QFASTBOOT\r" > /dev/ttyUSB2 to enter fastboot mode
  2. Run fastboot flash modem NON-HLOS.ubi && fastboot reboot

CHANGELOG

  • Pinephone Pro: Fixed bug where external codec's PLL would always be set to 2048000 Hz instead of whatever was needed for the desired sampling rate. This removes the metallic sound when using rates > 8K
  • Pinephone Pro: Allow runtime sampling rate changing without distortion
  • Pinephone Pro modem codec support. If the external codec is detected, the firmware will autoconfigure it and set audio sampling rate to 48KHz, so VoLTE HD calls get the audio quality they deserve.
    NOTES:
  • When using a Pinephone Pro, make sure you enable USB persist:
    • In /usr/lib/udev/rules.d/80-modem-eg25.rules
    • ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="2c7c", ATTRS{idProduct}=="0125", ATTR{power/persist}="1"

SHA512 Sum of the package file

56627d73b066e3eff0e9196ea088fdb8cf1030c27be8fb8b05d23276ea858ddb1cb54c3a72fe1035c7bc3e705f16fff26b64de53b7d1611edd191f2a7721176f package.tar.gz

Inside the compressed tar file there's a file containing the SHA sums for the files included inside.

Installation instructions:

  1. Get required tools: you need adb and fastboot
  2. Grab a copy of the firmware, and, optionally, a recovery firmware (https://github.com/Biktorgj/quectel_eg25_recovery)
  3. Run the flashall script bundled in the package as root. If something fails, flash manually
  4. After you flashed everything, the modem should come back automatically after 14-18 seconds

Something went wrong?

Feel free to check the troubleshooting section. If you don't manage to fix it, feel free to open an issue and I'll do my best to help you out

Have fun!