diff options
author | Takashi Iwai <tiwai@suse.de> | 2022-09-26 16:55:52 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-09-27 09:47:33 +0300 |
commit | 38d8be5df88539dc4a024250ab5988028e21826e (patch) | |
tree | c435aa9efbdd6d46346f9f0c9b9c7d675e84d75c /sound/hda | |
parent | 23cb0767f0544858169c02cec445d066d4e02e2b (diff) | |
download | linux-38d8be5df88539dc4a024250ab5988028e21826e.tar.xz |
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>
Diffstat (limited to 'sound/hda')
-rw-r--r-- | sound/hda/hdmi_chmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/hdmi_chmap.c b/sound/hda/hdmi_chmap.c index aad5c4bf4d34..5d8e1d944b0a 100644 --- a/sound/hda/hdmi_chmap.c +++ b/sound/hda/hdmi_chmap.c @@ -774,7 +774,7 @@ static int hdmi_chmap_ctl_put(struct snd_kcontrol *kcontrol, substream = snd_pcm_chmap_substream(info, ctl_idx); if (!substream || !substream->runtime) 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_SETUP: break; |