Last active
September 13, 2015 17:20
-
-
Save krasnobaev/e0a578e2c970f66c2cfb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prepare to hold your colour | |
cd /usr/local/src/linux | |
cp /boot/config-$(uname -r) .config && make oldconfig | |
# enable CAIAQ module (CONFIG_SND_USB_CAIAQ=m) | |
# other recommended options: | |
# CONFIG_SND_DEBUG=y | |
# CONFIG_SND_DEBUG_VERBOSE=y | |
# CONFIG_SND_VERBOSE_PRINTK=y | |
make xconfig | |
make prepare | |
make modules_prepare | |
make SUBDIRS=scripts/mod | |
make SUBDIRS=sound/usb/caiaq modules | |
# unplug device & unload old driver version & clean dmesg | |
sudo sh -c "echo 0 > /sys/bus/usb/devices/1-7/bConfigurationValue" | |
sudo modprobe -r snd-usb-caiaq | |
sudo dmesg --clear | |
# install driver | |
sudo cp sound/usb/caiaq/snd-usb-caiaq.ko /lib/modules/$(uname -r)/kernel/sound/usb/caiaq/ | |
sleep 5 | |
dmesg | |
# load new driver version & plug device | |
sudo modprobe snd-usb-caiaq | |
sudo sh -c "echo 1 > /sys/bus/usb/devices/1-7/bConfigurationValue" | |
# to rebuild driver after some change | |
sudo sh -c "echo 0 > /sys/bus/usb/devices/1-7/bConfigurationValue"; \ | |
sudo modprobe -r snd-usb-caiaq; \ | |
sudo dmesg --clear; \ | |
make SUBDIRS=sound/usb/caiaq modules; \ | |
sudo cp sound/usb/caiaq/snd-usb-caiaq.ko /lib/modules/$(uname -r)/kernel/sound/usb/caiaq/; \ | |
sudo modprobe snd-usb-caiaq; \ | |
sudo sh -c "echo 1 > /sys/bus/usb/devices/1-7/bConfigurationValue"; \ | |
sleep 5; \ | |
dmesg; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment