Commit 7246e5c8 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: asihpi: Replace runtime->status->state reference to runtime->state



The recent change in ALSA core allows drivers to get the current PCM
state directly from runtime object.  Replace the calls accordingly.

Reviewed-by: default avatarJaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20220926135558.26580-7-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 38d8be5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);