Linux Support Steinberg UR22

Sorry about that guys, should have made the script more robust - looks like the kernel source & module directories change every update :unamused:
Paste this into a .sh file and it will do the trick - I just updated mine too.

#!/bin/bash
KERNEL_SOURCE=`apt-cache search linux-source- | cut -d " " -f 1`
apt-get install build-essential linux-source kernel-package fakeroot libncurses5-dev nano
wget http://pastebin.com/raw.php?i=6H5fkYMV -O /usr/src/ur22.patch
tar -C /usr/src/ -xjvf /usr/src/$KERNEL_SOURCE/$KERNEL_SOURCE.tar.bz2
cd /usr/src/$KERNEL_SOURCE/sound/usb
patch < /usr/src/ur22.patch
cd /lib/modules/`uname -r`/build/
make M=/usr/src/$KERNEL_SOURCE/sound/usb
rmmod snd-usb-audio
rsync -avm --include='*.ko' -f 'hide,! */' /usr/src/$KERNEL_SOURCE/sound/usb/ /lib/modules/`uname -r`/kernel/sound/usb/
modprobe snd-usb-audio

Here is the compile output. It’s normal for it to complain that modules are in use - it won’t affect anything. After a reboot you should see the new modules loaded…

linux-source-3.13.0/samples/seccomp/bpf-direct.c
linux-source-3.13.0/samples/seccomp/Makefile
(Stripping trailing CRs from patch; use --binary to disable.)
patching file quirks-table.h
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 386 with fuzz 1.
  CC [M]  /usr/src/linux-source-3.13.0/sound/usb/card.o
  LD [M]  /usr/src/linux-source-3.13.0/sound/usb/snd-usb-audio.o
  LD [M]  /usr/src/linux-source-3.13.0/sound/usb/snd-usbmidi-lib.o
  Building modules, stage 2.
  MODPOST 8 modules
  LD [M]  /usr/src/linux-source-3.13.0/sound/usb/snd-usb-audio.ko
  LD [M]  /usr/src/linux-source-3.13.0/sound/usb/snd-usbmidi-lib.ko
rmmod: ERROR: Module snd_usb_audio is in use
building file list ... done
./
snd-usb-audio.ko
snd-usbmidi-lib.ko

sent 293,691 bytes  received 57 bytes  587,496.00 bytes/sec
total size is 574,864  speedup is 1.96