Commit 1cda83e4 authored by Cezary Rojewski's avatar Cezary Rojewski Committed by Takashi Iwai
Browse files

ASoC: SOF: Fix compilation when HDA_AUDIO_CODEC config is disabled



hda_codec_device_init() expects three parameters, not two.

Fixes: 3fd63658 ("ASoC: Intel: Drop hdac_ext usage for codec device creation")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220819124740.3564862-1-cezary.rojewski@intel.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent da9d635f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -213,7 +213,7 @@ static int hda_codec_probe(struct snd_sof_dev *sdev, int address,
		put_device(&codec->core.dev);
	}
#else
	codec = hda_codec_device_init(&hbus->core, address);
	codec = hda_codec_device_init(&hbus->core, address, HDA_DEV_ASOC);
	ret = PTR_ERR_OR_ZERO(codec);
#endif