omx: restrict useBuffer according to buffer type and port mode am: 7d54e8f905
am: af7ec75b23

Change-Id: Ic36dd74815ee47bee38a1063e961f18acbc31c08