Re: [PATCH v2 2/5] usb: gadget: f_uac2: reset wMaxPacketSize

2021-01-07 Thread Felipe Balbi
Jerome Brunet writes: > With commit 913e4a90b6f9 ("usb: gadget: f_uac2: finalize wMaxPacketSize > according to bandwidth") > wMaxPacketSize is computed dynamically but the value is never reset. > > Because of this, the actual maximum packet size can only decrease each time > the audio gadget is

[PATCH v2 2/5] usb: gadget: f_uac2: reset wMaxPacketSize

2021-01-06 Thread Jerome Brunet
With commit 913e4a90b6f9 ("usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth") wMaxPacketSize is computed dynamically but the value is never reset. Because of this, the actual maximum packet size can only decrease each time the audio gadget is instantiated. Reset the endpoint