mirror of
https://github.com/torvalds/linux
synced 2024-10-15 07:47:34 +00:00
ALSA: hda: 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-6-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
23cb0767f0
commit
38d8be5df8
|
@ -774,7 +774,7 @@ static int hdmi_chmap_ctl_put(struct snd_kcontrol *kcontrol,
|
||||||
substream = snd_pcm_chmap_substream(info, ctl_idx);
|
substream = snd_pcm_chmap_substream(info, ctl_idx);
|
||||||
if (!substream || !substream->runtime)
|
if (!substream || !substream->runtime)
|
||||||
return 0; /* just for avoiding error from alsactl restore */
|
return 0; /* just for avoiding error from alsactl restore */
|
||||||
switch (substream->runtime->status->state) {
|
switch (substream->runtime->state) {
|
||||||
case SNDRV_PCM_STATE_OPEN:
|
case SNDRV_PCM_STATE_OPEN:
|
||||||
case SNDRV_PCM_STATE_SETUP:
|
case SNDRV_PCM_STATE_SETUP:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue