mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
ASoC: rk_codec_digital: Build depends on CPU config
$ ./scripts/bloat-o-meter rk_codec_digital.o.old rk_codec_digital.o add/remove: 1/10 grow/shrink: 0/1 up/down: 4/-796 (-792) Function old new delta rv1126_data 8 - -8 rk3588_data 8 - -8 rk3568_data 8 - -8 rv1126_soc_deinit 28 - -28 rk3588_soc_deinit 28 - -28 rk3568_soc_deinit 28 - -28 rv1126_soc_init 32 - -32 rk3588_soc_init 32 - -32 rk3568_soc_init 32 - -32 rcd_of_match 1176 588 -588 Total: Before=8057, After=7265, chg -9.83% Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com> Change-Id: I40332029ac33a29cff039ec07ea3a2d0995badac
This commit is contained in:
@@ -968,10 +968,18 @@ static const struct rk_codec_digital_soc_data rv1126_data = {
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id rcd_of_match[] = {
|
||||
{ .compatible = "rockchip,codec-digital-v1", },
|
||||
#ifdef CONFIG_CPU_RK3568
|
||||
{ .compatible = "rockchip,rk3568-codec-digital", .data = &rk3568_data },
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RK3588
|
||||
{ .compatible = "rockchip,rk3588-codec-digital", .data = &rk3588_data },
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RV1106
|
||||
{ .compatible = "rockchip,rv1106-codec-digital", .data = &rv1106_data },
|
||||
#endif
|
||||
#ifdef CONFIG_CPU_RV1126
|
||||
{ .compatible = "rockchip,rv1126-codec-digital", .data = &rv1126_data },
|
||||
#endif
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, rcd_of_match);
|
||||
|
||||
Reference in New Issue
Block a user