diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2011-08-04 04:14:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-08-31 17:17:16 -0300 |
commit | 873545820a52e8ab6f6d54a748b1759b98f9354a (patch) | |
tree | e68672a2759d16a28b65ba53b0ae9935b568670a | |
parent | 4129e560fb92a9b2e90e1b80ee6ea8b416724e80 (diff) | |
download | op-kernel-dev-873545820a52e8ab6f6d54a748b1759b98f9354a.zip op-kernel-dev-873545820a52e8ab6f6d54a748b1759b98f9354a.tar.gz |
[media] tm6000: Disable video interface in radio mode
Video data is useless in radio mode, so the corresponding interface can
be safely disabled. This should reduce the amount of isochronous traffic
noticeably.
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/staging/tm6000/tm6000-core.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c index 2cd7bc4..f85e5f2 100644 --- a/drivers/staging/tm6000/tm6000-core.c +++ b/drivers/staging/tm6000/tm6000-core.c @@ -267,9 +267,14 @@ int tm6000_init_analog_mode(struct tm6000_core *dev) struct v4l2_frequency f; if (dev->dev_type == TM6010) { + u8 active = TM6010_REQ07_RCC_ACTIVE_IF_AUDIO_ENABLE; + + if (!dev->radio) + active |= TM6010_REQ07_RCC_ACTIVE_IF_VIDEO_ENABLE; + /* Enable video and audio */ tm6000_set_reg_mask(dev, TM6010_REQ07_RCC_ACTIVE_IF, - 0x60, 0x60); + active, 0x60); /* Disable TS input */ tm6000_set_reg_mask(dev, TM6010_REQ07_RC0_ACTIVE_VIDEO_SOURCE, 0x00, 0x40); |