Fix buffer size setting interfaces of devices.