Commit e6b4c525 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: pcm: Correct broken procfs set up

The commit c8da9be4 ("ALSA: pcm: Adjust nine function calls
together with a variable assignment") contained a badly incorrect
conversion, a "status" PCM procfs creation was replaced with the next
one.  Luckily, this could be spotted easily by the kernel runtime

Fixes: c8da9be4 ("ALSA: pcm: Adjust nine function calls together...")
Reported-by: default avatarFabio Estevam <>
Tested-by: default avatarFabio Estevam <>
Signed-off-by: default avatarTakashi Iwai <>
parent b8e2204b
...@@ -625,7 +625,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) ...@@ -625,7 +625,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
} }
} }
substream->proc_sw_params_entry = entry; substream->proc_sw_params_entry = entry;
entry = snd_info_create_module_entry(THIS_MODULE, "pcm", NULL); entry = snd_info_create_card_entry(card, "status",
if (entry) { if (entry) {
snd_info_set_text_ops(entry, substream, snd_info_set_text_ops(entry, substream,
snd_pcm_substream_proc_status_read); snd_pcm_substream_proc_status_read);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment