Commit graph

7 commits

Author SHA1 Message Date
Minecrell
b3248bfd32
device/community/soc-qcom-msm8916: fix regressions after PA update (MR 1760)
New upstream ALSA/PulseAudio release, new UCM regressions - of course!
Introduce some new hacks to make the ALSA UCM configurations work again.

This fixes weird "Combination of Speaker,Primary Microphone" outputs
appearing in the PulseAudio mixer.

And while we're at it, some minor improvements/additions:

  - Default to Speaker/PrimaryMic instead of Headphones/Headset
    I believe this is just a workaround until headphones detection
    works properly.

  - Add UCM configurations for oppo-a51f and lenovo-a6010
2020-11-26 11:45:14 +01:00
Minecrell
421095284a
device/community/soc-qcom-msm8916: fork alsa-ucm-conf entirely (MR 1655)
Upstream keeps making breaking changes in patch releases.
Let's fork alsa-ucm-conf entirely for now instead of just patching
in some files to ensure that these files don't break every few months.

This fixes audio on MSM8916 devices when not using the modem.
2020-10-30 17:10:18 +01:00
Minecrell
e9925b4a72
device/community/soc-qcom-msm8916: update ALSA UCM configurations (MR 1603)
- Add UCM configuration for Xiaomi Redmi 2 (wt88047)
- Add UCM configuration for Xiaomi Redmi Note 4 (xiaomi-mido)
- Some fixes to UCM configuration for BQ Aquaris X5 (bq-paella)
2020-10-05 02:16:19 +03:00
Minecrell
8e080015d7
modem/msm-modem: rename msm-modem-mainline to msm-modem-rpmsg (MR 1356)
Newer Qualcomm SoCs (e.g. SDM845. MSM8953) seem to use a different
method to talk to the modem. There are no longer separate rpmsg/SMD
channels for QMI messags, instead the modem is also available through QRTR.

On these newer SoCs, installing msm-modem-mainline is pointless,
because the created /dev/modem device will not actually allow
communicating with the modem. However, you still need the part from
the base package (msm-modem), which installs+enables rmtfs.

To avoid confusion, rename the msm-modem-mainline subpackage to
msm-modem-rpmsg. Install only "msm-modem" on SDM845 because that
likely does not allow communication with the modem through RPMSG
anyway.
2020-06-25 09:41:35 +02:00
Minecrell
af01e26142
device/community/soc-qcom-msm8916: install alsa-ucm-conf (MR 1307)
Newer versions of alsa-lib now require a top-level ALSA UCM
configuration (/usr/share/alsa/ucm2/ucm.conf):

    ALSA lib parser.c:2159:(load_toplevel_config) Unable to find the top-level configuration file '/usr/share/alsa/ucm2/ucm.conf'.
    ALSA lib main.c:983:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -2
    alsaucm: error failed to open sound card hw:0: No such file or directory

The upstream ALSA UCM configurations are provided by Alpine's
"alsa-ucm-conf" package, so make sure to install it additionally.
2020-06-16 12:42:41 +02:00
Minecrell
d7306531f5
soc-qcom-msm8916: add ALSA UCM configuration for bq-paella (MR 1295)
bq-paella has an external speaker amplifier connected to the right
channel of the headphones output. Add an extra UCM configuration
to handle this properly.
2020-06-09 23:18:38 +03:00
Minecrell
d021832955
samsung-a5(u)lte: move from testing to community (MR 1273)
a5lte and a5ulte are almost identical hardware-wise, the separate
package is mainly necessary because they use different firmware
signatures.

Alexey Min agreed to do some testing occasionally :)
2020-06-03 13:46:00 +02:00