Re: [PATCH] usb: gadget: f_midi: Add configfs attrs for card and device

2018-04-10 Thread Jerry Zhang
Ah nevermind looks like there is already a way to get this info via the controller sysfs : /sys/devices/soc/a80.ssusb/a80.dwc3/gadget/sound/card7/midiC7D0/. Let's drop this patch --Jerry On Mon, Apr 9, 2018 at 6:56 PM Jerry Zhang wrote: > I didn't realize that having function in func_in

Re: [PATCH] usb: gadget: f_midi: Add configfs attrs for card and device

2018-04-09 Thread Jerry Zhang
I didn't realize that having function in func_inst was actually android only. I think we can track card and device values in f_midi_opts in that case, and update them as they change. I'll put up a fix soon. On Mon, Apr 9, 2018 at 6:27 PM kbuild test robot wrote: > Hi Jerry, > Thank you for the

Re: [PATCH] usb: gadget: f_midi: Add configfs attrs for card and device

2018-04-09 Thread kbuild test robot
Hi Jerry, Thank you for the patch! Yet something to improve: [auto build test ERROR on balbi-usb/next] [also build test ERROR on v4.16 next-20180409] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/comm

[PATCH] usb: gadget: f_midi: Add configfs attrs for card and device

2018-04-09 Thread Jerry Zhang
An f_midi instance will have a corresponding native device in /dev/snd/midiC%dD%d where the first number is the number of the sound card and the second is the number of the device. Expose both of these through configfs so the user can find the correct sound device. The configfs attrs are read only