projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
483dd12
)
ALSA: usb: midi: use snd_kcontrol_chip()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Wed, 7 May 2025 04:59:50 +0000
(
04:59
+0000)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 8 May 2025 09:53:34 +0000
(11:53 +0200)
We can use snd_kcontrol_chip(). Let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link:
https://patch.msgid.link/87o6w5aud5.wl-kuninori.morimoto.gx@renesas.com
sound/usb/midi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/midi.c
b/sound/usb/midi.c
index dcdd7e9e1ae9743d760c812dd6a600ca199bac9a..5f98276113d7d9fa02c68a1dd2cfe185e10d4d7d 100644
(file)
--- a/
sound/usb/midi.c
+++ b/
sound/usb/midi.c
@@
-2080,7
+2080,7
@@
static int roland_load_get(struct snd_kcontrol *kcontrol,
static int roland_load_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *value)
{
- struct snd_usb_midi *umidi =
kcontrol->private_data
;
+ struct snd_usb_midi *umidi =
snd_kcontrol_chip(kcontrol)
;
int changed;
if (value->value.enumerated.item[0] > 1)