All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found] ` <BLU0-SMTP368B73167BF4C991BFDCE6A11C0-MsuGFMq8XAE@public.gmane.org>
@ 2013-10-08 17:38   ` Alan Stern
       [not found]     ` <Pine.LNX.4.44L0.1310081335400.1102-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Stern @ 2013-10-08 17:38 UTC (permalink / raw)
  To: baumber-PkbjNfxxIARBDgjK7y7TUQ
  Cc: USB list, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

On Tue, 8 Oct 2013 baumber-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org wrote:

> Hello,
> 
> please help me with the bug for my Logitech Headset;
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=62691
> 
> Bug ID: 62691
> Summary: no reset_resume for driver snd-usb-audio for logitech headset H600
> 
> Thank you
> 
> Best regards, Bernhard

Actually this should be brought to the attention of the ALSA 
developers (CC'ed).  They are the people in charge of the snd-usb-audio 
driver.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]     ` <Pine.LNX.4.44L0.1310081335400.1102-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
@ 2013-10-09  7:56       ` Takashi Iwai
       [not found]         ` <s5hwqlmc1y7.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2013-10-09  7:56 UTC (permalink / raw)
  To: Alan Stern
  Cc: baumber-PkbjNfxxIARBDgjK7y7TUQ, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw,
	USB list

At Tue, 8 Oct 2013 13:38:26 -0400 (EDT),
Alan Stern wrote:
> 
> On Tue, 8 Oct 2013 baumber-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org wrote:
> 
> > Hello,
> > 
> > please help me with the bug for my Logitech Headset;
> > 
> > https://bugzilla.kernel.org/show_bug.cgi?id=62691
> > 
> > Bug ID: 62691
> > Summary: no reset_resume for driver snd-usb-audio for logitech headset H600
> > 
> > Thank you
> > 
> > Best regards, Bernhard
> 
> Actually this should be brought to the attention of the ALSA 
> developers (CC'ed).  They are the people in charge of the snd-usb-audio 
> driver.

How about simply applying the same resume for reset_resume like below?


Takashi

---

diff --git a/sound/usb/card.c b/sound/usb/card.c
index 9d9de8d..c591a83 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -747,6 +747,7 @@ static struct usb_driver usb_audio_driver = {
 	.disconnect =	usb_audio_disconnect,
 	.suspend =	usb_audio_suspend,
 	.resume =	usb_audio_resume,
+	.reset_resume =	usb_audio_resume,
 	.id_table =	usb_audio_ids,
 	.supports_autosuspend = 1,
 };
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]         ` <s5hwqlmc1y7.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
@ 2013-10-09  8:41           ` Clemens Ladisch
       [not found]             ` <525516D5.6030200-P6GI/4k7KOmELgA04lAiVw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Clemens Ladisch @ 2013-10-09  8:41 UTC (permalink / raw)
  To: Takashi Iwai, Alan Stern
  Cc: baumber-PkbjNfxxIARBDgjK7y7TUQ, USB list,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

Takashi Iwai wrote:
>> On Tue, 8 Oct 2013 baumber-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org wrote:
>>> https://bugzilla.kernel.org/show_bug.cgi?id=62691
>>>
>>> Summary: no reset_resume for driver snd-usb-audio for logitech headset H600
>
> How about simply applying the same resume for reset_resume like below?
>
> ---
>
> diff --git a/sound/usb/card.c b/sound/usb/card.c
> index 9d9de8d..c591a83 100644
> --- a/sound/usb/card.c
> +++ b/sound/usb/card.c
> @@ -747,6 +747,7 @@ static struct usb_driver usb_audio_driver = {
>  	.disconnect =	usb_audio_disconnect,
>  	.suspend =	usb_audio_suspend,
>  	.resume =	usb_audio_resume,
> +	.reset_resume =	usb_audio_resume,
>  	.id_table =	usb_audio_ids,
>  	.supports_autosuspend = 1,
>  };

When the device was reset, the state of all mixer controls has been
lost.  Disconnecting the card (the default behaviour without
reset_resume) is the correct thing to do in this situation.

Userspace should pick up the USB device again when it reappears.
(But it doesn't.  Is this a PulseAudio or a KDE problem?)

And why does the kernel whine about the lack of a callback that is
documented as being optional?


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]             ` <525516D5.6030200-P6GI/4k7KOmELgA04lAiVw@public.gmane.org>
@ 2013-10-09  9:13               ` Takashi Iwai
       [not found]                 ` <s5hob6ybyd3.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
  2013-10-09 14:33               ` Alan Stern
  1 sibling, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2013-10-09  9:13 UTC (permalink / raw)
  To: Clemens Ladisch
  Cc: Alan Stern, baumber-PkbjNfxxIARBDgjK7y7TUQ, USB list,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

At Wed, 09 Oct 2013 10:41:57 +0200,
Clemens Ladisch wrote:
> 
> Takashi Iwai wrote:
> >> On Tue, 8 Oct 2013 baumber-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org wrote:
> >>> https://bugzilla.kernel.org/show_bug.cgi?id=62691
> >>>
> >>> Summary: no reset_resume for driver snd-usb-audio for logitech headset H600
> >
> > How about simply applying the same resume for reset_resume like below?
> >
> > ---
> >
> > diff --git a/sound/usb/card.c b/sound/usb/card.c
> > index 9d9de8d..c591a83 100644
> > --- a/sound/usb/card.c
> > +++ b/sound/usb/card.c
> > @@ -747,6 +747,7 @@ static struct usb_driver usb_audio_driver = {
> >  	.disconnect =	usb_audio_disconnect,
> >  	.suspend =	usb_audio_suspend,
> >  	.resume =	usb_audio_resume,
> > +	.reset_resume =	usb_audio_resume,
> >  	.id_table =	usb_audio_ids,
> >  	.supports_autosuspend = 1,
> >  };
> 
> When the device was reset, the state of all mixer controls has been
> lost.  Disconnecting the card (the default behaviour without
> reset_resume) is the correct thing to do in this situation.

Ah, I somehow thought we resume the mixer control values as well (as
they are cached in the driver).  So it's possible to resume these in
reset_resume case, in theory, too.

But, not all stuff has been cached, e.g. the quirk stuff may be
handled exceptionally.

> Userspace should pick up the USB device again when it reappears.
> (But it doesn't.  Is this a PulseAudio or a KDE problem?)

PulseAudio shows the problem, AFAIK.  IIRC, it's a bit tricky to
achieve this because it can be other 

> And why does the kernel whine about the lack of a callback that is
> documented as being optional?

Indeed...


Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]                 ` <s5hob6ybyd3.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
@ 2013-10-09  9:16                   ` Takashi Iwai
       [not found]                     ` <s5hmwmiby8c.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2013-10-09  9:16 UTC (permalink / raw)
  To: Clemens Ladisch
  Cc: Alan Stern, baumber-PkbjNfxxIARBDgjK7y7TUQ, USB list,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

