ALSA: asihpi: Replace runtime->status->state reference to runtime->state
authorTakashi Iwai <tiwai@suse.de>
Mon, 26 Sep 2022 13:55:53 +0000 (15:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Sep 2022 06:47:56 +0000 (08:47 +0200)
The recent change in ALSA core allows drivers to get the current PCM
state directly from runtime object.  Replace the calls accordingly.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20220926135558.26580-7-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c

index 5e1f9f10051bcb01d78451ddfd39079d93665f45..8de43aaa10aac953667f70f94cd3066fdf58138c 100644 (file)
@@ -632,7 +632,7 @@ static int snd_card_asihpi_trigger(struct snd_pcm_substream *substream,
 
                        /*? workaround linked streams don't
                        transition to SETUP 20070706*/
-                       s->runtime->status->state = SNDRV_PCM_STATE_SETUP;
+                       __snd_pcm_set_state(s->runtime, SNDRV_PCM_STATE_SETUP);
 
                        if (card->support_grouping) {
                                snd_printdd("%d group\n", s->number);