Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1533852
| From | Jiada Wang <jiada_wang@mentor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize |
| Date | 2016-12-01 08:10 +0100 |
| Message-ID | <sJtFg-CJ-7@gated-at.bofh.it> (permalink) |
| References | <sJ7Y6-3eC-3@gated-at.bofh.it> <sJ7Y6-3eC-1@gated-at.bofh.it> <sJ8U9-3QS-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello Takashi
On 11/30/2016 05:54 PM, Takashi Iwai wrote:
> On Wed, 30 Nov 2016 08:59:21 +0100,
> Jiada Wang wrote:
>>
>> From: Andreas Pape <apape@de.adit-jv.com>
>>
>> since commit 57e6dae1087bbaa6b33d3dd8a8e90b63888939a3 the expected packetsize is always limited to
>
> Please use a form with 12 chars SHA ID plus the commit subject, e.g.
> 1234567890ab ("blah blah...")
I will update changelog as you have suggested in v2.
>
>> nominal + 25%. It was discovered, that some devices have a much higher jitter
>> in used packetsizes than 25% which would result in BABBLE condition and dropping of packets.
>> A better solution is so assume the jitter to be the nominal packetsize:
>> -one nearly empty packet followed by a almost double sized one.
>
> The increase of the max frequency is supposedly OK.
> A remaining question is whether this should be included in stable
> kernel. It fixes in one side, but it's quite untested in another
> side. Maybe we queue this for 4.10, and later on notify to stable
> maintainer once when it's confirmed to work and be harmless.
>
>
this makes sense to me
Thanks,
Jiada
> thanks,
>
> Takashi
>
>>
>> Signed-off-by: Andreas Pape <apape@de.adit-jv.com>
>> Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
>> ---
>> sound/usb/endpoint.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
>> index c470251..2f592dd 100644
>> --- a/sound/usb/endpoint.c
>> +++ b/sound/usb/endpoint.c
>> @@ -632,8 +632,8 @@ static int data_ep_set_params(struct snd_usb_endpoint *ep,
>> ep->stride = frame_bits >> 3;
>> ep->silence_value = pcm_format == SNDRV_PCM_FORMAT_U8 ? 0x80 : 0;
>>
>> - /* assume max. frequency is 25% higher than nominal */
>> - ep->freqmax = ep->freqn + (ep->freqn >> 2);
>> + /* assume max. frequency is double than nominal */
>> + ep->freqmax = ep->freqn * 2;
>> /* Round up freqmax to nearest integer in order to calculate maximum
>> * packet size, which must represent a whole number of frames.
>> * This is accomplished by adding 0x0.ffff before converting the
>> --
>> 2.9.3
>>
>>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Jiada Wang <jiada_wang@mentor.com> - 2016-11-30 09:00 +0100
Re: [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Takashi Iwai <tiwai@suse.de> - 2016-11-30 10:00 +0100
Re: [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Jiada Wang <jiada_wang@mentor.com> - 2016-12-01 08:10 +0100
Re: [alsa-devel] [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Clemens Ladisch <clemens@ladisch.de> - 2016-12-01 08:50 +0100
Re: [alsa-devel] [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Takashi Iwai <tiwai@suse.de> - 2016-12-01 10:10 +0100
Re: [alsa-devel] [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Clemens Ladisch <clemens@ladisch.de> - 2016-12-01 12:20 +0100
Re: [alsa-devel] [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Takashi Iwai <tiwai@suse.de> - 2016-12-01 12:30 +0100
Re: [alsa-devel] [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Clemens Ladisch <clemens@ladisch.de> - 2016-12-01 13:00 +0100
Re: [alsa-devel] [PATCH 1/3 v1] ALSA: usb-audio: more tolerant packetsize Clemens Ladisch <clemens@ladisch.de> - 2016-12-01 13:20 +0100
csiph-web