PINE64
Can't figure out audio routing for modem - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: Can't figure out audio routing for modem (/showthread.php?tid=9661)



Can't figure out audio routing for modem - strake - 04-15-2020

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?


RE: Can't figure out audio routing for modem - wibble - 04-21-2020

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.


RE: Can't figure out audio routing for modem - strake - 04-30-2020

(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.)


RE: Can't figure out audio routing for modem - dustfinger - 05-21-2020

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?


RE: Can't figure out audio routing for modem - nieral - 05-22-2020

(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!!