FreeBSD Bugzilla – Attachment 145942 Details for
Bug 192755
snd_uaudio incorrect handling of version 1 audio format type descriptor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
USB audio patch
uaudio.diff (text/plain), 1.13 KB, created by
Hans Petter Selasky
on 2014-08-17 20:57:00 UTC
(
hide
)
Description:
USB audio patch
Filename:
MIME Type:
Creator:
Hans Petter Selasky
Created:
2014-08-17 20:57:00 UTC
Size:
1.13 KB
patch
obsolete
>=== uaudio.c >================================================================== >--- uaudio.c (revision 269781) >+++ uaudio.c (local) >@@ -1659,22 +1659,11 @@ > } else if (audio_rev >= UAUDIO_VERSION_20) { > > uint32_t dwFormat; >- uint8_t bSubslotSize; > > dwFormat = UGETDW(asid.v2->bmFormats); > bChannels = asid.v2->bNrChannels; >- bBitResolution = asf1d.v2->bBitResolution; >- bSubslotSize = asf1d.v2->bSubslotSize; >+ bBitResolution = asf1d.v2->bSubslotSize * 8; > >- /* Map 4-byte aligned 24-bit samples into 32-bit */ >- if (bBitResolution == 24 && bSubslotSize == 4) >- bBitResolution = 32; >- >- if (bBitResolution != (bSubslotSize * 8)) { >- DPRINTF("Invalid bSubslotSize\n"); >- goto next_ep; >- } >- > if ((bChannels != channels) || > (bBitResolution != bit_resolution)) { > DPRINTF("Wrong number of channels\n"); >@@ -1720,7 +1709,7 @@ > > wFormat = UGETW(asid.v1->wFormatTag); > bChannels = UAUDIO_MAX_CHAN(asf1d.v1->bNrChannels); >- bBitResolution = asf1d.v1->bBitResolution; >+ bBitResolution = asf1d.v1->bSubFrameSize * 8; > > if (asf1d.v1->bSamFreqType == 0) { > DPRINTFN(16, "Sample rate: %d-%dHz\n",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192755
: 145942