mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-09 19:26:40 +07:00
[media] em28xx: remove unused image quality control functions
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
6c3598e641
commit
511ffe920b
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user