update(driver): update ir sensor driver adaption rgb sensor orientation.
This commit is contained in:
parent
70e828ab6d
commit
32b73d0a0f
|
@ -239,7 +239,7 @@ static struct regval_list sensor_800x600_30_regs[] = {
|
|||
static struct regval_list sensor_1600x1200_30_regs[] = {
|
||||
{0x0103,0x01},
|
||||
{0x0100,0x00},
|
||||
{0x3221,0x06},//hflip:0x06 vflip:0x60
|
||||
{0x3221,0x60},//hflip:0x06 vflip:0x60
|
||||
{0x36e9,0x80},
|
||||
{0x36e9,0x24},
|
||||
{0x301f,0x01},
|
||||
|
@ -737,7 +737,7 @@ static int sensor_s_hflip(struct v4l2_subdev *sd, int enable)
|
|||
|
||||
static int sensor_get_fmt_mbus_core(struct v4l2_subdev *sd, int *code)
|
||||
{
|
||||
*code = MEDIA_BUS_FMT_SBGGR10_1X10;
|
||||
*code = MEDIA_BUS_FMT_SRGGB10_1X10;//;MEDIA_BUS_FMT_SBGGR10_1X10;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1158,7 +1158,7 @@ static long sensor_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg)
|
|||
static struct sensor_format_struct sensor_formats[] = {
|
||||
{
|
||||
.desc = "Raw RGB Bayer",
|
||||
.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
|
||||
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
|
||||
.regs = sensor_fmt_raw,
|
||||
.regs_size = ARRAY_SIZE(sensor_fmt_raw),
|
||||
.bpp = 1
|
||||
|
|
|
@ -340,7 +340,7 @@ static struct regval_list sensor_800x600_30_regs[] = {
|
|||
static struct regval_list sensor_1600x1200_30_regs[] = {
|
||||
{0x0103,0x01},
|
||||
{0x0100,0x00},
|
||||
{0x3221,0x06},//hflip:0x06 vflip:0x60
|
||||
{0x3221,0x60},//hflip:0x06 vflip:0x60
|
||||
{0x36e9,0x80},
|
||||
{0x36e9,0x24},
|
||||
{0x301f,0x01},
|
||||
|
@ -695,7 +695,7 @@ static int sensor_init(int id)
|
|||
static struct sensor_format_struct sensor_formats[] = {
|
||||
#ifdef SC2356_800X600_30FPS
|
||||
{
|
||||
.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
|
||||
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
|
||||
.width = 800,
|
||||
.height = 600,//1080,
|
||||
.hoffset = 0,
|
||||
|
@ -719,7 +719,7 @@ static struct sensor_format_struct sensor_formats[] = {
|
|||
|
||||
#ifdef SC2356_1600X1200_30FPS
|
||||
{
|
||||
.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
|
||||
.mbus_code = MEDIA_BUS_FMT_SRGGB10_1X10,//MEDIA_BUS_FMT_SBGGR10_1X10, /*.mbus_code = MEDIA_BUS_FMT_SBGGR10_1X10, */
|
||||
.width = 1600,
|
||||
.height = 1200,//1080,
|
||||
.hoffset = 0,
|
||||
|
|
|
@ -106,7 +106,7 @@ echo 0 > /sys/class/gpio/gpio162/value
|
|||
|
||||
echo 9 > /sys/class/pwm/pwmchip0/export
|
||||
echo 100000 > /sys/class/pwm/pwmchip0/pwm9/period
|
||||
echo 70000 > /sys/class/pwm/pwmchip0/pwm9/duty_cycle
|
||||
echo 50000 > /sys/class/pwm/pwmchip0/pwm9/duty_cycle
|
||||
echo 1 > /sys/class/pwm/pwmchip0/pwm9/enable
|
||||
|
||||
# echo 1 > /sys/class/gpio/gpio160/value
|
||||
|
|
Loading…
Reference in New Issue