Can't figure out audio routing for modem
#1
Question 
I have PMOS installed on my device, and can play sound (with mpv, for example) thru speakers, earpiece, and headphone jack, and make a voice call by sending "ATD". However, i can't figure out how to connect the modem audio. I have been following this guide, including using the included audio routing setup utility, but when i call a test number (for example: 1-800-437-7950) hear no sound — neither ringback nor sound from the other party.

I look at alsamixer and am daunted at the number of knobs. I've been viewing the diagram in aforesaid guide, but it's not helping me figure out which switch values in alsamixer mean which paths in the schematic.

"alsactl -L store" output

I am on T-Mobile in North America.

How can i route audio between the modem and mic/earpiece/etc?
#2
I think pmos is using alsaucm (or its API level equivalent) to change profiles. You can see the changes this applies between the "HiFi" and "Voice Call" settings with:

Code:
alsaucm -c sun50i-a64-audio dump text
It's a new tool for me, so the best I can suggest is checking the examples in the man page, and the alsa docs for generating the profiles.
#3
(04-21-2020, 12:34 PM)wibble Wrote: I think pmos is using alsaucm (or its API level equivalent) to change profiles. You can see the changes this applies between the "HiFi" and "Voice Call" settings with:

Code:
alsaucm -c sun50i-a64-audio dump text
It's a new tool for me, so the best I can suggest is checking the examples in the man page, and the alsa docs for generating the profiles.

Thank you! It seems PMOS has no alsa-ucm-conf-doc package but i think i found it online. The "dump text" shows a Verb."Voice Call", so i'll try that and post here how it goes.

(Thanks also for your patience — i ordered a new SIM card to use in my PinePhone so my friends+family can still reach me while i'm hacking it, and was waiting to get it.)
#4
Did you follow Setting Up the Modem For Voice Calling? Since you have audio configured in userspace on the Phone, I suspect the problem is that you have not configured audio on the modem side. You need to run the following AT command one time to configure the modem for audio:

Code:
AT+QDAI=1,0,0,2,0,1,1,1


Does that solve your problem?
#5
(05-21-2020, 01:52 PM)dustfinger Wrote: Did you follow Setting Up the Modem For Voice Calling? Since you have audio configured in userspace on the Phone, I suspect the problem is that you have not configured audio on the modem side. You need to run the following AT command one time to configure the modem for audio:

Code:
AT+QDAI=1,0,0,2,0,1,1,1


Does that solve your problem?

Worked for me! Thank you!!


Possibly Related Threads…
Thread Author Replies Views Last Post
  Plasma mobile latest stable @pp1.2b voice calling audio issue n05ph3r42 3 1,573 10-03-2023, 06:32 PM
Last Post: Kevin Kofler
  installed postmarketos v23.06 no audio samlo 1 1,294 07-14-2023, 12:53 AM
Last Post: samlo
  pmos/phosh edge update and audio disappears robthebold 9 7,189 07-10-2022, 03:26 AM
Last Post: arkadione
  Latest suggestion to fix modem instability? feklee 10 10,555 01-31-2022, 01:16 PM
Last Post: feklee
Thumbs Up Modem Shutdown/Startup Scripts big_fluff 0 2,063 05-08-2021, 12:59 AM
Last Post: big_fluff
  PMOS test image: failed EG25 test broke modem fw MtnSk8 4 6,716 02-28-2021, 02:20 PM
Last Post: MtnSk8
  Modem can't dial out jmorris 12 15,835 11-25-2020, 08:24 PM
Last Post: bcnaz
  call audio qiset 23 32,894 11-18-2020, 05:17 PM
Last Post: KNERD
  headset audio left <-> right desca 3 4,874 09-17-2020, 02:59 PM
Last Post: desca

Forum Jump:


Users browsing this thread: 1 Guest(s)