El Thu, Aug 10, 2017 at 12:54:56PM +0800 Jeffy Chen ha dit:i've thought about this too, but i'm working on converting rt5514 dsp(spi) from codec name matching to of_node, and it would have the same compatible with rt5514(i2c)
>Refactor rockchip_sound_probe, parse dai links from dts instead ofMark doesn't seem to be overly convinced that 'rockchip,codec-names'
>hard coding them.
is a good idea (https://lkml.org/lkml/2017/8/10/511).
How about using something like this instead:
static const char *dailink_compat[] = {
[DAILINK_MAX98357A] = "maxim,max98357a",
[DAILINK_RT5514] = "realtek,rt5514",
[DAILINK_DA7219] = "dlg,da7219",
};