Skip to content

Commit

Permalink
[media] davinci: vpif: fix setting of data width in config_vpif_param…
Browse files Browse the repository at this point in the history
…s() function

fix setting of data width in config_vpif_params() function,
which was wrongly set.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Manjunath Hadli authored and Mauro Carvalho Chehab committed Jul 30, 2012
1 parent 0316b89 commit 3bc1953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/davinci/vpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ static void config_vpif_params(struct vpif_params *vpifparams,

value = regr(reg);
/* Set data width */
value &= ((~(unsigned int)(0x3)) <<
value &= ~(0x3u <<
VPIF_CH_DATA_WIDTH_BIT);
value |= ((vpifparams->params.data_sz) <<
VPIF_CH_DATA_WIDTH_BIT);
Expand Down

0 comments on commit 3bc1953

Please sign in to comment.