summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/hdac_hda.h
diff options
context:
space:
mode:
authorBard Liao <yung-chuan.liao@linux.intel.com>2023-09-21 08:43:17 +0200
committerMark Brown <broonie@kernel.org>2023-09-21 15:34:04 +0200
commit2f3fb85b258334a4247af5c92b4a21480ca5634e (patch)
treeff4518a3559e47ad54edc22fdd43c33492038f36 /sound/soc/codecs/hdac_hda.h
parentMinor default jack pop performance updates (diff)
downloadlinux-2f3fb85b258334a4247af5c92b4a21480ca5634e.tar.xz
linux-2f3fb85b258334a4247af5c92b4a21480ca5634e.zip
ASoC: hdac_hda: fix HDA patch loader support
The array size is irrelevant with SNDRV_CARDS. dev_index is from codec address and the available codec number is HDA_MAX_CODECS. Also, hda_pvt->fw is for a temporary use, no need to add a new extra field in hdac_hda_priv{}. Fixes: 842a62a75e70 ("ASoC: hdac_hda: add HDA patch loader support") Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20230921064317.2120452-1-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/hdac_hda.h')
-rw-r--r--sound/soc/codecs/hdac_hda.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/codecs/hdac_hda.h b/sound/soc/codecs/hdac_hda.h
index b7a12aea8d32..d03a5d4e7288 100644
--- a/sound/soc/codecs/hdac_hda.h
+++ b/sound/soc/codecs/hdac_hda.h
@@ -27,9 +27,6 @@ struct hdac_hda_priv {
struct hdac_hda_pcm pcm[HDAC_DAI_ID_NUM];
bool need_display_power;
int dev_index;
-#ifdef CONFIG_SND_HDA_PATCH_LOADER
- const struct firmware *fw;
-#endif
};
struct hdac_ext_bus_ops *snd_soc_hdac_hda_get_ops(void);