[12:00] hey guys, I bought a new mixer that is also supposed to be class-compliant audio device, but doesn't work right now. [12:00] I found an ALSA quirk patch from zamaudio (a guy making audio effects for Ardour) [12:01] I want to apply this patch but I'm wondering is there a way to not recompile the whole kernel? [12:15] skrech: unless its a patch to a kernel module, you'll need to rebuild the kernel. on ubuntu kernels, alsa is an integral part of the kernel, so not a module. hardware specific drivers as well as codecs, however, are usually modules. [12:19] I have to change this file [12:19] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/sound/usb/quirks-table.h?h=v4.4.88 [12:20] which appears to be part of the kernel? so I must rebuild the kernel if I change it? [12:23] i think so, but don't rely on me too much. [12:24] you could also ask this in #linux in case you won't get a better answer here [12:24] ##linux actually === JanC_ is now known as JanC [13:02] tomreyn: do you know a good tutorial on kernel recompile? [13:03] ##linux channel is a mess [13:05] also, do you have an idea what is https://launchpad.net/alsa-driver, there is no such package in apt-get but there is this launchpad saying that in Xenial I should have this package at version 1.0.25, strange [13:45] skrech: seems like that's packaged as alsa-base, linux-sound-base & alsa-source [13:46] JanC: ok, so that's not what I need, i guess? [13:46] :) [13:47] and probably also included as part of the kernel [13:56] skrech: alsa-source might be, if you need to patch it [13:56] seems like ALSA is a module [13:57] kernel/sound/core/snd.ko [13:58] so should be no need to compile the whole kernel :) [14:02] oh right, lsmod on a desktop lists 'snd', modinfo says "description: Advanced Linux Sound Architecture driver for soundcards." (so A.L.S.A.) [14:10] thx, guys! [14:11] and what would happen when I update my kernel from packaging system [14:11] as you can see, i'm quite a newbie with this things [14:11] these* [14:12] packaging system, i mean package manager, apt-get [14:15] skrech: kernel modules are specific to the kernel. if you have a new kernel you'll need to build your custom kernel modules for this kernel. dkms can automate this process. [14:21] tomreyn: yes, i understand this. So, to be sure: When new kernel package is installed it will create new dir in /lib/modules with the name of the new kernel version. Under this dir it will place the new version of the alsa driver and autoload it on reboot. So i'd have to rebuild my patched alsa for the new kernel and replace the .ko file in the aforementioned dir? [14:25] skrech: right, or have dkms do it for you [14:26] when you test that patch and it works, it might be useful to report that and ask the kernel engineers to include it so that you don't have to recompile it :) [14:26] assuming that it's likely not going to break other soundcards or the like [14:27] thank you very much guys, you were reaaally helpful! [14:29] and yea, definitely I'll opt for this patch to be integrated upstream, but since it's a "quirk" and I'm not that knowledgeable yet, It will be turned down I guess :D [14:29] no no, it's a record in the quirk table [14:30] if it helps seperating badly behaving from properly behaving hardware then it will get merged [14:30] (assuming code quality is fine, and it doesn't break other things) [14:31] yea, but to be honest I don't know what exactly is this entry doing [14:31] it's this one [14:31] http://pastebin.com/raw/mpLUK01g [14:32] from: https://community.ardour.org/node/13646 [14:34] I'm wondering what is this quirk addressing that the standard driver is not [14:34] :D [14:35] dmesg says [14:35] [69121.804282] usb 6-1: parse_audio_format_rates_v2(): unable to find clock source (clock -32) [14:35] [69121.805287] usb 6-1: 1:1: cannot set enable PITCH (v2) [14:35] [69121.806625] usb 6-1: parse_audio_format_rates_v2(): unable to find clock source (clock -32) [14:35] [69121.807635] usb 6-1: 2:1: cannot set enable PITCH (v2) [15:57] hey guys, now i've read INSTALL file and try to build the ALSA drivers [15:57] however on ./configure [15:57] i get this [15:57] checking for kernel linux/version.h ... no [15:57] The file /lib/modules/4.4.0-96-generic/build/include/INCLUDE_VERSION_H does not exist. [15:57] Please install the package with full kernel sources for your distribution [15:57] or use --with-kernel=dir option to specify another directory with kernel [15:57] sources (default is /lib/modules/4.4.0-96-generic/build). [15:57] i think that I don't need the full kernel soruces? [15:58] and the package is dependent only on linux-headers [16:35] yea, I fixed it [17:48] hm, guys, I think that this package alsa-source is WAY too old [17:49] alsa 1.0.25 is from 2002 year [17:49] :/ [17:49] it's soo confusing everything concerning ALSA [17:49] no documentation at all, google doesn't find anything [17:50] do you know where I should ask for guidelines of building the version of ALSA that comes with my distro (xenial lts) [17:50] ? [17:50] but just patched by me :D [18:24] hi all, removed ubuntu lowlatency kernel and now I am without network [18:25] how can I recover connectivity [18:51] ddnh: that's most likely not directly connected and not a kernel issue. [18:51] ddnh: i suggest you ask in #ubuntu [21:04] interesting that ubuntu is still shipping alsa-source/alsa-driver, mistake? [21:05] that thing has been dead forever [21:07] skrech: all the alsa drivers have been shipped in the kernel for a decade+, I dont think this package is actually supposed to exist. [21:08] yea, my point exactly, trippeh [21:08] and it's still being built for the new versions of Ubuntu [21:08] quite strange... [21:09] btw, I built the snd-usb-audio successfully [21:09] however, my device is still not working... shit [21:10] at least it's not giving error message in dmesg [21:17] ok - seems alsa-source/drivers carried non-upstreamed things up to 2012. so not quite decade but still long time dead. [21:17] are you building it from alsa sources or kernel? if alsa it is probably severely out of date. [21:19] you may have better luck just running a newer kernel. say a HWE (hardware enablement) kernel for your xenial [21:20] linux-generic-hwe-16.04 or linux-generic-hwe-16.04-edge [21:21] no i've used apt-get source and downloaded my current kernel version and from there I just built the snd-usb-audio [21:21] i'm sure that the new kernels don't support my device [21:23] right, so you've added some hardware support to the driver? [21:27] trippeh: I think it's needed for some userspace & documentation stuff (although building the alsa-source binary package isn't really needed for that) [21:29] specifically the scripts & configs in 'linux-sound-base' & 'alsa-base' [21:42] hm yes, seems to provide some driver docs and the like. probably outdated :) [21:42] and driver lists [21:48] I wonder how much of that stuff is still in use by something [21:49] like the blacklisting of alsa drivers if you want to use OSS :)