At Wed, 09 Oct 2013 11:13:44 +0200,
Takashi Iwai wrote:
> 
> At Wed, 09 Oct 2013 10:41:57 +0200,
> Clemens Ladisch wrote:
> > 
> > Takashi Iwai wrote:
> > >> On Tue, 8 Oct 2013 baumber-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org wrote:
> > >>> https://bugzilla.kernel.org/show_bug.cgi?id=62691
> > >>>
> > >>> Summary: no reset_resume for driver snd-usb-audio for logitech headset H600
> > >
> > > How about simply applying the same resume for reset_resume like below?
> > >
> > > ---
> > >
> > > diff --git a/sound/usb/card.c b/sound/usb/card.c
> > > index 9d9de8d..c591a83 100644
> > > --- a/sound/usb/card.c
> > > +++ b/sound/usb/card.c
> > > @@ -747,6 +747,7 @@ static struct usb_driver usb_audio_driver = {
> > >  	.disconnect =	usb_audio_disconnect,
> > >  	.suspend =	usb_audio_suspend,
> > >  	.resume =	usb_audio_resume,
> > > +	.reset_resume =	usb_audio_resume,
> > >  	.id_table =	usb_audio_ids,
> > >  	.supports_autosuspend = 1,
> > >  };
> > 
> > When the device was reset, the state of all mixer controls has been
> > lost.  Disconnecting the card (the default behaviour without
> > reset_resume) is the correct thing to do in this situation.
> 
> Ah, I somehow thought we resume the mixer control values as well (as
> they are cached in the driver).  So it's possible to resume these in
> reset_resume case, in theory, too.
> 
> But, not all stuff has been cached, e.g. the quirk stuff may be
> handled exceptionally.
> 
> > Userspace should pick up the USB device again when it reappears.
> > (But it doesn't.  Is this a PulseAudio or a KDE problem?)
> 
> PulseAudio shows the problem, AFAIK.  IIRC, it's a bit tricky to
> achieve this because it can be other 

[oops, pushed the send button wrongly]
... usb device, not necessarily the very same device at suspend time.


Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]             ` <525516D5.6030200-P6GI/4k7KOmELgA04lAiVw@public.gmane.org>
  2013-10-09  9:13               ` Takashi Iwai
