mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: ALSA: sound/usb/format: silence uninitialized variable warnings MAINTAINERS: Add Ian Lartey as comaintaner for Wolfson devices MAINTAINERS: Make Wolfson entry also cover CODEC drivers ASoC: Only tweak WM8994 chip configuration on devices up to rev D ASoC: Optimise DSP performance for WM8994 ALSA: hda - Fix dynamic ADC change working again ALSA: hda - Restrict PCM parameters per ELD information over HDMI sound: oss: sh_dac_audio.c removed duplicated #include
This commit is contained in:
commit
1b68c9596c
14 changed files with 147 additions and 27 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