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

Change-Id: I77403ce46ac6c1ef33561661a15f9915a24da6e1