sdm660-mainline / linux

Linux kernel source tree
Other
26 stars 15 forks source link

Sound support #17

Open minlexx opened 6 months ago

minlexx commented 6 months ago

We need to test commits from https://github.com/flamingradian/linux/commits/broken-sound-for-sdm660

Thanks flamingradian!

logs from sdm660-mainline matrix channel

flamingradian: oh yeah, the downstream code for sound on my device kept mentioning this SoC,
so that is an adaptation of headphones support on Pixel 3a
sdm670 and 660 devices seem to have the same sound card, analog codec, and digital codec
thing is, I don't actually have an sdm660 device and I'm not familiar with sdm660 downstream
also, don't put on headphones while testing them until you know how loud it is, because there
might be noise (quirk in "ASoC: msm8916-wcd-analog: add quirk for cajon 2.0")
this also needs alsa ucm configs to work

Alexey Min
I can test, but ASoC is not among my skills

flamingradian
shouldn't be that hard, just building the patched kernel, installing alsa-ucm-conf,
adding more configs, and plugging something in
there might be loud noises playing if something goes wrong (the quirk mentioned above),
I don't know the real safety precautions for that but keeping headphones on a desk and
gradually bringing them closer to my ear works for me
the configuration for the sound card is searched in
/usr/share/alsa/ucm2/conf.d/<driver name> /<model name>.conf, normally a symlink
e.g. /usr/share/alsa/ucm2/conf.d/sdm660-internal/Xiaomi Redmi Note 7.conf ->
    /usr/share/alsa/ucm2/Xiaomi/lavender/lavender.conf
minlexx commented 6 months ago

Config files mentioned above alsa-configs.tar.gz