From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] add Steinberg UR44 USB Audio Interface support to quirks-table Date: Tue, 03 Feb 2015 10:02:30 +0100 Message-ID: References: <1394388767-23658-1-git-send-email-cyrus@bobobeach.com> <531DAB14.5080201@ladisch.de> <76F78615-8762-4A6C-B601-97380805F450@bobobeach.com> <531DDD04.5050902@ladisch.de> <0EFBCC9F-93CA-4368-9530-B9049B3743FB@bobobeach.com> <531EC9CC.4060203@ladisch.de> <88C9DBF9-92A3-4885-87C5-A9966C326D0F@bobobeach.com> <545895AD.7020004@ladisch.de> <545A697C.5070800@bobobeach.com> <545A93E3.7020906@ladisch.de> <545B9C57.1070304@bobobeach.com> <54D0711F.40407@bobobeach.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id CFEED260A56 for ; Tue, 3 Feb 2015 10:02:31 +0100 (CET) In-Reply-To: <54D0711F.40407@bobobeach.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Cyrus Harmon Cc: alsa-devel@alsa-project.org, Clemens Ladisch List-Id: alsa-devel@alsa-project.org At Mon, 2 Feb 2015 22:56:31 -0800, Cyrus Harmon wrote: > > > Dear Takashi, > > Sorry for the delay in getting back to this. Your instructions seem > close, but I've run into the following issues: > > 1. the module is installed in /lib/modules/`uname -r`/extra instead of > kernel/sound/usb > > 2. I can get around that with: > > sudo insmod /lib/modules/`uname -r`/extra/snd-usbmidi-lib.ko > sudo insmod /lib/modules/`uname -r`/extra/snd-usb-audio.ko > > but there's probably a better way. modprobe will load from extra directory before others automatically. > 3. I can't do the same tricks with snd-pcm as I get the following error: > > sly@madbox:/lib/modules/3.19.0-rc7-local$ sudo modprobe -r snd-pcm > modprobe: FATAL: Module snd_pcm is in use. > > Is there a way to disable snd_pcm and reload the module? Unload the module referring to snd-pcm, in your case, snd-usb-audio at first. Takashi > Barring that, I > at least want to be able to install the new snd_pcm and reboot, without > having to rebuild the whole kernel, so solving problem 1 would > presumably help for that. > > Thanks for your help! > > Cyrus > > On 11/06/2014 08:49 AM, Takashi Iwai wrote: > > At Thu, 06 Nov 2014 08:05:43 -0800 Cyrus Harmon wrote: > >> On a somewhat related note, is there a way to apply changes to things > >> in, say, sound/usb and compile/install those changes without a few > >> kernel rebuild/install? Or, even better, without a reboot? Would > >> certainly shorting the debug cycle time for me. In this case I'm > >> interested in finding out what quirk->type is when it gets to > >> snd_usb_create_quirk as it looks like the function in the quirk_funcs > >> table that gets called here produces the first suspect error. Adding > >> a dev_info, followed by a kernel rebuild, reinstall, reboot (and the > >> fact that my broken nvidia drivers require reinstalling the video > >> driver every time I install a new kernel) makes for a tedious process! > > It's a standard procedure, something like... % mkdir /somewhere % cd > > /somewhere % cp -a /there/linux/sound . % patch -p1 < your-usb.patch % > > make -C /lib/modules/`uname -r`/build M=$PWD/sound/usb % su # make -C > > /lib/modules/`uname -r`/build M=$PWD/sound/usb modules_install # > > modprobe -r snd-usb-audio # modprobe snd-usb-audio Takashi >