]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: rk817: Add module alias for rk817-codec
authorNicolas Frattaroli <frattaroli.nicolas@gmail.com>
Sun, 21 Nov 2021 15:05:20 +0000 (16:05 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Nov 2021 15:40:03 +0000 (15:40 +0000)
Without a module alias, autoloading the driver does not occurr
when it is built as a module.

By adding a module alias, the driver now probes fine automatically
and therefore analog audio output works as it should.

Fixes: 2bbd13c02eb8 ("ASoC: Add Rockchip rk817 audio CODEC support")
Signed-off-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Link: https://lore.kernel.org/r/20211121150521.159543-1-frattaroli.nicolas@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rk817_codec.c

index 943d7d933e81b3325e3ae09a25df7c1ada8e422d..03f24edfe4f6492b86fe8fc97a3ae362b6083e50 100644 (file)
@@ -539,3 +539,4 @@ module_platform_driver(rk817_codec_driver);
 MODULE_DESCRIPTION("ASoC RK817 codec driver");
 MODULE_AUTHOR("binyuan <kevan.lan@rock-chips.com>");
 MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:rk817-codec");