diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-08-24 16:11:07 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-08-24 18:05:16 -0400 |
commit | e6b4c525d94e6fb28d5c4b9eb4016caa12f68841 (patch) | |
tree | 4c6b8f413aa906a2eef178d2320bb64195df447d /sound/core | |
parent | b8e2204b25a50e389dfb50eeff163fa796a8ec6e (diff) |
ALSA: pcm: Correct broken procfs set up
The commit c8da9be4a75f ("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
warning.
Fixes: c8da9be4a75f ("ALSA: pcm: Adjust nine function calls together...")
Reported-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index c790f79e45ae..7eadb7fd8074 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -625,7 +625,8 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) | |||
625 | } | 625 | } |
626 | } | 626 | } |
627 | substream->proc_sw_params_entry = entry; | 627 | substream->proc_sw_params_entry = entry; |
628 | entry = snd_info_create_module_entry(THIS_MODULE, "pcm", NULL); | 628 | entry = snd_info_create_card_entry(card, "status", |
629 | substream->proc_root); | ||
629 | if (entry) { | 630 | if (entry) { |
630 | snd_info_set_text_ops(entry, substream, | 631 | snd_info_set_text_ops(entry, substream, |
631 | snd_pcm_substream_proc_status_read); | 632 | snd_pcm_substream_proc_status_read); |