mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 17:36:57 +07:00
ASoC: Intel: Skylake: Update the rtd query
sound card rtd was an array and was updated to a list so update the driver to use a list Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
b590d5e2ca
commit
85af2a6651
@ -35,12 +35,10 @@ static struct snd_soc_card skylake_audio_card;
|
||||
|
||||
static inline struct snd_soc_dai *skl_get_codec_dai(struct snd_soc_card *card)
|
||||
{
|
||||
int i;
|
||||
struct snd_soc_pcm_runtime *rtd;
|
||||
|
||||
for (i = 0; i < card->num_rtd; i++) {
|
||||
struct snd_soc_pcm_runtime *rtd;
|
||||
list_for_each_entry(rtd, &card->rtd_list, list) {
|
||||
|
||||
rtd = card->rtd + i;
|
||||
if (!strncmp(rtd->codec_dai->name, SKL_NUVOTON_CODEC_DAI,
|
||||
strlen(SKL_NUVOTON_CODEC_DAI)))
|
||||
return rtd->codec_dai;
|
||||
|
Loading…
Reference in New Issue
Block a user