projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23cb076
)
ALSA: hda: Replace runtime->status->state reference to runtime->state
author
Takashi Iwai
<tiwai@suse.de>
Mon, 26 Sep 2022 13:55:52 +0000
(15:55 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 27 Sep 2022 06:47:33 +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-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdmi_chmap.c
patch
|
blob
|
history
diff --git
a/sound/hda/hdmi_chmap.c
b/sound/hda/hdmi_chmap.c
index aad5c4bf4d3441754b0ec1d5d046b438b1ee6c5e..5d8e1d944b0afb2128c8770583f947eb3d3df85e 100644
(file)
--- 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->stat
us->stat
e) {
+ switch (substream->runtime->state) {
case SNDRV_PCM_STATE_OPEN:
case SNDRV_PCM_STATE_SETUP:
break;