ASoC: hdac_hda: fix HDA patch loader support
authorBard Liao <yung-chuan.liao@linux.intel.com>
Thu, 21 Sep 2023 06:43:17 +0000 (14:43 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 Sep 2023 13:34:04 +0000 (14:34 +0100)
commit2f3fb85b258334a4247af5c92b4a21480ca5634e
treeff4518a3559e47ad54edc22fdd43c33492038f36
parent667f45ca80cbf344695cf3a58eeb2191e6724de6
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>
sound/soc/codecs/hdac_hda.c
sound/soc/codecs/hdac_hda.h