Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: xlnx: zynqmp_dpsub: use snd_soc_dummy_dlc

struct zynqmp_dp_audio :: components has codec component, but it is
used as dummy DAI. OTOH, We can use common snd_soc_dummy_dlc.
Let's use common dummy_dlc instead of own component.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://lore.kernel.org/r/87ecxvr25o.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>

authored by

Kuninori Morimoto and committed by
Tomi Valkeinen
9aa94cab 2b5bd56b

+1 -4
+1 -4
drivers/gpu/drm/xlnx/zynqmp_dp_audio.c
··· 45 45 46 46 struct { 47 47 struct snd_soc_dai_link_component cpu; 48 - struct snd_soc_dai_link_component codec; 49 48 struct snd_soc_dai_link_component platform; 50 49 } components[ZYNQMP_NUM_PCMS]; 51 50 ··· 402 403 link->num_cpus = 1; 403 404 link->cpus[0].dai_name = audio->dai_name; 404 405 405 - link->codecs = &audio->components[i].codec; 406 + link->codecs = &snd_soc_dummy_dlc; 406 407 link->num_codecs = 1; 407 - link->codecs[0].name = "snd-soc-dummy"; 408 - link->codecs[0].dai_name = "snd-soc-dummy-dai"; 409 408 410 409 link->platforms = &audio->components[i].platform; 411 410 link->num_platforms = 1;