|
@@ -1023,6 +1023,12 @@ static void cx23885_codec_settings(struct cx23885_dev *dev)
|
|
|
{
|
|
|
dprintk(1, "%s()\n", __func__);
|
|
|
|
|
|
+ /* Dynamically change the height based on video standard */
|
|
|
+ if (dev->encodernorm.id & V4L2_STD_525_60)
|
|
|
+ dev->ts1.height = 480;
|
|
|
+ else
|
|
|
+ dev->ts1.height = 576;
|
|
|
+
|
|
|
/* assign frame size */
|
|
|
cx23885_api_cmd(dev, CX2341X_ENC_SET_FRAME_SIZE, 2, 0,
|
|
|
dev->ts1.height, dev->ts1.width);
|