Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56199
b: refs/heads/master
c: 81c4899
h: refs/heads/master
i:
  56197: 3afefbb
  56195: 567cedf
  56191: 94a04c7
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed May 11, 2007
1 parent 5ff7b55 commit 26ea07d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4d69d756d19a4f457749f3667ad7fc8984bba15c
refs/heads/master: 81c4899f7ef3675fdc574de2671ff9fa45996cc5
7 changes: 4 additions & 3 deletions trunk/sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,10 +1878,11 @@ static int setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substre
}

/* set the period time minimum 1ms */
/* FIXME: high-speed mode allows 125us minimum period, but many parts
* in the current code assume the 1ms period.
*/
snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_PERIOD_TIME,
snd_usb_get_speed(subs->dev) == USB_SPEED_FULL ?

1000 * MIN_PACKS_URB : 125 * MIN_PACKS_URB,
1000 * MIN_PACKS_URB,
/*(nrpacks * MAX_URBS) * 1000*/ UINT_MAX);

if (check_hw_params_convention(subs)) {
Expand Down

0 comments on commit 26ea07d

Please sign in to comment.