Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92138
b: refs/heads/master
c: 5a220c8
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Apr 24, 2008
1 parent cd35ce4 commit 115c18a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 841b23d4d7b554c8d74fc9c34a701f85abc04875
refs/heads/master: 5a220c868e395bc3662d13ad4c2a18769075af54
9 changes: 7 additions & 2 deletions trunk/sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,8 +1762,10 @@ static int check_hw_params_convention(struct snd_usb_substream *subs)

channels = kcalloc(MAX_MASK, sizeof(u32), GFP_KERNEL);
rates = kcalloc(MAX_MASK, sizeof(u32), GFP_KERNEL);
if (!channels || !rates)
if (!channels || !rates) {
err = -ENOMEM;
goto __out;
}

list_for_each(p, &subs->fmt_list) {
struct audioformat *f;
Expand Down Expand Up @@ -1916,7 +1918,10 @@ static int setup_hw_info(struct snd_pcm_runtime *runtime, struct snd_usb_substre
1000 * MIN_PACKS_URB,
/*(nrpacks * MAX_URBS) * 1000*/ UINT_MAX);

if (check_hw_params_convention(subs)) {
err = check_hw_params_convention(subs);
if (err < 0)
return err;
else if (err) {
hwc_debug("setting extra hw constraints...\n");
if ((err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
hw_rule_rate, subs,
Expand Down

0 comments on commit 115c18a

Please sign in to comment.