Re: [PATCH] usb: quirks for Logitech webcams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag, 15. September 2011, 11:41:59 schrieb Andreas Henriksson:

Hi,

> I also still got spammed by the kernel every second(!) with a message like this,both with or without the reset quirks patch:
> 
> Sep 13 06:27:01 amd64 kernel: [134738.040246] 9:3:4: cannot set freq 48000 to ep 0x86
> Sep 13 06:27:02 amd64 kernel: [134739.040120] 9:3:4: cannot set freq 48000 to ep 0x86
> Sep 13 06:27:03 amd64 kernel: [134740.040117] 9:3:4: cannot set freq 48000 to ep 0x86
> Sep 13 06:27:04 amd64 kernel: [134741.040118] 9:3:4: cannot set freq 48000 to ep 0x86

To tell you the through I've added this error message. But only the error message. Earlier kernels
just ignored the error. It still happened.
 
> I'll report back after this weekend with the results of testing
> with 2.6.38 and also with the usb autosuspend disabled (thanks for the hint
> on how to do that!).

Please test with the newest kernel and autosuspend disabled. If you are interested
in why this error happens, you can try the attached patch.

	Regards
		Oliver
From 6f948550d00d55586d16a1146845471a75bef91d Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oliver@xxxxxxxxxx>
Date: Thu, 15 Sep 2011 12:12:29 +0200
Subject: [PATCH] usb-audio: more debugging output

The error code is the most important piece of information

Signed-off-by: Oliver Neukum <oneukum@xxxxxxx>
---
 sound/usb/clock.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/usb/clock.c b/sound/usb/clock.c
index 075195e..f9ba4a5 100644
--- a/sound/usb/clock.c
+++ b/sound/usb/clock.c
@@ -232,8 +232,8 @@ static int set_sample_rate_v1(struct snd_usb_audio *chip, int iface,
 				   USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_IN,
 				   UAC_EP_CS_ATTR_SAMPLE_RATE << 8, ep,
 				   data, sizeof(data), 1000)) < 0) {
-		snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq at ep %#x\n",
-			   dev->devnum, iface, fmt->altsetting, ep);
+		snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq at ep %#x due to error %d\n",
+			   dev->devnum, iface, fmt->altsetting, ep, err);
 		return 0; /* some devices don't support reading */
 	}
 
-- 
1.7.1


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux