"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "drivers/media/usb/cx231xx/cx231xx-video.c" between
linux-3.16.62.tar.xz and linux-3.16.63.tar.xz

About: The full source of the Linux kernel 3.16.x (longterm stable)

cx231xx-video.c  (linux-3.16.62.tar.xz):cx231xx-video.c  (linux-3.16.63.tar.xz)
skipping to change at line 1272 skipping to change at line 1272
struct cx231xx *dev = fh->dev; struct cx231xx *dev = fh->dev;
int ret; int ret;
u8 value[4] = { 0, 0, 0, 0 }; u8 value[4] = { 0, 0, 0, 0 };
u32 data = 0; u32 data = 0;
switch (reg->match.addr) { switch (reg->match.addr) {
case 0: /* Cx231xx - internal registers */ case 0: /* Cx231xx - internal registers */
ret = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER, ret = cx231xx_read_ctrl_reg(dev, VRT_GET_REGISTER,
(u16)reg->reg, value, 4); (u16)reg->reg, value, 4);
reg->val = value[0] | value[1] << 8 | reg->val = value[0] | value[1] << 8 |
value[2] << 16 | value[3] << 24; value[2] << 16 | (u32)value[3] << 24;
reg->size = 4; reg->size = 4;
break; break;
case 1: /* AFE - read byte */ case 1: /* AFE - read byte */
ret = cx231xx_read_i2c_data(dev, AFE_DEVICE_ADDRESS, ret = cx231xx_read_i2c_data(dev, AFE_DEVICE_ADDRESS,
(u16)reg->reg, 2, &data, 1); (u16)reg->reg, 2, &data, 1);
reg->val = data; reg->val = data;
reg->size = 1; reg->size = 1;
break; break;
case 2: /* Video Block - read byte */ case 2: /* Video Block - read byte */
ret = cx231xx_read_i2c_data(dev, VID_BLK_I2C_ADDRESS, ret = cx231xx_read_i2c_data(dev, VID_BLK_I2C_ADDRESS,
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)