mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
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: 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>
This commit is contained in:
parent
38d8be5df8
commit
7246e5c806
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user