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

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.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent da9d635f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment