Skip to contentSkip to conversation

media: coda: remove definition of CODA_STD_MJPG

PATCH In review Martin Kepplinger 2 participants 2 messages Nov 8, 2017 – Nov 9, 2017 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: coda: remove definition of CODA_STD_MJPG

According to i.MX VPU API Reference Manuals the MJPG video codec is refernced to by number 7, not 3.

Also Philipp pointed out that this value is only meant to fill in CMD_ENC_SEQ_COD_STD for encoding, only on i.MX53. It was never written to any register, and even if defined correctly, wouldn't be needed for i.MX6.

So avoid confusion and remove this definition.

---
 drivers/media/platform/coda/coda_regs.h | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/coda/coda_regs.h +0 -1
index 38df5fd9a2fa..35e620c7f1f4 100644
@@ -254,7 +254,6 @@
 #define		CODA9_STD_H264					0
 #define		CODA_STD_H263					1
 #define		CODA_STD_H264					2
-#define		CODA_STD_MJPG					3
 #define		CODA9_STD_MPEG4					3
 
 #define CODA_CMD_ENC_SEQ_SRC_SIZE				0x190
Signature · 1 line
2.11.0
Acked-by on v1 1/1
#1 lore raw
Quoted 20 lines · Martin Kepplinger

According to i.MX VPU API Reference Manuals the MJPG video codec is refernced to by number 7, not 3.

Also Philipp pointed out that this value is only meant to fill in CMD_ENC_SEQ_COD_STD for encoding, only on i.MX53. It was never written to any register, and even if defined correctly, wouldn't be needed for i.MX6.

So avoid confusion and remove this definition.

---
 drivers/media/platform/coda/coda_regs.h | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/coda/coda_regs.h +0 -0
index 38df5fd9a2fa..35e620c7f1f4 100644

drivers/media/platform/coda/coda_regs.h line 259

Quoted 7 lines
drivers/media/platform/coda/coda_regs.h +0 -1
@@ -254,7 +254,6 @@
 #define		CODA9_STD_H264					0
 #define		CODA_STD_H263					1
 #define		CODA_STD_H264					2
-#define		CODA_STD_MJPG					3
 #define		CODA9_STD_MPEG4					3
 
 #define CODA_CMD_ENC_SEQ_SRC_SIZE				0x190

Thanks,

regards
Philipp