OpenCloudOS-Kernel/sound/soc/qcom
Srinivas Kandagatla 3f48b6eba1
ASoC: qcom: sdm845: set driver name correctly
With the current state of code, we would endup with something like
below in /proc/asound/cards for 2 machines based on this driver.

Machine 1:
 0 [DB845c            ]: DB845c - DB845c
                       DB845c
Machine 2:
 0 [LenovoYOGAC6301]: Lenovo-YOGA-C63 - Lenovo-YOGA-C630-13Q50
                     LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216

This is not very UCM friendly both w.r.t to common up configs and
card identification, and UCM2 became totally not usefull with just
one ucm sdm845.conf for two machines which have different setups
w.r.t HDMI and other dais.

Reasons for such thing is partly because Qualcomm machine drivers never
cared to set driver_name.

This patch sets up driver name for the this driver to sort out the
UCM integration issues!

after this patch contents of /proc/asound/cards:

Machine 1:
 0 [DB845c         ]: sdm845 - DB845c
                      DB845c
Machine 2:
 0 [LenovoYOGAC6301]: sdm845 - Lenovo-YOGA-C630-13Q50
                     LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216

with this its possible to align with what UCM2 expects and we can have
sdm845/DB845.conf
sdm845/LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216.conf
... for board variants. This should scale much better!

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20201023095849.22894-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-10-23 18:28:50 +01:00
..
qdsp6 ASoC: q6afe-clocks: Fix typo in SPDX Licence 2020-09-28 11:32:13 +01:00
Kconfig ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
Makefile ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
apq8016_sbc.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00
apq8096.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00
common.c Merge branch 'asoc-5.9' into asoc-5.10 2020-09-17 16:35:38 +01:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
lpass-apq8016.c ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-cpu.c ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-hdmi.c ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-hdmi.h ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-ipq806x.c ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-lpaif-reg.h ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-platform.c Asoc: qcom: lpass-platform : Increase buffer size 2020-10-08 20:27:35 +01:00
lpass-sc7180.c ASoC: qcom: sc7180: Add support for audio over DP 2020-10-08 20:27:36 +01:00
lpass.h ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
sdm845.c ASoC: qcom: sdm845: set driver name correctly 2020-10-23 18:28:50 +01:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00