ALSA: usb-audio: Expose sample resolution through proc interface
At least some USB devices use (MSB-aligned) audio format larger than the actual resolution of the device. In order to expose the actual device resolution (bBitResolution), add extra field to the procfs stream info interface. Signed-off-by: Jussi Laako <jussi@sonarnerd.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

committed by
Takashi Iwai

parent
a06702ca02
commit
c7a1326491
@@ -87,6 +87,8 @@ static u64 parse_audio_format_i_type(struct snd_usb_audio *chip,
|
||||
}
|
||||
}
|
||||
|
||||
fp->fmt_bits = sample_width;
|
||||
|
||||
if ((pcm_formats == 0) &&
|
||||
(format == 0 || format == (1 << UAC_FORMAT_TYPE_I_UNDEFINED))) {
|
||||
/* some devices don't define this correctly... */
|
||||
|
Reference in New Issue
Block a user