You are not logged in.
Hello people,
I want to add a simple patch to my kernel, more specifically to usbquirks.h.
I want this to make a MEDI keyboard work properly with my machine.
What I want to add is:
{
/* has ID 0x0110 when not in Advanced Driver mode */
USB_DEVICE_VENDOR_SPEC(0x0582, 0x010f),
.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
/* .vendor_name = "Roland", */
/* .product_name = "A-PRO", */
.ifnum = 1,
.type = QUIRK_MIDI_FIXED_ENDPOINT,
.data = & (const struct snd_usb_midi_endpoint_info) {
.out_cables = 0x0003,
.in_cables = 0x0007
}
}
}
I have some idea that I maybe need to recompile my kernel, or maybe I can just make a patch an apply it, but I have now idea how to go about it. Maybe there is a smarter way to do it?
I've tried looking around, but can't find any information on how to make a patch as such. Any help or pointers to help are appreciated.
Thanks!
MOD EDIT: Change title from 'closed' to 'solved' to avoid confusion
Last edited by fukawi2 (2013-06-27 22:57:22)
Offline
Moving to Programming and Scripting...
Offline
Unless that can be compiled as a module, I believe you wil need to patch the file prior to a kernel build. See the wiki article on ABS for more on how to do this if you do not know.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Unless that can be compiled as a module, I believe you wil need to patch the file prior to a kernel build. See the wiki article on ABS for more on how to do this if you do not know.
I'm reading up on ABS now.
As regard to the module approach; how would I find out if I can compile it as a module?
Offline
Where are you getting your information? There is no file called 'usbquirks.h' in the current kernel's source.
Offline
Where are you getting your information? There is no file called 'usbquirks.h' in the current kernel's source.
Offline
Well here's a classic X-Y problem. That information is almost 3 years old. The kernel has changed a little since then.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Indeed.
Mhyperbolic, I recommend you start a new thread describing in detail the issue you are dealing with, what you have tried so far, the expected results, and the actual results.
<edit>I've now done what you failed to do - read your own link thoroughly. The last post says:
Try adding the following entry to sound/usb/quirks-table.h or usbquirks.h
(my emphasis)
If you had said that from the start, you'd have saved all of us some aggravation, because quirks-table.h does exist.
<edit-the-edit>Not only that, but it already includes the patch you want to add!! So it has nothing to do with the issue that you may or may not be experiencing and about which you have told us nothing.
Last edited by tomk (2013-06-27 12:04:49)
Offline
Indeed.
Mhyperbolic, I recommend you start a new thread describing in detail the issue you are dealing with, what you have tried so far, the expected results, and the actual results.
<edit>I've now done what you failed to do
- read your own link thoroughly. The last post says:
Try adding the following entry to sound/usb/quirks-table.h or usbquirks.h
(my emphasis)
If you had said that from the start, you'd have saved all of us some aggravation, because quirks-table.h does exist.
<edit-the-edit>Not only that, but it already includes the patch you want to add!! So it has nothing to do with the issue that you may or may not be experiencing and about which you have told us nothing.
I see. I'm sorry, I didn't know where to look for quirks-table.h or usbquirks.h, and thus see weather the patch was already included. The linked site described my problem, and so I mistakenly thought I was the same problem with the kernel, and back then.
I will mark the thread closed, and start one with the actual problem.
Thanks for the clarification.
Offline
Please re-edit your title and mark it as [Solved] . I am not a moderator but as far as I know "closed" is used by internal system to close a thread for anymore replies.
Never argue with stupid people,They will drag you down to their level and then beat you with experience.--Mark Twain
@github
Offline
Please re-edit your title and mark it as [Solved] . I am not a moderator but as far as I know "closed" is used by internal system to close a thread for anymore replies.
That's right: https://wiki.archlinux.org/index.php/Fo … ow_to_Post
Finally, when a solution is found, mark your thread as solved by editing the first post and prepending the tag [SOLVED] to the title in the "Subject" field.
Note that you should avoid using [CLOSED], which is instead used by the system to mark a thread which is no longer accessible for new posts.
Offline