Commit 3bc1953b authored by Manjunath Hadli's avatar Manjunath Hadli Committed by Mauro Carvalho Chehab

[media] davinci: vpif: fix setting of data width in config_vpif_params() function

fix setting of data width in config_vpif_params() function,
which was wrongly set.
Signed-off-by: default avatarManjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: default avatarLad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0316b89a
...@@ -346,7 +346,7 @@ static void config_vpif_params(struct vpif_params *vpifparams, ...@@ -346,7 +346,7 @@ static void config_vpif_params(struct vpif_params *vpifparams,
value = regr(reg); value = regr(reg);
/* Set data width */ /* Set data width */
value &= ((~(unsigned int)(0x3)) << value &= ~(0x3u <<
VPIF_CH_DATA_WIDTH_BIT); VPIF_CH_DATA_WIDTH_BIT);
value |= ((vpifparams->params.data_sz) << value |= ((vpifparams->params.data_sz) <<
VPIF_CH_DATA_WIDTH_BIT); VPIF_CH_DATA_WIDTH_BIT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment