/srv/irclogs.ubuntu.com/2017/09/24/#ubuntu-kernel.txt

skrechhey guys, I bought a new mixer that is also supposed to be class-compliant audio device, but doesn't work right now.12:00
skrechI found an ALSA quirk patch from zamaudio (a guy making audio effects for Ardour)12:00
skrechI want to apply this patch but I'm wondering is there a way to not recompile the whole kernel?12:01
tomreynskrech: 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:15
skrechI have to change this file12:19
skrechhttps://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/sound/usb/quirks-table.h?h=v4.4.8812:19
skrechwhich appears to be part of the kernel? so I must rebuild the kernel if I change it?12:20
tomreyni think so, but don't rely on me too much.12:23
tomreynyou could also ask this in #linux in case you won't get a better answer here12:24
tomreyn##linux actually12:24
=== JanC_ is now known as JanC
skrechtomreyn: do you know a good tutorial on kernel recompile?13:02
skrech##linux channel is a mess13:03
skrechalso, 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, strange13:05
JanCskrech: seems like that's packaged as alsa-base, linux-sound-base & alsa-source13:45
skrechJanC: ok, so that's not what I need, i guess?13:46
skrech:)13:46
JanCand probably also included as part of the kernel13:47
JanCskrech: alsa-source might be, if you need to patch it13:56
JanCseems like ALSA is a module13:56
JanCkernel/sound/core/snd.ko13:57
JanCso should be no need to compile the whole kernel  :)13:58
tomreynoh right, lsmod on a desktop lists 'snd', modinfo says "description:    Advanced Linux Sound Architecture driver for soundcards." (so A.L.S.A.)14:02
skrechthx, guys!14:10
skrechand what would happen when I update my kernel from packaging system14:11
skrechas you can see, i'm quite a newbie with this things14:11
skrechthese*14:11
skrechpackaging system, i mean package manager, apt-get14:12
tomreynskrech: 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:15
skrechtomreyn: 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:21
tomreynskrech: right, or have dkms do it for you14:25
JanCwhen 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
JanCassuming that it's likely not going to break other soundcards or the like14:26
skrechthank you very much guys, you were reaaally helpful!14:27
skrechand 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 :D14:29
tomreynno no, it's a record in the quirk table14:29
tomreynif it helps seperating badly behaving from properly behaving hardware then it will get merged14:30
tomreyn(assuming code quality is fine, and it doesn't break other things)14:30
skrechyea, but to be honest I don't know what exactly is this entry doing14:31
skrechit's this one14:31
skrechhttp://pastebin.com/raw/mpLUK01g14:31
skrechfrom: https://community.ardour.org/node/1364614:32
skrechI'm wondering what is this quirk addressing that the standard driver is not14:34
skrech:D14:34
skrechdmesg says14: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)14:35
skrechhey guys, now i've read INSTALL file and try to build the ALSA drivers15:57
skrechhowever on ./configure15:57
skrechi get this15:57
skrechchecking for kernel linux/version.h ... no15:57
skrechThe file /lib/modules/4.4.0-96-generic/build/include/INCLUDE_VERSION_H does not exist.15:57
skrechPlease install the package with full kernel sources for your distribution15:57
skrechor use --with-kernel=dir option to specify another directory with kernel15:57
skrechsources (default is /lib/modules/4.4.0-96-generic/build).15:57
skrechi think that I don't need the full kernel soruces?15:57
skrechand the package is dependent only on linux-headers15:58
skrechyea, I fixed it16:35
skrechhm, guys, I think that this package alsa-source is WAY too old17:48
skrechalsa 1.0.25 is from 2002 year17:49
skrech:/17:49
skrechit's soo confusing everything concerning ALSA17:49
skrechno  documentation at all, google doesn't find anything17:49
skrechdo 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
skrechbut just patched by me :D17:50
ddnhhi all, removed ubuntu lowlatency kernel and now I am without network18:24
ddnhhow can I recover connectivity18:25
tomreynddnh: that's most likely not directly connected and not a kernel issue.18:51
tomreynddnh: i suggest you ask in #ubuntu18:51
trippehinteresting that ubuntu is still shipping alsa-source/alsa-driver, mistake?21:04
trippehthat thing has been dead forever21:05
trippehskrech: all the alsa drivers have been shipped in the kernel for a decade+, I dont think this package is actually supposed to exist.21:07
skrechyea, my point exactly, trippeh21:08
skrechand it's still being built for the new versions of Ubuntu21:08
skrechquite strange...21:08
skrechbtw, I built the snd-usb-audio successfully21:09
skrechhowever, my device is still not working... shit21:09
skrechat least it's not giving error message in dmesg21:10
trippehok - seems alsa-source/drivers carried non-upstreamed things up to 2012. so not quite decade but still long time dead.21:17
trippehare you building it from alsa sources or kernel? if alsa it is probably severely out of date.21:17
trippehyou may have better luck just running a newer kernel. say a HWE (hardware enablement) kernel for your xenial21:19
trippehlinux-generic-hwe-16.04 or linux-generic-hwe-16.04-edge21:20
skrechno i've used apt-get source and downloaded my current kernel version and from there I just built the snd-usb-audio21:21
skrechi'm sure that the new kernels don't support my device21:21
trippehright, so you've added some hardware support to the driver?21:23
JanCtrippeh: I think it's needed for some userspace & documentation stuff (although building the alsa-source binary package isn't really needed for that)21:27
JanCspecifically the scripts & configs in 'linux-sound-base' & 'alsa-base'21:29
trippehhm yes, seems to provide some driver docs and the like. probably outdated :)21:42
trippehand driver lists21:42
trippehI wonder how much of that stuff is still in use by something21:48
trippehlike the blacklisting of alsa drivers if you want to use OSS :)21:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!