Message ID | bug-218544-208809-w5TEy5gfzZ@https.bugzilla.kernel.org/ (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [Bug,218544] not enough bandwidth, synaptics hi-res audio duplex audio | expand |
--- sound/usb.orig/stream.c 2024-03-08 10:19:27.430507385 +0000 +++ sound/usb/stream.c 2024-03-12 16:13:43.212737555 +0000 @@ -690,6 +690,10 @@ fp->ep_attr = get_endpoint(alts, 0)->bmAttributes; fp->datainterval = snd_usb_parse_datainterval(chip, alts); fp->protocol = protocol; + if(le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize)==768){ + get_endpoint(alts, 0)->wMaxPacketSize = cpu_to_le16(384); + usb_audio_err_ratelimited(chip,"overwrote in stream"); + } fp->maxpacksize = le16_to_cpu(get_endpoint(alts, 0)->wMaxPacketSize); fp->channels = num_channels; if (snd_usb_get_speed(chip->dev) == USB_SPEED_HIGH)