Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-25 Thread edes


el 2020-01-23 a las 13:59 Mick escribió:

> The way I went about it was to comment out the offending lines in these
> files and recompile the kernel.  It is a bit of pain, since I have to
> perform this manual editing with each kernel so far.
> 
> You could try to comment out the lines which break your card for now and
> see if this fixes the problem.

This option might be a bit over my head, since I don't know C/C++, and the
changes between 5.4.10 and 5.4.11 in drivers/usb/core/config.c have been
important:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/usb/core/config.c?id=v5.4.11=v5.4.10

Not to mention further changes in the following kernels.

I might try to keep the old version of the file and see what happens, but
I'm not sure of the consequences.


> I would start with BGO in the first instance:
> 
> https://bugs.gentoo.org/
> 
> providing info on the affected hardware, the errors you've identified
> and the files you suspect containing the changes in the code.

Will do, although this is a problem in the linux kernel and not specific
to gentoo.

Thanks for your help.


--



Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-23 Thread Wols Lists
On 23/01/20 13:59, Mick wrote:
>> Where can I post this problem? I've been using Linux for 20 years, but
>> > this is my first problem with the kernel. I found these forums:
>> > 
>> > https://forum.linuxfoundation.org/categories/drivers
>> > https://www.linuxquestions.org/questions/linux-kernel-70/
>> > 
>> > And of course the kernel mailing list, but seems to be for developers.
> I would start with BGO in the first instance:
> 
> https://bugs.gentoo.org/
> 
> providing info on the affected hardware, the errors you've identified and the 
> files you suspect containing the changes in the code.

Look in the kernel for the maintainers file, and see if you can see who
is responsible for the code.

Given that the drivers have stopped working, this is a regression, and
it's actually quite a serious bug (or at least, seen as such).

If you know who it is - or especially if it's a mailing list! - try
pinging them, with a diff of the changes you had to make to get it working.

IFF you get a response from that, then there's hopefully a good chance
you'll get asked to help fix it, and the problem will go away :-)

Cheers,
Wol




Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-23 Thread Mick
On Thursday, 23 January 2020 13:50:59 GMT edes wrote:
> el 2020-01-19 a las 16:49 Mick escribió:
> > You could compare the dmesg output of working and non-working kernels
> > and see what differences are present, then google for bugs/solutions on
> > that basis.
> 
> [...]
> 
> > You could also diff the two different kernel tree versions and see what
> > drivers have changed.
> 
> Hello, thanks for your suggestions.
> 
> I'm not a programmer and I know nothing about C or kernel development, but
> I found that, beginning with 5.4.11, several changes were introduced in
> drivers/usb/core/config.c, that seem to be consistent with the message
> that appears now when I connect my card:
> 
> [  129.153850] usb 3-10.3: config 1 interface 2 altsetting 1 has a
> duplicate endpoint with address 0x85, skipping
> [  129.153854] usb 3-10.3: config 1 interface 2 altsetting 2 has a
> duplicate endpoint with address 0x85, skipping

I've suffered from a similar problem, changes in a number of files in some 
previous version stopped my WiFi NIC from working and pegged the CPU to 100%.  
The way I went about it was to comment out the offending lines in these files 
and recompile the kernel.  It is a bit of pain, since I have to perform this 
manual editing with each kernel so far.

You could try to comment out the lines which break your card for now and see 
if this fixes the problem.


> Where can I post this problem? I've been using Linux for 20 years, but
> this is my first problem with the kernel. I found these forums:
> 
> https://forum.linuxfoundation.org/categories/drivers
> https://www.linuxquestions.org/questions/linux-kernel-70/
> 
> And of course the kernel mailing list, but seems to be for developers.

I would start with BGO in the first instance:

https://bugs.gentoo.org/

providing info on the affected hardware, the errors you've identified and the 
files you suspect containing the changes in the code.
-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-23 Thread edes


el 2020-01-19 a las 16:49 Mick escribió:

> You could compare the dmesg output of working and non-working kernels
> and see what differences are present, then google for bugs/solutions on
> that basis.

[...]
 
> You could also diff the two different kernel tree versions and see what 
> drivers have changed.

Hello, thanks for your suggestions. 

I'm not a programmer and I know nothing about C or kernel development, but
I found that, beginning with 5.4.11, several changes were introduced in
drivers/usb/core/config.c, that seem to be consistent with the message
that appears now when I connect my card:

[  129.153850] usb 3-10.3: config 1 interface 2 altsetting 1 has a
duplicate endpoint with address 0x85, skipping
[  129.153854] usb 3-10.3: config 1 interface 2 altsetting 2 has a
duplicate endpoint with address 0x85, skipping

Where can I post this problem? I've been using Linux for 20 years, but
this is my first problem with the kernel. I found these forums:

https://forum.linuxfoundation.org/categories/drivers
https://www.linuxquestions.org/questions/linux-kernel-70/

And of course the kernel mailing list, but seems to be for developers.


-



Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-19 Thread Mick
On Sunday, 19 January 2020 15:02:36 GMT edes wrote:
> el 2020-01-18 a las 12:58 edes escribió:
> > But now for some reason it works as playback device, but is not
> > recognized as capture device.
> 
> I kept investigating, and all the evidence points to a kernel problem
> (gentoo-sources).
> 
> I tried several versions, everything works fine with kernels up to 5.4.10,
> problems appear with 5.4.11, 12 and 13. Same results on two different
> machines with two different cards (same model).
> 
> It seems that some changes were introduced in 5.4.11 that affect USB
> audio. This only affects my Sound Devices USPre2 cards, I tried with a
> cheap card, and it continues to work normally with all kernels.
> 
> Where should I report this problem and who could help?
> 
> Thanks.
> 
> 
> --

You could compare the dmesg output of working and non-working kernels and see 
what differences are present, then google for bugs/solutions on that basis.

You could also diff the two different kernel tree versions and see what 
drivers have changed.  Also, check the kernel git repo to see what the 
changelog reports, which could narrow down the diff'ed files:

https://github.com/torvalds/linux

You could post a bug in BGO, but the devs may ask you to enable/undertake 
kernel debugging, which is not a 5 minute job and/or use vanilla kernel 
sources and report it upstream, depending on how rare this problem is and if 
they have been bitten by the same bug themselves.

https://wiki.gentoo.org/wiki/Kernel_Crash_Dumps
https://www.oreilly.com/library/view/linux-device-drivers/0596005903/ch04.html

-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-19 Thread edes


el 2020-01-18 a las 12:58 edes escribió:

> But now for some reason it works as playback device, but is not
> recognized as capture device.

I kept investigating, and all the evidence points to a kernel problem
(gentoo-sources).

I tried several versions, everything works fine with kernels up to 5.4.10,
problems appear with 5.4.11, 12 and 13. Same results on two different
machines with two different cards (same model).

It seems that some changes were introduced in 5.4.11 that affect USB
audio. This only affects my Sound Devices USPre2 cards, I tried with a
cheap card, and it continues to work normally with all kernels.

Where should I report this problem and who could help?

Thanks.


--