@ 2013-10-09 14:33               ` Alan Stern
  1 sibling, 0 replies; 9+ messages in thread
From: Alan Stern @ 2013-10-09 14:33 UTC (permalink / raw)
  To: Clemens Ladisch
  Cc: Takashi Iwai, baumber-PkbjNfxxIARBDgjK7y7TUQ, USB list,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

On Wed, 9 Oct 2013, Clemens Ladisch wrote:

> And why does the kernel whine about the lack of a callback that is
> documented as being optional?

It might indeed be a good idea to change that dev_warn() statement to 
dev_dbg().  On the other hand, without that message this particular 
failure might have been harder to diagnose.

Does anybody have strong feelings either way?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]                     ` <s5hmwmiby8c.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
@ 2013-10-20 21:18                       ` baumber-PkbjNfxxIARBDgjK7y7TUQ
       [not found]                         ` <BLU0-SMTP81EAAFDB9BB4E4600757CCA1000-MsuGFMq8XAE@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: baumber-PkbjNfxxIARBDgjK7y7TUQ @ 2013-10-20 21:18 UTC (permalink / raw)
  To: Takashi Iwai, Clemens Ladisch
  Cc: Alan Stern, USB list, alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

On 2013-10-09 11:16 (CEST,UTC+2), Takashi Iwai wrote:
>>>> diff --git a/sound/usb/card.c b/sound/usb/card.c
>>>> index 9d9de8d..c591a83 100644
>>>> --- a/sound/usb/card.c
>>>> +++ b/sound/usb/card.c
>>>> @@ -747,6 +747,7 @@ static struct usb_driver usb_audio_driver = {
>>>>   	.disconnect =	usb_audio_disconnect,
>>>>   	.suspend =	usb_audio_suspend,
>>>>   	.resume =	usb_audio_resume,
>>>> +	.reset_resume =	usb_audio_resume,
>>>>   	.id_table =	usb_audio_ids,
>>>>   	.supports_autosuspend = 1,
>>>>   };

Shall I add the line in b/sound/usb/card.c and try it? Which kernel version shall I use?

+	.reset_resume =	usb_audio_resume,

Do you need further debugging information?

Thanks, Bernhard


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]                         ` <BLU0-SMTP81EAAFDB9BB4E4600757CCA1000-MsuGFMq8XAE@public.gmane.org>
@ 2013-10-20 21:35                           ` Takashi Iwai
       [not found]                             ` <s5hr4bfpqwe.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2013-10-20 21:35 UTC (permalink / raw)
  To: baumber-PkbjNfxxIARBDgjK7y7TUQ
  Cc: Clemens Ladisch, Alan Stern, USB list,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

At Sun, 20 Oct 2013 23:18:13 +0200,
<baumber-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
> 
> On 2013-10-09 11:16 (CEST,UTC+2), Takashi Iwai wrote:
> >>>> diff --git a/sound/usb/card.c b/sound/usb/card.c
> >>>> index 9d9de8d..c591a83 100644
> >>>> --- a/sound/usb/card.c
> >>>> +++ b/sound/usb/card.c
> >>>> @@ -747,6 +747,7 @@ static struct usb_driver usb_audio_driver = {
> >>>>   	.disconnect =	usb_audio_disconnect,
> >>>>   	.suspend =	usb_audio_suspend,
> >>>>   	.resume =	usb_audio_resume,
> >>>> +	.reset_resume =	usb_audio_resume,
> >>>>   	.id_table =	usb_audio_ids,
> >>>>   	.supports_autosuspend = 1,
> >>>>   };
> 
> Shall I add the line in b/sound/usb/card.c and try it? Which kernel version shall I use?

It doesn't matter which kernel version is.
The error message should disappear, but I don't know whether any other
positive effect you get.  As Clemens pointed, there can be some
negative effects by this, so it cannot be taken as is.  But at least,
it'd be good to know the result...


thanks,

Takashi

> 
> +	.reset_resume =	usb_audio_resume,
> 
> Do you need further debugging information?
> 
> Thanks, Bernhard
> 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [alsa-devel] no reset_resume for driver snd-usb-audio for logitech headset H600
       [not found]                             ` <s5hr4bfpqwe.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
