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>
Bu işleme şunda yer alıyor:
Jussi Laako
2019-02-18 00:17:21 +02:00
işlemeyi yapan: Takashi Iwai
ebeveyn a06702ca02
işleme c7a1326491
3 değiştirilmiş dosya ile 4 ekleme ve 0 silme

Dosyayı Görüntüle

@@ -14,6 +14,7 @@ struct audioformat {
u64 formats; /* ALSA format bits */
unsigned int channels; /* # channels */
unsigned int fmt_type; /* USB audio format type (1-3) */
unsigned int fmt_bits; /* number of significant bits */
unsigned int frame_size; /* samples per frame for non-audio */
int iface; /* interface number */
unsigned char altsetting; /* corresponding alternate setting */