Qualcomm Snapdragon 410 (MSM8916)
Audio should work out of the box with PulseAudio. In your favorite PulseAudio mixer (e.g.
pulsemixer on the command line) you can select the output port to use (e.g. Speaker, Earpiece, ...).
Everything is muted by default and must be enabled through alsaucm. Unfortunately, the tool is not very user-friendly.
$ alsaucm -i -c hw:0 set _verb HiFi set _enadev <device>
<device> is one of
alsaucm does not track which devices are already enabled, therefore it is possible to produce combinations that won't work properly (e.g.
Earpiece). To switch between devices, the old device first needs to be re-enabled and then disabled:
$ alsaucm -i -c hw:0 set _verb HiFi set _enadev OLD set _disdev OLD set _enadev NEW
To use the modem, select the
mainline-modem kernel instead of
mainline, and make sure to agree to the usage of non-free firmware (required for the modem).
Note that this changes the way audio is routed on the device:
- Without modem, audio is routed directly to the audio hardware, and works without the need for non-free firmware.
- With modem running, audio must be routed through the audio DSP, which requires non-free firmware.
Therefore you should choose the kernel depending whether or not you would like to run the modem.
At the moment, the modem is primarily tested using the oFono test scripts.
$ sudo apk add ofono-scripts py3-dbus $ /usr/lib/ofono/test/enable-modem $ /usr/lib/ofono/test/online-modem $ /usr/lib/ofono/test/list-modems
Unlock the SIM card:
$ /usr/lib/ofono/test/enter-pin pin <pin>
Eventually, your SIM card should show up as registering in
ofonoctl is also very useful test tool:
$ sudo apk add ofonoctl $ ofonoctl list
receive-sms test scripts (the latter requires
$ /usr/lib/ofono/test/send-sms "COUNTRYCODENUMBER" "Test SMS from oFono" 0 Send message using modem /gobi_0 ... /gobi_0/message_9914F33A7C53DD6F080B38755E7D64FD59EA8F8F
- MSM8916 is a great platform to get started with mainlining! It has a dedicated MSM8916 Mainlining guide that explains how to get started.