ALSA: ali5451: Support PCM sync_stop
[platform/kernel/linux-starfive.git] / sound / pci / ali5451 / ali5451.c
index 2cf3767..9f78cf9 100644 (file)
@@ -2026,6 +2026,7 @@ static int snd_ali_resources(struct snd_ali *codec)
                return -EBUSY;
        }
        codec->irq = codec->pci->irq;
+       codec->card->sync_irq = codec->irq;
        dev_dbg(codec->card->dev, "resources allocated.\n");
        return 0;
 }
@@ -2099,8 +2100,6 @@ static int snd_ali_create(struct snd_card *card,
                return -EBUSY;
        }
 
-       synchronize_irq(pci->irq);
-
        codec->synth.chmap = 0;
        codec->synth.chcnt = 0;
        codec->spdif_mask = 0;