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