]> git.baikalelectronics.ru Git - kernel.git/commit
staging: line6: use smallest iso ep packet size
authorStefan Hajnoczi <stefanha@gmail.com>
Wed, 23 Nov 2011 08:20:44 +0000 (08:20 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:14:12 +0000 (16:14 -0800)
commit8ee2ab2972ec14106be54f48acf980487f458a3d
tree00f8b478eba19a6f785c1530d954c4c17124d3f3
parent2e3d50a9ad9ac49298850529bcb52657e775db0a
staging: line6: use smallest iso ep packet size

The POD HD300 isochronous endpoints have different max packet sizes for
read and write.  Using the read endpoint max packet size may be too
large for the write endpoint.  Instead we should use the minimum of both
endpoints to be sure the size is acceptable.

In theory we could decouple read and write packet sizes but the driver
currently uses a single size which I chose not to mess with since other
features like software monitoring may depend on a single packet size for
both endpoints.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/line6/pcm.c