提交 511ffe92 编写于 作者: F Frank Schaefer 提交者: Mauro Carvalho Chehab

[media] em28xx: remove unused image quality control functions

Signed-off-by: NFrank Schäfer <fschaefer.oss@googlemail.com>
Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 6c3598e6
......@@ -744,72 +744,6 @@ static inline int em28xx_compression_disable(struct em28xx *dev)
return em28xx_write_reg(dev, EM28XX_R26_COMPR, 0x00);
}
static inline int em28xx_contrast_get(struct em28xx *dev)
{
return em28xx_read_reg(dev, EM28XX_R20_YGAIN) & 0x1f;
}
static inline int em28xx_brightness_get(struct em28xx *dev)
{
return em28xx_read_reg(dev, EM28XX_R21_YOFFSET);
}
static inline int em28xx_saturation_get(struct em28xx *dev)
{
return em28xx_read_reg(dev, EM28XX_R22_UVGAIN) & 0x1f;
}
static inline int em28xx_u_balance_get(struct em28xx *dev)
{
return em28xx_read_reg(dev, EM28XX_R23_UOFFSET);
}
static inline int em28xx_v_balance_get(struct em28xx *dev)
{
return em28xx_read_reg(dev, EM28XX_R24_VOFFSET);
}
static inline int em28xx_gamma_get(struct em28xx *dev)
{
return em28xx_read_reg(dev, EM28XX_R14_GAMMA) & 0x3f;
}
static inline int em28xx_contrast_set(struct em28xx *dev, s32 val)
{
u8 tmp = (u8) val;
return em28xx_write_regs(dev, EM28XX_R20_YGAIN, &tmp, 1);
}
static inline int em28xx_brightness_set(struct em28xx *dev, s32 val)
{
u8 tmp = (u8) val;
return em28xx_write_regs(dev, EM28XX_R21_YOFFSET, &tmp, 1);
}
static inline int em28xx_saturation_set(struct em28xx *dev, s32 val)
{
u8 tmp = (u8) val;
return em28xx_write_regs(dev, EM28XX_R22_UVGAIN, &tmp, 1);
}
static inline int em28xx_u_balance_set(struct em28xx *dev, s32 val)
{
u8 tmp = (u8) val;
return em28xx_write_regs(dev, EM28XX_R23_UOFFSET, &tmp, 1);
}
static inline int em28xx_v_balance_set(struct em28xx *dev, s32 val)
{
u8 tmp = (u8) val;
return em28xx_write_regs(dev, EM28XX_R24_VOFFSET, &tmp, 1);
}
static inline int em28xx_gamma_set(struct em28xx *dev, s32 val)
{
u8 tmp = (u8) val;
return em28xx_write_regs(dev, EM28XX_R14_GAMMA, &tmp, 1);
}
/*FIXME: maxw should be dependent of alt mode */
static inline unsigned int norm_maxw(struct em28xx *dev)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册