omxaudiodec: Workaround for decode audio stream have dual channel in case using Renesas OMX.
omxaudiodec: Workaround for decode audio stream have dual channel in case using Renesas OMX.

In case dual channel (2 channels), OMX will return positions are OMX_AUDIO_ChannelCF
while GStreamer expect GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT (OMX_AUDIO_ChannelLF)
and GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT (OMX_AUDIO_ChannelRF) positions in case 2 channels
(GStreamer does not care about dual or stereo channel, it only care the number of channel)

This mismatch lead to error when decode for a dual channel (2 channels) audio stream.
GStreamer will return invalid channel position.

This patch file will revise position in case decode for dual channel audio stream as
expecation of GStreamer.

refs #103934
Signed-off-by: Thao Luong <ef4308e16b91b9bcf00aabc74dbe961cf8111f94@rvc.renesas.com>

renesas-rcar/gst-omx,renesas-rcar/gst-omx,renesas-rcar/gst-omx