Bug 180071
Summary: | stk1160 audio channels periodically swapped | ||
---|---|---|---|
Product: | Drivers | Reporter: | mahasler |
Component: | Sound(ALSA) | Assignee: | v4l-other (v4l-dvb_v4l-other) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | perex |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.8.4 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
Screenshot of normalized recording with noise
Recording of noise showing cross-talk Normalized recording showing byte grouping Patch that fixes this bug |
Created attachment 242361 [details]
Recording of noise showing cross-talk
Actually the six-byte grouping is no longer visible, however it was there for a while. After every six bytes both channels would show a common mode drop. I'll try if can reproduce this. Created attachment 242371 [details]
Normalized recording showing byte grouping
This byte-grouping may depend on the kernel version. I was running 4.7.x when I first noticed this but had upgraded to 4.8.x before making the other recording. I just created this new recording on another machine running a 4.4.x kernel. Here the grouping is clearly visible.
Actually the grouping also appears on 4.8.x. Also, on closer inspection the data is being transmitted as 16-bit words. I compared USB traces taken on Windows and Linux, hoping to find some clue, and also tried disabling all functionality from the driver not related to audio, but I can't get rid of the noise. I'm beginning to suspect the problem to be somewhere in snd-usb-audio. Created attachment 242861 [details] Patch that fixes this bug Turns out I was completely mistaken about the nature of this bug. It really looked like some digital signal, but actually was the same issue that had already been reported on the mailing list a long time ago (http://marc.info/?l=linux-sound&m=139223599126215&w=2). After closer investigation of the USB traces I tracked this down to a problem in snd-usb-audio for which a workaround/quirk already exists. This patch applies the quirk to the stk1160 chip. Patch has been applied, therefore this bug can be closed. |
Created attachment 242351 [details] Screenshot of normalized recording with noise When capturing audio from my video grabber there's a constant noise in the background. From looking at a normalized recording (see attached screenshot) it's obvious there is some kind of cross-talk from a digital line in the device. This doesn't happen under Windows. I tried playing with the mixer controls and also checked the stk1160 datasheet but couldn't find any clue as to what might be causing this or what kind of signal is being transmitted. As can be seen from the attached recording the signal consists of transmissions of six bytes each, but I can't see any pattern in the data. My device is a stk1160 based grabber with AC97 chip, labeled 'mumbi'.