Call audio playback frequency isn't supported by the hardware (PinePhone)

Describe your issue

Kernel sun8i-codec errors for call audio:

kernel: sun8i-codec 1c22e00.codec: sun8i-codec-aif2 sample rate (8000 Hz) conflicts with other audio streams
kernel: sun8i-codec 1c22e00.codec: ASoC: error at snd_soc_dai_hw_params on sun8i-codec-aif2: -16
kernel: asoc-simple-card sound: ASoC: PRE_PMU: ec25-sun8i-codec-aif2-playback event failed: -16
kernel: sun8i-codec 1c22e00.codec: sun8i-codec-aif2 sample rate (8000 Hz) conflicts with other audio streams
kernel: sun8i-codec 1c22e00.codec: ASoC: error at snd_soc_dai_hw_params on sun8i-codec-aif2: -16
kernel: asoc-simple-card sound: ASoC: PRE_PMU: ec25-sun8i-codec-aif2-capture event failed: -16

Pulseaudio defaults to 44.1 kHz which is not supported by the hardware for calls.

What's the expected behaviour?

The kernel doesn't complain and we set the audio playback frequency to something supported by the hardware.

What's the current behaviour?

The playback frequency is not supported by the hardware for phone calls. This results into some distortion in the earpiece

How to reproduce your issue?

What device are you using?

PinePhone v1.2a pmOS convergence edition

On what postmarketOS version did you encounter the issue?

  • edge (master branch)
  • stable (v20.05 branch)

On what environment did you encounter the issue?

Phone environments

  • Phosh
  • Plasma Mobile
  • Sxmo

Other

  • No environment
  • GNOME
  • KDE Plasma
  • Kodi
  • MATE
  • Shelli
  • Sway
  • Weston
  • Xfce4
  • fbkeyboard
  • i3wm

How did you get postmarketOS image?

What's the build date of the image? (in yyyy-mm-dd format)

Up to date (12/11/2020)

Edited by Dylan Van Assche