diff options
author | Jussi Laako <jussi@sonarnerd.net> | 2019-02-17 23:17:21 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-02-18 09:36:09 +0100 |
commit | c7a13264918b9796f80c634f20fea56e1612572d (patch) | |
tree | d0d8757c02033712f513904f827962e0b0c3fded /sound/usb/proc.c | |
parent | ALSA: es1688: Remove set but not used variable 'hw' (diff) | |
download | linux-c7a13264918b9796f80c634f20fea56e1612572d.tar.xz linux-c7a13264918b9796f80c634f20fea56e1612572d.zip |
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/proc.c')
-rw-r--r-- | sound/usb/proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/proc.c b/sound/usb/proc.c index e80c9d0749c9..ef9190530fd2 100644 --- a/sound/usb/proc.c +++ b/sound/usb/proc.c @@ -109,6 +109,7 @@ static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct s if (subs->speed != USB_SPEED_FULL) snd_iprintf(buffer, " Data packet interval: %d us\n", 125 * (1 << fp->datainterval)); + snd_iprintf(buffer, " Bits: %d\n", fp->fmt_bits); // snd_iprintf(buffer, " Max Packet Size = %d\n", fp->maxpacksize); // snd_iprintf(buffer, " EP Attribute = %#x\n", fp->attributes); } |