diff options
author | Jussi Laako <jussi@sonarnerd.net> | 2019-02-18 01:17:21 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-02-18 11:36:09 +0300 |
commit | c7a13264918b9796f80c634f20fea56e1612572d (patch) | |
tree | d0d8757c02033712f513904f827962e0b0c3fded /sound/usb/card.h | |
parent | a06702ca023feccb7c1a5171987f5cac959427ed (diff) | |
download | linux-c7a13264918b9796f80c634f20fea56e1612572d.tar.xz |
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>
Diffstat (limited to 'sound/usb/card.h')
-rw-r--r-- | sound/usb/card.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/card.h b/sound/usb/card.h index ac785d15ced4..79fa2a19fb7b 100644 --- a/sound/usb/card.h +++ b/sound/usb/card.h @@ -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 */ |