aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/intel/hda-codec.c
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2022-08-19 14:47:40 +0200
committerTakashi Iwai <tiwai@suse.de>2022-08-19 14:55:40 +0200
commit1cda83e42bf66beb06bf61c7a78951ec0c028898 (patch)
tree0000d680dfc2aa2b75651d07c51ea0cdc0d3bada /sound/soc/sof/intel/hda-codec.c
parentALSA: hda: Remove unused defines (diff)
downloadlinux-dev-1cda83e42bf66beb06bf61c7a78951ec0c028898.tar.xz
linux-dev-1cda83e42bf66beb06bf61c7a78951ec0c028898.zip
ASoC: SOF: Fix compilation when HDA_AUDIO_CODEC config is disabled
hda_codec_device_init() expects three parameters, not two. Fixes: 3fd63658caed ("ASoC: Intel: Drop hdac_ext usage for codec device creation") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220819124740.3564862-1-cezary.rojewski@intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/sof/intel/hda-codec.c')
-rw-r--r--sound/soc/sof/intel/hda-codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/intel/hda-codec.c b/sound/soc/sof/intel/hda-codec.c
index 73336648cd25..1e9afc48394c 100644
--- a/sound/soc/sof/intel/hda-codec.c
+++ b/sound/soc/sof/intel/hda-codec.c
@@ -213,7 +213,7 @@ out:
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