aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/power.h
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2014-09-16 14:33:07 -0400
committerOhad Ben-Cohen <ohad@wizery.com>2014-11-26 11:24:36 -0500
commitb1b9891441fa33fd0d49b5cb3aa7f04bca1cc1db (patch)
tree50101517ccd4202654ac1146e6d2d2d9e3c9668f /sound/usb/power.h
parent5d01410fe4d92081f349b013a2e7a95429e4f2c9 (diff)
rpmsg: use less buffers when vrings are small
Adjust the number of rpmsg buffers to rely on the size of the vring, instead of using the hard coded value of 512 (256 per direction). This is needed when small vrings are being used, where 256 buffers are too much to fit in a vring. While considering the vring size, keep using the 512 hard coded value as an upper limit to avoid wacky resource tables consuming unreasonable amount of memory. NOTE: The number of buffers is already assumed to be symmetrical in each direction, and that logic is unchanged. Signed-off-by: Suman Anna <s-anna@ti.com> [edit commit message, small code and comment simplification] Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'sound/usb/power.h')
0 files changed, 0 insertions, 0 deletions