diff options
author | 2014-10-16 13:33:25 +0200 | |
---|---|---|
committer | 2014-11-05 13:36:02 -0600 | |
commit | 6e58ed578e2c65442b7a02deecc96e482c701654 (patch) | |
tree | ffe84c23114f7c6829a0bb8f64d37ce9b1cf8bca /drivers/usb/phy/phy-generic.c | |
parent | usb: gadget: Kconfig: enable separate compilation of uac1/uac2 functions (diff) | |
download | wireguard-linux-6e58ed578e2c65442b7a02deecc96e482c701654.tar.xz wireguard-linux-6e58ed578e2c65442b7a02deecc96e482c701654.zip |
usb: gadget: f_midi: enable use of the index parameter
The soundcard index to use for the ALSA device creation is passed as a
parameter to f_midi_bind_config(), but is assigned to midi->index only
after the call to f_midi_register_card(midi). So no matter what is passed
to f_midi_bind_config(), the actual index for snd_card_new() is always 0.
This probably works ok if at the moment of f_midi's bind there are no
other snd_cards, but if there are, it is not possible to bind f_midi.
This patch moves the assignment to a place before the call to
f_midi_register_card(midi).
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-generic.c')
0 files changed, 0 insertions, 0 deletions