spca505.c (0337966d121ebebf73a1c346123e8112796e684e) | spca505.c (52173c5f3f6476eb9100691ec47b10d6740eed4a) |
---|---|
1/* 2 * SPCA505 chip based cameras initialization data 3 * 4 * V4L2 by Jean-Francis Moine <http://moinejf.free.fr> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 636 unchanged lines hidden (view full) --- 645 646 if (sd->subtype == Nxultra) 647 write_vector(gspca_dev, spca505b_open_data_ccd); 648 else 649 write_vector(gspca_dev, spca505_open_data_ccd); 650 ret = reg_read(gspca_dev, 0x06, 0x16); 651 652 if (ret < 0) { | 1/* 2 * SPCA505 chip based cameras initialization data 3 * 4 * V4L2 by Jean-Francis Moine <http://moinejf.free.fr> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 636 unchanged lines hidden (view full) --- 645 646 if (sd->subtype == Nxultra) 647 write_vector(gspca_dev, spca505b_open_data_ccd); 648 else 649 write_vector(gspca_dev, spca505_open_data_ccd); 650 ret = reg_read(gspca_dev, 0x06, 0x16); 651 652 if (ret < 0) { |
653 PERR("register read failed err: %d", ret); | 653 gspca_err(gspca_dev, "register read failed err: %d\n", ret); |
654 return ret; 655 } 656 if (ret != 0x0101) { 657 pr_err("After vector read returns 0x%04x should be 0x0101\n", 658 ret); 659 } 660 661 ret = reg_write(gspca_dev, 0x06, 0x16, 0x0a); --- 140 unchanged lines hidden --- | 654 return ret; 655 } 656 if (ret != 0x0101) { 657 pr_err("After vector read returns 0x%04x should be 0x0101\n", 658 ret); 659 } 660 661 ret = reg_write(gspca_dev, 0x06, 0x16, 0x0a); --- 140 unchanged lines hidden --- |