All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Frank Schäfer" <fschaefer.oss@googlemail.com>
To: m.chehab@samsung.com
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH 4/5] em28xx: remove function em28xx_compression_disable() and its call
Date: Mon, 24 Mar 2014 20:27:36 +0100	[thread overview]
Message-ID: <53308728.8070504@googlemail.com> (raw)
In-Reply-To: <1395493263-2158-4-git-send-email-fschaefer.oss@googlemail.com>


Am 22.03.2014 14:01, schrieb Frank Schäfer:
> em28xx_compression_disable() is a single line function which is called only one
> time and this call also isn't needed.
> Register 0x26 is always configured as part of the scaler configuration, which
> in turn is always done when the resolution changes. And the initial resolution
> setting is applied at first device open.
>
> Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
> ---
>  drivers/media/usb/em28xx/em28xx-video.c | 1 -
>  drivers/media/usb/em28xx/em28xx.h       | 6 ------
>  2 files changed, 7 deletions(-)
>
> diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
> index 0856e5d..e15ac75 100644
> --- a/drivers/media/usb/em28xx/em28xx-video.c
> +++ b/drivers/media/usb/em28xx/em28xx-video.c
> @@ -2376,7 +2376,6 @@ static int em28xx_v4l2_init(struct em28xx *dev)
>  			 (EM28XX_XCLK_AUDIO_UNMUTE | val));
>  
>  	em28xx_set_outfmt(dev);
> -	em28xx_compression_disable(dev);
>  
>  	/* Add image controls */
>  	/* NOTE: at this point, the subdevices are already registered, so bridge
> diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h
> index e95f4eb..dd6190c 100644
> --- a/drivers/media/usb/em28xx/em28xx.h
> +++ b/drivers/media/usb/em28xx/em28xx.h
> @@ -793,12 +793,6 @@ int em28xx_init_camera(struct em28xx *dev);
>  	printk(KERN_WARNING "%s: "fmt,\
>  			dev->name , ##arg); } while (0)
>  
> -static inline int em28xx_compression_disable(struct em28xx *dev)
> -{
> -	/* side effect of disabling scaler and mixer */
> -	return em28xx_write_reg(dev, EM28XX_R26_COMPR, 0x00);
> -}
> -
>  /*FIXME: maxw should be dependent of alt mode */
>  static inline unsigned int norm_maxw(struct em28xx *dev)
>  {

Please disregard this patch, I will send an updated version in a minute.


  reply	other threads:[~2014-03-24 19:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-22 13:00 [PATCH 1/5] em28xx: fix indenting in em28xx_usb_probe() Frank Schäfer
2014-03-22 13:01 ` [PATCH 2/5] em28xx: fix i2c_set_adapdata() call in em28xx_i2c_register() Frank Schäfer
2014-05-09  8:40   ` Hans Verkuil
2014-05-11 20:25     ` Frank Schäfer
2014-03-22 13:01 ` [PATCH 3/5] em28xx: remove some unused fields from struct em28xx Frank Schäfer
2014-03-22 13:01 ` [PATCH 4/5] em28xx: remove function em28xx_compression_disable() and its call Frank Schäfer
2014-03-24 19:27   ` Frank Schäfer [this message]
2014-03-22 13:01 ` [PATCH 5/5] em28xx: move norm_maxw() and norm_maxh() from em28xx.h to em28xx-video.c Frank Schäfer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53308728.8070504@googlemail.com \
    --to=fschaefer.oss@googlemail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.chehab@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.