LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > GlennsPref
User Name
Password

Notices

Rate this Entry

Real-Time Audio Part 2

Posted 01-26-2009 at 11:10 PM by GlennsPref

and added the Edirol patch to the RT kernel....

vi is a handy editor, We need admin rights to “save these files here”...

su (enter root password)

vi /usr/src/linux/Makefile

Quick vi tute
Code:
vi is operated in a shell, like Konsole or term

	Quick keys...

	I = insert “edit mode”
	Esc = exit mode/s
	:w = write
	:q = quit
	:wq! = force write quit (does not always over-ride the admin permissions)
/usr/src/linux/Makefile (Only showing the top 5 lines or so)...
Code:
	VERSION = 2
	PATCHLEVEL = 6
	SUBLEVEL = 26
	EXTRAVERSION = -music.8-1.rt13.1mdv
	NAME = GamesBox.GlennsPref.net
uname -a reveals the details of the running kernel (reflected from the installed kernel),
I don't want them all named “x.x-x-custom-x.x”,
I like task names more than reference numbers in my boot loader,
less geeky, more task oriented.

uname -a
Code:
	glenn@GamesBox:~/bin$ uname -a                                                                  (22-01 13:33)
	Linux GamesBox.GlennsPref.net 2.6.26-music.8-1.rt13.1mdv #3 SMP PREEMPT RT Wed
	Jan 14 20:45:45 EST 2009 x86_64 AMD Athlon(tm) 64 X2 Dual CoreProcessor 5600+
 	GNU/Linux glenn@GamesBox:~/bin$
Patch the kernel with the Edirol patch.

Copy the lines from the code box below to a file named /usr/src/linux/sound/usb/Edirol
-patch.diff

Change to the directory and run the patch...

cd /usr/src/linux/sound/usb
sudo patch < Edirol-patch.diff

Note:
When tested (25-01-2009, 12:09), the response was “patching file usbaudio.c
Reversed (or previously applied) patch detected! Assume -R? [n]”
I [ctrl+c] to kill the process (exit). I believe the process of how and where to patch the
kernel is concise now.



The Edirol UA-25EX Patch code...
ref. http://ubuntuforums.org/archive/index.php/t-908845.html

Copy all text in the next frame...(except the words, code ;-)
Code:
Add Alsa support for Roland Edirol UA-25EX in Advanced mode
(for MIDI support and sample rates of 48 kHz and 96 kHz)
usbquirks.h
================================================== =================
diff -u sound/usb/usbquirks.h.00 sound/usb/usbquirks.h
--- sound/usb/usbquirks.h.00 2007-11-28 02:15:11.000000000 -0700
+++ sound/usb/usbquirks.h 2007-11-28 02:17:51.000000000 -0700
@@ -1311,6 +1311,37 @@
}
},
/* TODO: add Edirol MD-P1 support */
+{ /*
+ * This quirk is for the "Advanced" modes of the Edirol UA-25EX.
+ * If the switch is not in an advanced setting, the UA-25EX has
+ * ID 0x0582/0x00a4 and is standard compliant (no quirks), but
+ * offers only 16-bit PCM at 44.1 kHz and no MIDI.
+ */
+ USB_DEVICE_VENDOR_SPEC(0x0582, 0x00e6),
+ .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
+ .vendor_name = "EDIROL",
+ .product_name = "UA-25EX",
+ .ifnum = QUIRK_ANY_INTERFACE,
+ .type = QUIRK_COMPOSITE,
+ .data = (const struct snd_usb_audio_quirk[]) {
+ {
+ .ifnum = 0,
+ .type = QUIRK_AUDIO_EDIROL_UA700_UA25
+ },
+ {
+ .ifnum = 1,
+ .type = QUIRK_AUDIO_EDIROL_UA700_UA25
+ },
+ {
+ .ifnum = 2,
+ .type = QUIRK_AUDIO_EDIROL_UA700_UA25
+ },
+ {
+ .ifnum = -1
+ }
+ }
+ }
+},
{
/* Roland SH-201 */
USB_DEVICE(0x0582, 0x00ad),

Tip:
Always leave a blank line at the end of config files, so the shell program (zsh, bash, etc)
knows it's a valid end of file (eof). Ensure when you compile your kernel to activate the
module snd_usb_audio [USB_AUDIO]. When you lsmod, it should be in the list.


If you have the RT kernel-source installed, your free to build the kernel, you may need to do
this again, it's ok, it's just time. I had to do the config twice or more before I completed the
exercise, but I think we'll just install each part once. You should still be in the /usr/src/linux
directory.

Type...
make xconfig
go to Device Driver->Sound->Alsa->USB devices and activate the module USB-Audio
(by blablack)

Check with the perl script to be sure...

Quote:
reference pages...
Patch the kernel with the Edirol patch if required, by blablack,
http://ubuntuforums.org/archive/index.php/t-908845.html
The kernel patch Edirol FA-4x and UA-25ex From the Ubuntu forums...
http://ubuntuforums.org/showthread.php?t=855327
http://ubuntuforums.org/archive/index.php/t-855327.html
links to this alsa wiki page...
http://alsa.opensrc.org/index.php/Edirol_UA-4FX
Which links to the previous ua-25 page.
http://alsa.opensrc.org/index.php/Ed...ce_information
Posted in Uncategorized
Views 766 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 09:44 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration