mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge branch 'fix/misc' into topic/misc
This commit is contained in:
commit
e7cfbea9cb
2550 changed files with 93935 additions and 243088 deletions
|
|
@ -392,6 +392,10 @@ static int parse_audio_format_i(struct snd_usb_audio *chip,
|
|||
/* fp->channels is already set in this case */
|
||||
ret = parse_audio_format_rates_v2(chip, fp);
|
||||
break;
|
||||
default:
|
||||
snd_printk(KERN_ERR "%d:%u:%d : invalid protocol version %d\n",
|
||||
chip->dev->devnum, fp->iface, fp->altsetting, protocol);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (fp->channels < 1) {
|
||||
|
|
@ -452,6 +456,10 @@ static int parse_audio_format_ii(struct snd_usb_audio *chip,
|
|||
ret = parse_audio_format_rates_v2(chip, fp);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
snd_printk(KERN_ERR "%d:%u:%d : invalid protocol version %d\n",
|
||||
chip->dev->devnum, fp->iface, fp->altsetting, protocol);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue