10-26-2021, 03:39 PM
(10-19-2021, 06:11 PM)megous Wrote:(10-18-2021, 08:25 PM)D34DP1X3L Wrote: Sorry if there is a thread about this somewhere else. Currently using pboot with the Megi's latest kernel , I for the life of me can't figure out how to get sound to output properly ... If someone can point me to the right direction of what I'm missing any help would be greatly appricated.Call audio always uses /dev/snd/controlC0 and that may not be the right "audio card" if you have more than one.
created asound.conf file in arch. setting
defaluts.pcm.card 1
defaults.ctl.card 1
complied Megi's latest callaudio program , tried running it with
callaudio -s and callaudio s
all I'm getting is alot of stuff that is
is defined in state but not present on card ...
alsa mixer is showing pinephone is selected and I have lineout unmuted , tried speaker test ... still no sound. let me know of anything that might help or I have missed
Cheers. Also please let me know of the correct place to post to if this is the worng place. Love the Megi kernel btw it boots so fast... just want to get around this sound issue.
If you have more /dev/snd/controlC# files you can try changing callaudio.c code to a different one.
EDIT: I've added card autodetection to the program: https://megous.com/git/pinephone-call-audio/ So maybe try the new code.
Anyway, that code is mostly useful for phone call audio setup. For normal playback/recording, you'd have to extend it a bit I guess.
The routing defined by that program is documented here https://xnux.eu/devices/feature/audio-pp.html
You can use that same diagram to configure your own routing using alsamixer. It's not enough to enable line out. You have to enable the digital audio paths from the digital audio interfaces (that's where aplay/arecord get data to/from) via digital mixer before the DAC, enable DAC by setting some gain on it, etc.
One such working setup: https://megous.com/dl/tmp/31d31f81781a31dc.png
This worked like a charm , Such a great starting point. Cheers for this.