mm-video-v4l2: vidc: venc: Fix hybrid HP layer count

When client sets hybrid HP layers less than 6, OMX
component is still setting layer count as 6. This
will cause error in control framework and the setting
is rejected. Hence set the proper value to driver.

Also cache the layer count in OMX component.

Change-Id: I2554e6521fdea28913f0fa8989af9ee648074ab1
CRs-Fixed: 926793
1 file changed