ALSA: usb-audio: fix Hamedal C20 usb camero disconnect issue
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · 艾超
I 'm sorry, I don't know whether you receiver my mail for 'lsusb -v' to Hamedal C20
I received your previous mails including lsusb -v output. But the post was filtered out by some reason?
So the audio device looks like a UAC1 device. And this one requires to keep up the USB interface up even if the audio stream is closed (not about the parameter changes)?
Takashi
Yes, the audio device is a UAC1 device, and it used
set_sample_rate_v1 to set sample.
So, I add a quirk to keep up the USB interface up even if the audio
stream is closed.
----
主ãé¢ï¼Re: åå¤: Re: [PATCH] ALSA: usb-audio: fix Hamedal C20 usb camero disconnect issue
æ¥ãæï¼2022-11-04 17:59
å件人ï¼Takashi Iwai
æ¶ä»¶äººï¼è¾è¶
Quoted 2 lines · è¾è¶
I 'm sorry, I don't know whether you receiver my mail for 'lsusb -v'
to
Quoted 1 line
Hamedal C20
I received your previous mails including lsusb -v output. But the post was filtered out by some reason?
So the audio device looks like a UAC1 device. And this one requires to keep up the USB interface up even if the audio stream is closed (not about the parameter changes)?
Takashi
Quoted 6 lines · 艾超
Yes, the audio device is a UAC1 device, and it used
set_sample_rate_v1to
set sample.So, I add a quirk to keep up the USB interface up even if the audio stream
is closed.
Well, my question is also about the parameter changes. This interface reset doesn't cause any problem? Or we should skip the interface clear there, too?
Takashi
Quoted 25 lines
----
主 题:Re: 回复: Re: [PATCH] ALSA: usb-audio: fix Hamedal C20 usb camero disconnect issue
日 期:2022-11-04 17:59
发件人:Takashi Iwai
收件人:艾超Quoted 3 lines · 艾超
I 'm sorry, I don't know whether you receiver my mail for 'lsusb -v' to Hamedal C20
I received your previous mails including lsusb -v output. But the post was filtered out by some reason?
So the audio device looks like a UAC1 device. And this one requires to keep up the USB interface up even if the audio stream is closed (not about the parameter changes)?
Takashi
I tested the hotplug ãrecord and catch the picture, this interface
reset doesn't cause any problem.
In snd_usb_endpoint_configure, It set false to interface to deselect altsetting at first.
But , if skip the interface clear (ex. ep->cur_rate = 0;), there is no sound output.
----
主ãé¢ï¼Re: åå¤: Re: åå¤: Re: [PATCH] ALSA: usb-audio: fix Hamedal C20 usb camero disconnect issue
æ¥ãæï¼2022-11-07 16:15
å件人ï¼Takashi Iwai
æ¶ä»¶äººï¼è¾è¶
Quoted 2 lines · è¾è¶
Yes, the audio device is a UAC1 device, and it used
set_sample_rate_v1 to
Quoted 3 lines
set sample.
So, I add a quirk to keep up the USB interface up even if the
audio stream
Quoted 1 line
is closed.
Well, my question is also about the parameter changes. This interface reset doesn't cause any problem? Or we should skip the interface clear there, too?
Takashi
Quoted 4 lines
----
主ãé¢ï¼Re: åå¤: Re: [PATCH] ALSA: usb-audio: fix Hamedal C20 usb
camero
Quoted 9 lines
disconnect issue
æ¥ãæï¼2022-11-04 17:59
å件人ï¼Takashi Iwai
æ¶ä»¶äººï¼è¾è¶Quoted 2 lines · è¾è¶
I 'm sorry, I don't know whether you receiver my mail for 'lsusb
-v' to
Quoted 12 lines
Quoted 1 line
Hamedal C20
I received your previous mails including lsusb -v output. But the post was filtered out by some reason?
So the audio device looks like a UAC1 device. And this one requires to keep up the USB interface up even if the audio stream is closed (not about the parameter changes)?
Takashi
Quoted 9 lines · 艾超
I tested the hotplug 、record and catch the picture, this interface reset
doesn't cause any problem.In
snd_usb_endpoint_configure, It set false to interface to deselect altsetting at first.But , if skip the interface clear (ex.
ep->cur_rate= 0;), there is no sound output.
OK, then just skipping the interface reset at closing PCM appears to be the proper fix. Please go ahead and submit the patch for a new quirk with this type. Thanks!
Takashi