@ 2013-11-10 15:43                               ` baumber-PkbjNfxxIARBDgjK7y7TUQ
  0 siblings, 0 replies; 9+ messages in thread
From: baumber-PkbjNfxxIARBDgjK7y7TUQ @ 2013-11-10 15:43 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Clemens Ladisch, Alan Stern, USB list,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

On 2013-10-20 23:35, Takashi Iwai wrote:
> At Sun, 20 Oct 2013 23:18:13 +0200,
> <baumber-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:
>>
>> On 2013-10-09 11:16 (CEST,UTC+2), Takashi Iwai wrote:
>>>>>> diff --git a/sound/usb/card.c b/sound/usb/card.c
>>>>>> index 9d9de8d..c591a83 100644
>>>>>> --- a/sound/usb/card.c
>>>>>> +++ b/sound/usb/card.c
>>>>>> @@ -747,6 +747,7 @@ static struct usb_driver usb_audio_driver = {
>>>>>>    	.disconnect =	usb_audio_disconnect,
>>>>>>    	.suspend =	usb_audio_suspend,
>>>>>>    	.resume =	usb_audio_resume,
>>>>>> +	.reset_resume =	usb_audio_resume,
>>>>>>    	.id_table =	usb_audio_ids,
>>>>>>    	.supports_autosuspend = 1,
>>>>>>    };
>>
>> Shall I add the line in b/sound/usb/card.c and try it? Which kernel version shall I use?
>
> It doesn't matter which kernel version is.
> The error message should disappear, but I don't know whether any other
> positive effect you get.  As Clemens pointed, there can be some
> negative effects by this, so it cannot be taken as is.  But at least,
> it'd be good to know the result...
>
>
> thanks,
>
> Takashi

I have tested the patch with kernel 3.12.0 with suspend and hibernate, and the problem is gone.

No messages "no reset_resume for driver snd-usb-audio?" or other negative effects/messages.

After resume, the usb_audio_device (Headset) is the master channel in KDE Mixer, as it should be.

=> So the problem is solved for me.

Can you please add the patch to the latest kernels and LTS-kernels or whitelist the workaround for my device (ID 046d:0a29 Logitech, Inc. H600 [Wireless Headset])

Thanks, Bernhard


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-11-10 15:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <BLU0-SMTP368B73167BF4C991BFDCE6A11C0@phx.gbl>
     [not found] ` <BLU0-SMTP368B73167BF4C991BFDCE6A11C0-MsuGFMq8XAE@public.gmane.org>
2013-10-08 17:38   ` no reset_resume for driver snd-usb-audio for logitech headset H600 Alan Stern
     [not found]     ` <Pine.LNX.4.44L0.1310081335400.1102-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2013-10-09  7:56       ` [alsa-devel] " Takashi Iwai
     [not found]         ` <s5hwqlmc1y7.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2013-10-09  8:41           ` Clemens Ladisch
     [not found]             ` <525516D5.6030200-P6GI/4k7KOmELgA04lAiVw@public.gmane.org>
2013-10-09  9:13               ` Takashi Iwai
     [not found]                 ` <s5hob6ybyd3.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2013-10-09  9:16                   ` Takashi Iwai
     [not found]                     ` <s5hmwmiby8c.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2013-10-20 21:18                       ` baumber-PkbjNfxxIARBDgjK7y7TUQ
     [not found]                         ` <BLU0-SMTP81EAAFDB9BB4E4600757CCA1000-MsuGFMq8XAE@public.gmane.org>
2013-10-20 21:35                           ` Takashi Iwai
     [not found]                             ` <s5hr4bfpqwe.wl%tiwai-l3A5Bk7waGM@public.gmane.org>
2013-11-10 15:43                               ` baumber-PkbjNfxxIARBDgjK7y7TUQ
2013-10-09 14:33               ` Alan Stern

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.