encoder_jpeg: CB1 Support yuv422 [1/1]

PD#SWPL-187253

Problem:
yuv422 input is required

Solution:
Support yuv422

Verify:
Local

Signed-off-by: xiaoya.lin <xiaoya.lin@amlogic.com>
Change-Id: I8289614a60ed38f429420e3768ee908dab848d65
diff --git a/drivers/frame_sink/encoder/jpeg/jpegenc.c b/drivers/frame_sink/encoder/jpeg/jpegenc.c
index 0679889..54599dc 100644
--- a/drivers/frame_sink/encoder/jpeg/jpegenc.c
+++ b/drivers/frame_sink/encoder/jpeg/jpegenc.c
@@ -3999,7 +3999,8 @@
         if (wq->cmd.input_fmt == JPEGENC_FMT_NV12 ||
             wq->cmd.input_fmt == JPEGENC_FMT_NV21 ||
             wq->cmd.input_fmt == JPEGENC_FMT_YUV420 ||
-            wq->cmd.input_fmt == JPEGENC_FMT_RGB888) {
+            wq->cmd.input_fmt == JPEGENC_FMT_RGB888 ||
+            wq->cmd.input_fmt == JPEGENC_FMT_YUV422_SINGLE) {
             if (wq->cmd.plane_num == 0 || wq->cmd.plane_num > 3) {
                 jenc_pr(LOG_ERROR, "wq->cmd.plane_num is invalid %d.\n",
                     wq->cmd.plane_num);