[PATCH] [media] Fix DVB-T tuning

2016-06-07 Thread Abylay Ospan
can't tune to DVB-T because 10 bytes can't be written to tuner

Signed-off-by: Abylay Ospan 
---
 drivers/media/dvb-frontends/ascot2e.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/dvb-frontends/ascot2e.c 
b/drivers/media/dvb-frontends/ascot2e.c
index f770f6a..8cc8c45 100644
--- a/drivers/media/dvb-frontends/ascot2e.c
+++ b/drivers/media/dvb-frontends/ascot2e.c
@@ -132,7 +132,7 @@ static int ascot2e_write_regs(struct ascot2e_priv *priv,
}
};
 
-   if (len + 1 >= sizeof(buf)) {
+   if (len + 1 > sizeof(buf)) {
dev_warn(>i2c->dev,"wr reg=%04x: len=%d is too big!\n",
 reg, len + 1);
return -E2BIG;
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL] NetUP Universal DVB (revision 1.4)

2016-06-07 Thread Abylay Ospan
yes, strange, not applied to media_tree ... just re-sent this patch to ML.

thanks !

2016-06-07 11:50 GMT-04:00 Saso Slavicic :
> Hi,
>
> I don't see this commit in media_tree.git yet, that's why I wrote...
> As long as it gets fixed... :)
>
> Thanks,
> Saso
>
> From: Abylay Ospan [mailto:aos...@netup.ru]
> Sent: Tuesday, June 07, 2016 5:41 PM
> To: Saso Slavicic
> Cc: Mauro Carvalho Chehab; linux-media
> Subject: Re: [GIT PULL] NetUP Universal DVB (revision 1.4)
>
> Hi Saso,
>
> sorry, this path for ascot2e:
> https://github.com/aospan/linux-netup-1.4/commit/862c0314778e27de4cd4c47f12fe7e4232a7181d
>
> 2016-06-07 11:30 GMT-04:00 Saso Slavicic :
> Hi,
>
> Please check the ASCOT2E issue for the NetUP card as well.
>
> https://patchwork.linuxtv.org/patch/34451
>
> Regards,
> Saso
>
> -Original Message-
> From: linux-media-ow...@vger.kernel.org
> [mailto:linux-media-ow...@vger.kernel.org] On Behalf Of Mauro Carvalho
> Chehab
> Sent: Tuesday, June 07, 2016 5:22 PM
> To: Abylay Ospan
> Cc: linux-media
> Subject: Re: [GIT PULL] NetUP Universal DVB (revision 1.4)
>
> Em Mon, 16 May 2016 11:58:15 -0400
> Abylay Ospan  escreveu:
>
>> Hi Mauro,
>>
>> Please pull code from my repository (details below). Repository is
>> based on linux-next. If it's better to send patch-by-patch basis
>> please let me know - i will prepare emails.
>>
>> This patches adding support for our NetUP Universal DVB card revision
>> 1.4 (ISDB-T added to this revision). This achieved by using new Sony
>> tuner HELENE (CXD2858ER) and new Sony demodulator ARTEMIS (CXD2854ER).
>> And other fixes for our cards in this repository too.
>
> Patches applied.
>
> Please send a patch adding an entry for the new HELENE tuner driver at
> MAINTAINERS.
>
> Regards,
> Mauro
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majord...@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
>
>
>
> --
> Abylay Ospan,
> NetUP Inc.
> http://www.netup.tv
>



-- 
Abylay Ospan,
NetUP Inc.
http://www.netup.tv
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] fix semicolon.cocci warnings

2016-06-07 Thread Abylay Ospan
Acked-by: Abylay Ospan 


2016-06-07 11:26 GMT-04:00 kbuild test robot :
> drivers/media/dvb-frontends/helene.c:750:2-3: Unneeded semicolon
>
>
>  Remove unneeded semicolon.
>
> Generated by: scripts/coccinelle/misc/semicolon.cocci
>
> CC: Abylay Ospan 
> Signed-off-by: Fengguang Wu 
> ---
>
>  helene.c |2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/drivers/media/dvb-frontends/helene.c
> +++ b/drivers/media/dvb-frontends/helene.c
> @@ -747,7 +747,7 @@ static int helene_set_params(struct dvb_
> data[6] = 0x78;
> data[7] = 0x08;
> data[8] = 0x30;
> -   };
> +   }
> helene_write_regs(priv, 0x5E, data, 9);
>
> /* LT_AMP_EN should be 0 */



-- 
Abylay Ospan,
NetUP Inc.
http://www.netup.tv
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


cron job: media_tree daily build: ERRORS

2016-06-07 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for
the kernels and architectures in the list below.

Results of the daily build of media_tree:

date:   Wed Jun  8 04:00:25 CEST 2016
git branch: test
git hash:   4566b2543d89542cdd7fe940579787a160eba883
gcc version:i686-linux-gcc (GCC) 5.3.0
sparse version: v0.5.0-56-g7647c77
smatch version: v0.5.0-3428-gdfe27cf
host hardware:  x86_64
host os:4.5.0-264

linux-git-arm-at91: OK
linux-git-arm-davinci: OK
linux-git-arm-exynos: OK
linux-git-arm-mx: OK
linux-git-arm-omap: OK
linux-git-arm-omap1: OK
linux-git-arm-pxa: OK
linux-git-blackfin-bf561: ERRORS
linux-git-i686: OK
linux-git-m32r: OK
linux-git-mips: ERRORS
linux-git-powerpc64: OK
linux-git-sh: OK
linux-git-x86_64: OK
linux-2.6.36.4-i686: ERRORS
linux-2.6.37.6-i686: ERRORS
linux-2.6.38.8-i686: ERRORS
linux-2.6.39.4-i686: ERRORS
linux-3.0.60-i686: ERRORS
linux-3.1.10-i686: ERRORS
linux-3.2.37-i686: OK
linux-3.3.8-i686: OK
linux-3.4.27-i686: ERRORS
linux-3.5.7-i686: ERRORS
linux-3.6.11-i686: ERRORS
linux-3.7.4-i686: ERRORS
linux-3.8-i686: ERRORS
linux-3.9.2-i686: ERRORS
linux-3.10.1-i686: ERRORS
linux-3.11.1-i686: ERRORS
linux-3.12.23-i686: ERRORS
linux-3.13.11-i686: ERRORS
linux-3.14.9-i686: ERRORS
linux-3.15.2-i686: ERRORS
linux-3.16.7-i686: ERRORS
linux-3.17.8-i686: ERRORS
linux-3.18.7-i686: ERRORS
linux-3.19-i686: ERRORS
linux-4.0-i686: ERRORS
linux-4.1.1-i686: ERRORS
linux-4.2-i686: ERRORS
linux-4.3-i686: ERRORS
linux-4.4-i686: ERRORS
linux-4.5-i686: ERRORS
linux-4.6-i686: OK
linux-4.7-rc1-i686: OK
linux-2.6.36.4-x86_64: ERRORS
linux-2.6.37.6-x86_64: ERRORS
linux-2.6.38.8-x86_64: ERRORS
linux-2.6.39.4-x86_64: ERRORS
linux-3.0.60-x86_64: ERRORS
linux-3.1.10-x86_64: ERRORS
linux-3.2.37-x86_64: OK
linux-3.3.8-x86_64: OK
linux-3.4.27-x86_64: ERRORS
linux-3.5.7-x86_64: ERRORS
linux-3.6.11-x86_64: ERRORS
linux-3.7.4-x86_64: ERRORS
linux-3.8-x86_64: ERRORS
linux-3.9.2-x86_64: ERRORS
linux-3.10.1-x86_64: ERRORS
linux-3.11.1-x86_64: ERRORS
linux-3.12.23-x86_64: ERRORS
linux-3.13.11-x86_64: ERRORS
linux-3.14.9-x86_64: ERRORS
linux-3.15.2-x86_64: ERRORS
linux-3.16.7-x86_64: ERRORS
linux-3.17.8-x86_64: ERRORS
linux-3.18.7-x86_64: ERRORS
linux-3.19-x86_64: ERRORS
linux-4.0-x86_64: ERRORS
linux-4.1.1-x86_64: ERRORS
linux-4.2-x86_64: ERRORS
linux-4.3-x86_64: ERRORS
linux-4.4-x86_64: ERRORS
linux-4.5-x86_64: ERRORS
linux-4.6-x86_64: OK
linux-4.7-rc1-x86_64: OK
apps: OK
spec-git: OK
sparse: WARNINGS
smatch: WARNINGS

Detailed results are available here:

http://www.xs4all.nl/~hverkuil/logs/Wednesday.log

Full logs are available here:

http://www.xs4all.nl/~hverkuil/logs/Wednesday.tar.bz2

The Media Infrastructure API from this daily build is here:

http://www.xs4all.nl/~hverkuil/spec/media.html
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 3/3] ARM: dts: exynos: enable MFC device for all boards

2016-06-07 Thread Javier Martinez Canillas
Hello Marek,

On 06/07/2016 08:03 AM, Marek Szyprowski wrote:
> MFC device can be used without any external hardware dependencies (when
> IOMMU is enabled), so it can be enabled by default (like it has been
> already done for Exynos 542x platforms). This unifies handling of this
> device for Exynos3250, Exynos4 and Exynos542x platforms. Board can still
> include exynos-mfc-reserved-memory.dtsi to enable using this device
> without IOMMU being enabled.
> 
> Signed-off-by: Marek Szyprowski 
> ---

Reviewed-by: Javier Martinez Canillas 

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/3] ARM: dts: exynos: move MFC reserved memory regions from boards to .dtsi

2016-06-07 Thread Javier Martinez Canillas
Hello Marek,

On 06/07/2016 08:03 AM, Marek Szyprowski wrote:
> This patch moves assigning reserved memory regions from each board dts
> to common exynos-mfc-reserved-memory.dtsi file, where those regions are
> defined.
> 
> Signed-off-by: Marek Szyprowski 
> ---

Reviewed-by: Javier Martinez Canillas 
Tested-by: Javier Martinez Canillas 

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 1/3] ARM: dts: exynos: replace hardcoded reserved memory ranges with auto-allocated ones

2016-06-07 Thread Javier Martinez Canillas
Hello Marek,

On 06/07/2016 08:03 AM, Marek Szyprowski wrote:
> Generic reserved memory regions bindings allow to automatically allocate
> region of given parameters (alignment and size), so use this feature
> instead of the hardcoded values, which had no dependency on the real
> hardware. This patch also increases "left" region from 8MiB to 16MiB to
> make the codec really usable with nowadays steams (with 8MiB reserved
> region it was not even possible to decode 480p H264 video).
> 
> Signed-off-by: Marek Szyprowski 
> ---

The patch looks good to me and I've also tested it on an Exynos5800 Peach
Pi Chromebook and an Exynos5420 Odroid XU4 board.

Reviewed-by: Javier Martinez Canillas 
Tested-by: Javier Martinez Canillas 

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v3 0/9] Add MT8173 Video Decoder Driver

2016-06-07 Thread Hans Verkuil



On 06/07/2016 11:22 PM, Mauro Carvalho Chehab wrote:

Em Mon, 30 May 2016 20:29:14 +0800
Tiffany Lin  escreveu:


==
  Introduction
==

The purpose of this series is to add the driver for video codec hw embedded in 
the Mediatek's MT8173 SoCs.
Mediatek Video Codec is able to handle video decoding of in a range of formats.

This patch series add Mediatek block format V4L2_PIX_FMT_MT21, the decoder 
driver will decoded bitstream to
V4L2_PIX_FMT_MT21 format.

This patch series rely on MTK VPU driver in patch series "Add MT8173 Video Encoder 
Driver and VPU Driver"[1]
and patch "CHROMIUM: v4l: Add V4L2_PIX_FMT_VP9 definition"[2] for VP9 support.
Mediatek Video Decoder driver rely on VPU driver to load, communicate with VPU.

Internally the driver uses videobuf2 framework and MTK IOMMU and MTK SMI both 
have been merged in v4.6-rc1.

[1]https://patchwork.linuxtv.org/patch/33734/
[2]https://chromium-review.googlesource.com/#/c/245241/


Hmm... I'm not seeing the firmware for this driver at the
linux-firmware tree:

https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/log/

Nor I'm seeing any pull request for them. Did you send it?
I'll only merge the driver upstream after seeing such pull request.


Mauro, are you confusing the decoder and encoder driver? I haven't thoroughly 
reviewed the decoder driver
yet, so there is no pull request for the decoder driver.

The only pull request I made was for the encoder driver.

Regards,

Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v3] [media] rtl2832: add support for slave ts pid filter

2016-06-07 Thread Martin Blumenstingl
The rtl2832 demod has 2 sets of PID filters. This patch enables
the filter support when using a slave demod.

Signed-off-by: Benjamin Larsson 
Signed-off-by: Martin Blumenstingl 
---
changes since v2:
- rebased to make the patch apply again
- removed explicit initialization of dev->slave_ts as
  rtl2832_slave_ts_ctrl is always called when activating the frontend

This patch was originally written by Benjamin Larsson, all I did was
rebasing the patch and to extend the dev_dbg statements with the
slave_ts information.
This also supersedes the following patch:
https://patchwork.linuxtv.org/patch/34358/

 drivers/media/dvb-frontends/rtl2832.c  | 25 +++--
 drivers/media/dvb-frontends/rtl2832_priv.h |  1 +
 2 files changed, 20 insertions(+), 6 deletions(-)

diff --git a/drivers/media/dvb-frontends/rtl2832.c 
b/drivers/media/dvb-frontends/rtl2832.c
index bfb6bee..c16c69e 100644
--- a/drivers/media/dvb-frontends/rtl2832.c
+++ b/drivers/media/dvb-frontends/rtl2832.c
@@ -947,6 +947,8 @@ static int rtl2832_slave_ts_ctrl(struct i2c_client *client, 
bool enable)
goto err;
}
 
+   dev->slave_ts = enable;
+
return 0;
 err:
dev_dbg(>dev, "failed=%d\n", ret);
@@ -960,7 +962,7 @@ static int rtl2832_pid_filter_ctrl(struct dvb_frontend *fe, 
int onoff)
int ret;
u8 u8tmp;
 
-   dev_dbg(>dev, "onoff=%d\n", onoff);
+   dev_dbg(>dev, "onoff=%d, slave_ts=%d\n", onoff, dev->slave_ts);
 
/* enable / disable PID filter */
if (onoff)
@@ -968,7 +970,10 @@ static int rtl2832_pid_filter_ctrl(struct dvb_frontend 
*fe, int onoff)
else
u8tmp = 0x00;
 
-   ret = regmap_update_bits(dev->regmap, 0x061, 0xc0, u8tmp);
+   if (dev->slave_ts)
+   ret = regmap_update_bits(dev->regmap, 0x021, 0xc0, u8tmp);
+   else
+   ret = regmap_update_bits(dev->regmap, 0x061, 0xc0, u8tmp);
if (ret)
goto err;
 
@@ -986,8 +991,8 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, u8 
index, u16 pid,
int ret;
u8 buf[4];
 
-   dev_dbg(>dev, "index=%d pid=%04x onoff=%d\n",
-   index, pid, onoff);
+   dev_dbg(>dev, "index=%d pid=%04x onoff=%d slave_ts=%d\n",
+   index, pid, onoff, dev->slave_ts);
 
/* skip invalid PIDs (0x2000) */
if (pid > 0x1fff || index > 32)
@@ -1003,14 +1008,22 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, 
u8 index, u16 pid,
buf[1] = (dev->filters >>  8) & 0xff;
buf[2] = (dev->filters >> 16) & 0xff;
buf[3] = (dev->filters >> 24) & 0xff;
-   ret = regmap_bulk_write(dev->regmap, 0x062, buf, 4);
+
+   if (dev->slave_ts)
+   ret = regmap_bulk_write(dev->regmap, 0x022, buf, 4);
+   else
+   ret = regmap_bulk_write(dev->regmap, 0x062, buf, 4);
if (ret)
goto err;
 
/* add PID */
buf[0] = (pid >> 8) & 0xff;
buf[1] = (pid >> 0) & 0xff;
-   ret = regmap_bulk_write(dev->regmap, 0x066 + 2 * index, buf, 2);
+
+   if (dev->slave_ts)
+   ret = regmap_bulk_write(dev->regmap, 0x026 + 2 * index, buf, 2);
+   else
+   ret = regmap_bulk_write(dev->regmap, 0x066 + 2 * index, buf, 2);
if (ret)
goto err;
 
diff --git a/drivers/media/dvb-frontends/rtl2832_priv.h 
b/drivers/media/dvb-frontends/rtl2832_priv.h
index c1a8a69..9a6d01a 100644
--- a/drivers/media/dvb-frontends/rtl2832_priv.h
+++ b/drivers/media/dvb-frontends/rtl2832_priv.h
@@ -44,6 +44,7 @@ struct rtl2832_dev {
bool sleeping;
struct delayed_work i2c_gate_work;
unsigned long filters; /* PID filter */
+   bool slave_ts;
 };
 
 struct rtl2832_reg_entry {
-- 
2.8.3

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[GIT PULL 4.8] af9035

2016-06-07 Thread Antti Palosaari

The following changes since commit 94d0eaa419871a6e2783f8c131b1d76d5f2a5524:

  [media] mn88472: move out of staging to media (2016-06-07 15:46:47 -0300)

are available in the git repository at:

  git://linuxtv.org/anttip/media_tree.git af9035

for you to fetch changes up to 04c5e503b7f0e1dc3bb40b2ed1f4ab7e6e43e5fd:

  af9035: fix logging (2016-06-07 22:02:33 +0300)


Alessandro Radicati (2):
  af9035: I2C combined write + read transaction fix
  af9035: fix for MXL5007T devices with I2C read issues

Antti Palosaari (1):
  af9035: fix logging

 drivers/media/usb/dvb-usb-v2/af9035.c | 227 


 drivers/media/usb/dvb-usb-v2/af9035.h |   1 +
 2 files changed, 133 insertions(+), 95 deletions(-)


--
http://palosaari.fi/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[linuxtv-media:master 185/203] drivers/media/dvb-frontends/helene.c:750:2-3: Unneeded semicolon

2016-06-07 Thread kbuild test robot
tree:   git://linuxtv.org/media_tree.git master
head:   4cf11a481f0be471e069d2e61372875e0f12c166
commit: 2dc1ed4edbac1d08e5bb73ae4a00a592011bde64 [185/203] [media] Add support 
Sony HELENE Sat/Ter Tuner


coccinelle warnings: (new ones prefixed by >>)

>> drivers/media/dvb-frontends/helene.c:750:2-3: Unneeded semicolon

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructureOpen Source Technology Center
https://lists.01.org/pipermail/kbuild-all   Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] fix semicolon.cocci warnings

2016-06-07 Thread kbuild test robot
drivers/media/dvb-frontends/helene.c:750:2-3: Unneeded semicolon


 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

CC: Abylay Ospan 
Signed-off-by: Fengguang Wu 
---

 helene.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/media/dvb-frontends/helene.c
+++ b/drivers/media/dvb-frontends/helene.c
@@ -747,7 +747,7 @@ static int helene_set_params(struct dvb_
data[6] = 0x78;
data[7] = 0x08;
data[8] = 0x30;
-   };
+   }
helene_write_regs(priv, 0x5E, data, 9);
 
/* LT_AMP_EN should be 0 */
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL] NetUP Universal DVB (revision 1.4)

2016-06-07 Thread Mauro Carvalho Chehab
Em Tue, 07 Jun 2016 11:37:27 -0400
Abylay Ospan  escreveu:

> Hi Mauro,
> 
> Please find MAINTAINERs update on the same repository:
> https://github.com/aospan/linux-netup-1.4/commit/4d8465b74fc6614d9093f595e69a0517a2a5c3f8

Added. Next time, please send it as a patch to the ML.

Thanks,
Mauro

> 
> thanks !
> 
> 
> 2016-06-07 11:21 GMT-04:00 Mauro Carvalho Chehab :
> 
> > Em Mon, 16 May 2016 11:58:15 -0400
> > Abylay Ospan  escreveu:
> >  
> > > Hi Mauro,
> > >
> > > Please pull code from my repository (details below). Repository is
> > > based on linux-next. If it's better to send patch-by-patch basis
> > > please let me know - i will prepare emails.
> > >
> > > This patches adding support for our NetUP Universal DVB card revision
> > > 1.4 (ISDB-T added to this revision). This achieved by using new Sony
> > > tuner HELENE (CXD2858ER) and new Sony demodulator ARTEMIS (CXD2854ER).
> > > And other fixes for our cards in this repository too.  
> >
> > Patches applied.
> >
> > Please send a patch adding an entry for the new HELENE tuner driver at
> > MAINTAINERS.
> >
> > Regards,
> > Mauro
> >  
> 
> 
> 


-- 
Thanks,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [GIT PULL] NetUP Universal DVB (revision 1.4)

2016-06-07 Thread Saso Slavicic
Hi,

I don't see this commit in media_tree.git yet, that's why I wrote...
As long as it gets fixed... :)

Thanks,
Saso

From: Abylay Ospan [mailto:aos...@netup.ru] 
Sent: Tuesday, June 07, 2016 5:41 PM
To: Saso Slavicic
Cc: Mauro Carvalho Chehab; linux-media
Subject: Re: [GIT PULL] NetUP Universal DVB (revision 1.4)

Hi Saso,

sorry, this path for ascot2e:
https://github.com/aospan/linux-netup-1.4/commit/862c0314778e27de4cd4c47f12fe7e4232a7181d

2016-06-07 11:30 GMT-04:00 Saso Slavicic :
Hi,

Please check the ASCOT2E issue for the NetUP card as well.

https://patchwork.linuxtv.org/patch/34451

Regards,
Saso

-Original Message-
From: linux-media-ow...@vger.kernel.org
[mailto:linux-media-ow...@vger.kernel.org] On Behalf Of Mauro Carvalho
Chehab
Sent: Tuesday, June 07, 2016 5:22 PM
To: Abylay Ospan
Cc: linux-media
Subject: Re: [GIT PULL] NetUP Universal DVB (revision 1.4)

Em Mon, 16 May 2016 11:58:15 -0400
Abylay Ospan  escreveu:

> Hi Mauro,
>
> Please pull code from my repository (details below). Repository is
> based on linux-next. If it's better to send patch-by-patch basis
> please let me know - i will prepare emails.
>
> This patches adding support for our NetUP Universal DVB card revision
> 1.4 (ISDB-T added to this revision). This achieved by using new Sony
> tuner HELENE (CXD2858ER) and new Sony demodulator ARTEMIS (CXD2854ER).
> And other fixes for our cards in this repository too.

Patches applied.

Please send a patch adding an entry for the new HELENE tuner driver at
MAINTAINERS.

Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html




-- 
Abylay Ospan,
NetUP Inc.
http://www.netup.tv

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [GIT PULL] NetUP Universal DVB (revision 1.4)

2016-06-07 Thread Saso Slavicic
Hi,

Please check the ASCOT2E issue for the NetUP card as well.

https://patchwork.linuxtv.org/patch/34451

Regards,
Saso

-Original Message-
From: linux-media-ow...@vger.kernel.org
[mailto:linux-media-ow...@vger.kernel.org] On Behalf Of Mauro Carvalho
Chehab
Sent: Tuesday, June 07, 2016 5:22 PM
To: Abylay Ospan
Cc: linux-media
Subject: Re: [GIT PULL] NetUP Universal DVB (revision 1.4)

Em Mon, 16 May 2016 11:58:15 -0400
Abylay Ospan  escreveu:

> Hi Mauro,
> 
> Please pull code from my repository (details below). Repository is 
> based on linux-next. If it's better to send patch-by-patch basis 
> please let me know - i will prepare emails.
> 
> This patches adding support for our NetUP Universal DVB card revision
> 1.4 (ISDB-T added to this revision). This achieved by using new Sony 
> tuner HELENE (CXD2858ER) and new Sony demodulator ARTEMIS (CXD2854ER).
> And other fixes for our cards in this repository too.

Patches applied.

Please send a patch adding an entry for the new HELENE tuner driver at
MAINTAINERS.

Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org More majordomo info at
http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[GIT PULL] mem2mem changes

2016-06-07 Thread Kamil Debski
The following changes since commit 9bd5d8696fd50a10d830e2ad7f9d4e67e0bbbae2:

  [media] s5p-mfc: don't close instance after free OUTPUT buffers
(2016-06-07 10:45:37 -0300)

are available in the git repository at:

  git://linuxtv.org/kdebski/media_tree_2.git master-20160607

for you to fetch changes up to 8bc18e6d9b0b97ff32eab2563d94f9f758bc93d4:

  s5p-mfc: fix a typo in s5p_mfc_dec (2016-06-07 16:29:55 +0200)


ayaka (3):
  s5p-mfc: Add handling of buffer freeing reqbufs request
  s5p-mfc: remove unnecessary check in try_fmt
  s5p-mfc: fix a typo in s5p_mfc_dec

 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c |  2 +-
 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 12 +++-
 2 files changed, 4 insertions(+), 10 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [GIT PULL] NetUP Universal DVB (revision 1.4)

2016-06-07 Thread Mauro Carvalho Chehab
Em Mon, 16 May 2016 11:58:15 -0400
Abylay Ospan  escreveu:

> Hi Mauro,
> 
> Please pull code from my repository (details below). Repository is
> based on linux-next. If it's better to send patch-by-patch basis
> please let me know - i will prepare emails.
> 
> This patches adding support for our NetUP Universal DVB card revision
> 1.4 (ISDB-T added to this revision). This achieved by using new Sony
> tuner HELENE (CXD2858ER) and new Sony demodulator ARTEMIS (CXD2854ER).
> And other fixes for our cards in this repository too.

Patches applied.

Please send a patch adding an entry for the new HELENE tuner driver at
MAINTAINERS.

Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v3 0/9] Add MT8173 Video Decoder Driver

2016-06-07 Thread Mauro Carvalho Chehab
Em Mon, 30 May 2016 20:29:14 +0800
Tiffany Lin  escreveu:

> ==
>  Introduction
> ==
> 
> The purpose of this series is to add the driver for video codec hw embedded 
> in the Mediatek's MT8173 SoCs.
> Mediatek Video Codec is able to handle video decoding of in a range of 
> formats.
> 
> This patch series add Mediatek block format V4L2_PIX_FMT_MT21, the decoder 
> driver will decoded bitstream to
> V4L2_PIX_FMT_MT21 format.
> 
> This patch series rely on MTK VPU driver in patch series "Add MT8173 Video 
> Encoder Driver and VPU Driver"[1]
> and patch "CHROMIUM: v4l: Add V4L2_PIX_FMT_VP9 definition"[2] for VP9 support.
> Mediatek Video Decoder driver rely on VPU driver to load, communicate with 
> VPU.
> 
> Internally the driver uses videobuf2 framework and MTK IOMMU and MTK SMI both 
> have been merged in v4.6-rc1.
> 
> [1]https://patchwork.linuxtv.org/patch/33734/
> [2]https://chromium-review.googlesource.com/#/c/245241/

Hmm... I'm not seeing the firmware for this driver at the
linux-firmware tree:

https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/log/

Nor I'm seeing any pull request for them. Did you send it?
I'll only merge the driver upstream after seeing such pull request.

Regards,
Mauro

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 2/2] [media] media-device: dynamically allocate struct media_devnode

2016-06-07 Thread Mauro Carvalho Chehab
Em Mon, 6 Jun 2016 17:13:12 -0600
Shuah Khan  escreveu:

> > A few general comments on the patch --- I agree we've had the problem from
> > the day one, but it's really started showing up recently. I agree with the
> > taken approach of separating the lifetimes of both media device and the
> > devnode. However, I don't think the patch as such is enough.

Do you or Laurent has an alternative patchset to fix those issues? From 
where I sit, we have a serious bug that it is already known for a while,
but nobody really tried to fix so far, except for Shuah and myself.

So, if you don't have any alternative patch ready to be merged, I'll
apply what we have later today, together with the patch that fixes cdev
livetime management:
https://patchwork.linuxtv.org/patch/34201/

This will allow it to be tested to a broader audience and check if
the known issues will be fixed. I'll add a C/C stable, but my plan is
to not send it as a fix for 4.7. Instead, to keep the fixes on our tree
up to the next merge window, giving us ~5 weeks for testing.

As this is a Kernel only issue, it can be changed later if someone pops
up with a better approach.

Regards,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCHv2] rtl28xxu: increase failed I2C msg repeat count to 3

2016-06-07 Thread Benjamin Larsson

On 2016-06-07 09:52, Antti Palosaari wrote:

1 and 2 wasn't enough for mn88472 chip on Astrometa device,
so increase it to 3.

Signed-off-by: Antti Palosaari 


ACK

MvH
Benjamin Larsson

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 2/3] ARM: dts: exynos: move MFC reserved memory regions from boards to .dtsi

2016-06-07 Thread Marek Szyprowski
This patch moves assigning reserved memory regions from each board dts
to common exynos-mfc-reserved-memory.dtsi file, where those regions are
defined.

Signed-off-by: Marek Szyprowski 
---
 arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi  | 4 
 arch/arm/boot/dts/exynos4210-origen.dts| 1 -
 arch/arm/boot/dts/exynos4210-smdkv310.dts  | 1 -
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi| 1 -
 arch/arm/boot/dts/exynos4412-origen.dts| 1 -
 arch/arm/boot/dts/exynos4412-smdk4412.dts  | 1 -
 arch/arm/boot/dts/exynos5250-arndale.dts   | 4 
 arch/arm/boot/dts/exynos5250-smdk5250.dts  | 4 
 arch/arm/boot/dts/exynos5250-spring.dts| 4 
 arch/arm/boot/dts/exynos5420-arndale-octa.dts  | 4 
 arch/arm/boot/dts/exynos5420-peach-pit.dts | 4 
 arch/arm/boot/dts/exynos5420-smdk5420.dts  | 4 
 arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 4 
 arch/arm/boot/dts/exynos5800-peach-pi.dts  | 4 
 14 files changed, 4 insertions(+), 37 deletions(-)

diff --git a/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi 
b/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
index da3ced9..f78c14c 100644
--- a/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
+++ b/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
@@ -29,3 +29,7 @@
};
};
 };
+
+ {
+   memory-region = <_left>, <_right>;
+};
diff --git a/arch/arm/boot/dts/exynos4210-origen.dts 
b/arch/arm/boot/dts/exynos4210-origen.dts
index f5e4eb2..07a00dd 100644
--- a/arch/arm/boot/dts/exynos4210-origen.dts
+++ b/arch/arm/boot/dts/exynos4210-origen.dts
@@ -289,7 +289,6 @@
 };
 
  {
-   memory-region = <_left>, <_right>;
status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/exynos4210-smdkv310.dts 
b/arch/arm/boot/dts/exynos4210-smdkv310.dts
index de917f0..2fab072 100644
--- a/arch/arm/boot/dts/exynos4210-smdkv310.dts
+++ b/arch/arm/boot/dts/exynos4210-smdkv310.dts
@@ -134,7 +134,6 @@
 };
 
  {
-   memory-region = <_left>, <_right>;
status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi 
b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
index 13972ca..b3c95d2 100644
--- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
+++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
@@ -510,7 +510,6 @@
 };
 
  {
-   memory-region = <_left>, <_right>;
status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/exynos4412-origen.dts 
b/arch/arm/boot/dts/exynos4412-origen.dts
index 2959fc8..547ae04 100644
--- a/arch/arm/boot/dts/exynos4412-origen.dts
+++ b/arch/arm/boot/dts/exynos4412-origen.dts
@@ -483,7 +483,6 @@
 };
 
  {
-   memory-region = <_left>, <_right>;
status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/exynos4412-smdk4412.dts 
b/arch/arm/boot/dts/exynos4412-smdk4412.dts
index 9b6d561..d4f9383 100644
--- a/arch/arm/boot/dts/exynos4412-smdk4412.dts
+++ b/arch/arm/boot/dts/exynos4412-smdk4412.dts
@@ -113,7 +113,6 @@
 };
 
  {
-   memory-region = <_left>, <_right>;
status = "okay";
 };
 
diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts 
b/arch/arm/boot/dts/exynos5250-arndale.dts
index 39940f4..ea70603 100644
--- a/arch/arm/boot/dts/exynos5250-arndale.dts
+++ b/arch/arm/boot/dts/exynos5250-arndale.dts
@@ -516,10 +516,6 @@
status = "okay";
 };
 
- {
-   memory-region = <_left>, <_right>;
-};
-
 _0 {
status = "okay";
num-slots = <1>;
diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts 
b/arch/arm/boot/dts/exynos5250-smdk5250.dts
index 9fac874..381af13 100644
--- a/arch/arm/boot/dts/exynos5250-smdk5250.dts
+++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts
@@ -344,10 +344,6 @@
status = "okay";
 };
 
- {
-   memory-region = <_left>, <_right>;
-};
-
 _0 {
status = "okay";
num-slots = <1>;
diff --git a/arch/arm/boot/dts/exynos5250-spring.dts 
b/arch/arm/boot/dts/exynos5250-spring.dts
index 784130b..44f4292 100644
--- a/arch/arm/boot/dts/exynos5250-spring.dts
+++ b/arch/arm/boot/dts/exynos5250-spring.dts
@@ -425,10 +425,6 @@
status = "okay";
 };
 
- {
-   memory-region = <_left>, <_right>;
-};
-
 _0 {
status = "okay";
num-slots = <1>;
diff --git a/arch/arm/boot/dts/exynos5420-arndale-octa.dts 
b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
index b8b5f3a..39a3b81 100644
--- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts
+++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts
@@ -347,10 +347,6 @@
};
 };
 
- {
-   memory-region = <_left>, <_right>;
-};
-
 _0 {
status = "okay";
broken-cd;
diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts 
b/arch/arm/boot/dts/exynos5420-peach-pit.dts
index 5bd3f07..fe57423 100644
--- a/arch/arm/boot/dts/exynos5420-peach-pit.dts
+++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts
@@ -689,10 +689,6 @@
status = "okay";
 };
 
- {
-   memory-region = <_left>, <_right>;
-};
-
 

[PATCH 1/3] ARM: dts: exynos: replace hardcoded reserved memory ranges with auto-allocated ones

2016-06-07 Thread Marek Szyprowski
Generic reserved memory regions bindings allow to automatically allocate
region of given parameters (alignment and size), so use this feature
instead of the hardcoded values, which had no dependency on the real
hardware. This patch also increases "left" region from 8MiB to 16MiB to
make the codec really usable with nowadays steams (with 8MiB reserved
region it was not even possible to decode 480p H264 video).

Signed-off-by: Marek Szyprowski 
---
 arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi | 10 ++
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi 
b/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
index c4d063a..da3ced9 100644
--- a/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
+++ b/arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
@@ -14,16 +14,18 @@
#size-cells = <1>;
ranges;
 
-   mfc_left: region@5100 {
+   mfc_left: region_mfc_left {
compatible = "shared-dma-pool";
no-map;
-   reg = <0x5100 0x80>;
+   size = <0x100>;
+   alignment = <0x10>;
};
 
-   mfc_right: region@4300 {
+   mfc_right: region_mfc_right {
compatible = "shared-dma-pool";
no-map;
-   reg = <0x4300 0x80>;
+   size = <0x80>;
+   alignment = <0x10>;
};
};
 };
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 3/3] ARM: dts: exynos: enable MFC device for all boards

2016-06-07 Thread Marek Szyprowski
MFC device can be used without any external hardware dependencies (when
IOMMU is enabled), so it can be enabled by default (like it has been
already done for Exynos 542x platforms). This unifies handling of this
device for Exynos3250, Exynos4 and Exynos542x platforms. Board can still
include exynos-mfc-reserved-memory.dtsi to enable using this device
without IOMMU being enabled.

Signed-off-by: Marek Szyprowski 
---
 arch/arm/boot/dts/exynos3250-rinato.dts | 4 
 arch/arm/boot/dts/exynos3250.dtsi   | 1 -
 arch/arm/boot/dts/exynos4.dtsi  | 1 -
 arch/arm/boot/dts/exynos4210-origen.dts | 4 
 arch/arm/boot/dts/exynos4210-smdkv310.dts   | 4 
 arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 4 
 arch/arm/boot/dts/exynos4412-origen.dts | 4 
 arch/arm/boot/dts/exynos4412-smdk4412.dts   | 4 
 8 files changed, 26 deletions(-)

diff --git a/arch/arm/boot/dts/exynos3250-rinato.dts 
b/arch/arm/boot/dts/exynos3250-rinato.dts
index e4228195..a921813 100644
--- a/arch/arm/boot/dts/exynos3250-rinato.dts
+++ b/arch/arm/boot/dts/exynos3250-rinato.dts
@@ -632,10 +632,6 @@
status = "okay";
 };
 
- {
-   status = "okay";
-};
-
  {
status = "okay";
 };
diff --git a/arch/arm/boot/dts/exynos3250.dtsi 
b/arch/arm/boot/dts/exynos3250.dtsi
index 62f3dcd..70e3ace 100644
--- a/arch/arm/boot/dts/exynos3250.dtsi
+++ b/arch/arm/boot/dts/exynos3250.dtsi
@@ -431,7 +431,6 @@
clocks = < CLK_MFC>, < CLK_SCLK_MFC>;
power-domains = <_mfc>;
iommus = <_mfc>;
-   status = "disabled";
};
 
sysmmu_mfc: sysmmu@1362 {
diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi
index ca8f3e3..32f22e1 100644
--- a/arch/arm/boot/dts/exynos4.dtsi
+++ b/arch/arm/boot/dts/exynos4.dtsi
@@ -428,7 +428,6 @@
clock-names = "mfc", "sclk_mfc";
iommus = <_mfc_l>, <_mfc_r>;
iommu-names = "left", "right";
-   status = "disabled";
};
 
serial_0: serial@1380 {
diff --git a/arch/arm/boot/dts/exynos4210-origen.dts 
b/arch/arm/boot/dts/exynos4210-origen.dts
index 07a00dd..be2751e 100644
--- a/arch/arm/boot/dts/exynos4210-origen.dts
+++ b/arch/arm/boot/dts/exynos4210-origen.dts
@@ -288,10 +288,6 @@
};
 };
 
- {
-   status = "okay";
-};
-
 _0 {
bus-width = <4>;
pinctrl-0 = <_clk _cmd _bus4 _cd>;
diff --git a/arch/arm/boot/dts/exynos4210-smdkv310.dts 
b/arch/arm/boot/dts/exynos4210-smdkv310.dts
index 2fab072..847fae3 100644
--- a/arch/arm/boot/dts/exynos4210-smdkv310.dts
+++ b/arch/arm/boot/dts/exynos4210-smdkv310.dts
@@ -133,10 +133,6 @@
};
 };
 
- {
-   status = "okay";
-};
-
 _1 {
keypad_rows: keypad-rows {
samsung,pins = "gpx2-0", "gpx2-1";
diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi 
b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
index b3c95d2..58ad48e7 100644
--- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
+++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
@@ -509,10 +509,6 @@
clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
 };
 
- {
-   status = "okay";
-};
-
  {
status = "okay";
 };
diff --git a/arch/arm/boot/dts/exynos4412-origen.dts 
b/arch/arm/boot/dts/exynos4412-origen.dts
index 547ae04..26a36fe 100644
--- a/arch/arm/boot/dts/exynos4412-origen.dts
+++ b/arch/arm/boot/dts/exynos4412-origen.dts
@@ -482,10 +482,6 @@
};
 };
 
- {
-   status = "okay";
-};
-
 _0 {
pinctrl-0 = <_clk _cmd _bus4 _bus8>;
pinctrl-names = "default";
diff --git a/arch/arm/boot/dts/exynos4412-smdk4412.dts 
b/arch/arm/boot/dts/exynos4412-smdk4412.dts
index d4f9383..231ffbd 100644
--- a/arch/arm/boot/dts/exynos4412-smdk4412.dts
+++ b/arch/arm/boot/dts/exynos4412-smdk4412.dts
@@ -112,10 +112,6 @@
};
 };
 
- {
-   status = "okay";
-};
-
 _1 {
keypad_rows: keypad-rows {
samsung,pins = "gpx2-0", "gpx2-1", "gpx2-2";
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] media: s5p-mfc: fix compilation issue on archs other than ARM (32bit)

2016-06-07 Thread Marek Szyprowski
This patch fixes build break caused by lack of dma-iommu API on ARM64
(this API is specific to ARM 32bit architecture).

Signed-off-by: Marek Szyprowski 
---
 drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h 
b/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h
index 5d1d1c2..6962132 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h
@@ -14,7 +14,7 @@
 #define S5P_MFC_IOMMU_DMA_BASE 0x2000lu
 #define S5P_MFC_IOMMU_DMA_SIZE SZ_256M
 
-#ifdef CONFIG_EXYNOS_IOMMU
+#if defined(CONFIG_EXYNOS_IOMMU) && defined(CONFIG_ARM_DMA_USE_IOMMU)
 
 #include 
 
-- 
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[GIT PULL 4.8] mn88472

2016-06-07 Thread Antti Palosaari

The following changes since commit 6a2cf60b3e6341a3163d3cac3f4bede126c2e894:

  Merge tag 'v4.7-rc1' into patchwork (2016-05-30 18:16:14 -0300)

are available in the git repository at:

  git://linuxtv.org/anttip/media_tree.git mn88472

for you to fetch changes up to 4f4a390b2f195e5c26be370a4bc85183d6919aac:

  rtl28xxu: sort the config symbols which are auto-selected (2016-06-07 
10:46:02 +0300)



Antti Palosaari (3):
  rtl28xxu: increase failed I2C msg repeat count to 3
  mn88472: finalize driver
  mn88472: move out of staging to media

Julia Lawall (1):
  mn88472: fix typo

Martin Blumenstingl (2):
  rtl28xxu: auto-select more DVB-frontends and tuners
  rtl28xxu: sort the config symbols which are auto-selected

 MAINTAINERS 
|   4 +-
 drivers/media/dvb-frontends/Kconfig 
|   8 ++
 drivers/media/dvb-frontends/Makefile 
|   1 +
 drivers/{staging/media/mn88472 => media/dvb-frontends}/mn88472.c 
| 519 

 drivers/media/dvb-frontends/mn88472.h 
|  45 +-
 drivers/{staging/media/mn88472 => media/dvb-frontends}/mn88472_priv.h 
|  11 ++-
 drivers/media/usb/dvb-usb-v2/Kconfig 
|  13 ++-
 drivers/media/usb/dvb-usb-v2/rtl28xxu.c 
|   2 +-
 drivers/staging/media/Kconfig 
|   2 -
 drivers/staging/media/Makefile 
|   1 -
 drivers/staging/media/mn88472/Kconfig 
|   7 --
 drivers/staging/media/mn88472/Makefile 
|   5 --
 drivers/staging/media/mn88472/TODO 
|  21 -

 13 files changed, 327 insertions(+), 312 deletions(-)
 rename drivers/{staging/media/mn88472 => 
media/dvb-frontends}/mn88472.c (58%)
 rename drivers/{staging/media/mn88472 => 
media/dvb-frontends}/mn88472_priv.h (88%)

 delete mode 100644 drivers/staging/media/mn88472/Kconfig
 delete mode 100644 drivers/staging/media/mn88472/Makefile
 delete mode 100644 drivers/staging/media/mn88472/TODO

--
http://palosaari.fi/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCHv2] mn88472: move out of staging to media

2016-06-07 Thread Antti Palosaari
Move mn88472 DVB-T/T2/C demod driver out of staging to media.

v2: Fix build error reported by kbuild test robot:
drivers/staging/media/mn88472/Makefile: No such file or directory

Reported-by: kbuild test robot 
Signed-off-by: Antti Palosaari 
---
 MAINTAINERS  |   4 +-
 drivers/media/dvb-frontends/Kconfig  |   8 +
 drivers/media/dvb-frontends/Makefile |   1 +
 drivers/media/dvb-frontends/mn88472.c| 613 +++
 drivers/media/dvb-frontends/mn88472_priv.h   |  38 ++
 drivers/staging/media/Kconfig|   2 -
 drivers/staging/media/Makefile   |   1 -
 drivers/staging/media/mn88472/Kconfig|   7 -
 drivers/staging/media/mn88472/Makefile   |   5 -
 drivers/staging/media/mn88472/TODO   |  21 -
 drivers/staging/media/mn88472/mn88472.c  | 613 ---
 drivers/staging/media/mn88472/mn88472_priv.h |  38 --
 12 files changed, 661 insertions(+), 690 deletions(-)
 create mode 100644 drivers/media/dvb-frontends/mn88472.c
 create mode 100644 drivers/media/dvb-frontends/mn88472_priv.h
 delete mode 100644 drivers/staging/media/mn88472/Kconfig
 delete mode 100644 drivers/staging/media/mn88472/Makefile
 delete mode 100644 drivers/staging/media/mn88472/TODO
 delete mode 100644 drivers/staging/media/mn88472/mn88472.c
 delete mode 100644 drivers/staging/media/mn88472/mn88472_priv.h

diff --git a/MAINTAINERS b/MAINTAINERS
index 7304d2e..7a88018 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7596,10 +7596,8 @@ L:   linux-media@vger.kernel.org
 W: https://linuxtv.org
 W: http://palosaari.fi/linux/
 Q: http://patchwork.linuxtv.org/project/linux-media/list/
-T: git git://linuxtv.org/anttip/media_tree.git
 S: Maintained
-F: drivers/staging/media/mn88472/
-F: drivers/media/dvb-frontends/mn88472.h
+F: drivers/media/dvb-frontends/mn88472*
 
 MN88473 MEDIA DRIVER
 M: Antti Palosaari 
diff --git a/drivers/media/dvb-frontends/Kconfig 
b/drivers/media/dvb-frontends/Kconfig
index a82f77c..293e7bb 100644
--- a/drivers/media/dvb-frontends/Kconfig
+++ b/drivers/media/dvb-frontends/Kconfig
@@ -73,6 +73,14 @@ config DVB_SI2165
 
  Say Y when you want to support this frontend.
 
+config DVB_MN88472
+   tristate "Panasonic MN88472"
+   depends on DVB_CORE && I2C
+   select REGMAP_I2C
+   default m if !MEDIA_SUBDRV_AUTOSELECT
+   help
+ Say Y when you want to support this frontend.
+
 config DVB_MN88473
tristate "Panasonic MN88473"
depends on DVB_CORE && I2C
diff --git a/drivers/media/dvb-frontends/Makefile 
b/drivers/media/dvb-frontends/Makefile
index eb7191f..68f6065 100644
--- a/drivers/media/dvb-frontends/Makefile
+++ b/drivers/media/dvb-frontends/Makefile
@@ -95,6 +95,7 @@ obj-$(CONFIG_DVB_STV0900) += stv0900.o
 obj-$(CONFIG_DVB_STV090x) += stv090x.o
 obj-$(CONFIG_DVB_STV6110x) += stv6110x.o
 obj-$(CONFIG_DVB_M88DS3103) += m88ds3103.o
+obj-$(CONFIG_DVB_MN88472) += mn88472.o
 obj-$(CONFIG_DVB_MN88473) += mn88473.o
 obj-$(CONFIG_DVB_ISL6423) += isl6423.o
 obj-$(CONFIG_DVB_EC100) += ec100.o
diff --git a/drivers/media/dvb-frontends/mn88472.c 
b/drivers/media/dvb-frontends/mn88472.c
new file mode 100644
index 000..18fb2df
--- /dev/null
+++ b/drivers/media/dvb-frontends/mn88472.c
@@ -0,0 +1,613 @@
+/*
+ * Panasonic MN88472 DVB-T/T2/C demodulator driver
+ *
+ * Copyright (C) 2013 Antti Palosaari 
+ *
+ *This program is free software; you can redistribute it and/or modify
+ *it under the terms of the GNU General Public License as published by
+ *the Free Software Foundation; either version 2 of the License, or
+ *(at your option) any later version.
+ *
+ *This program is distributed in the hope that it will be useful,
+ *but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *GNU General Public License for more details.
+ */
+
+#include "mn88472_priv.h"
+
+static int mn88472_get_tune_settings(struct dvb_frontend *fe,
+struct dvb_frontend_tune_settings *s)
+{
+   s->min_delay_ms = 1000;
+   return 0;
+}
+
+static int mn88472_read_status(struct dvb_frontend *fe, enum fe_status *status)
+{
+   struct i2c_client *client = fe->demodulator_priv;
+   struct mn88472_dev *dev = i2c_get_clientdata(client);
+   struct dtv_frontend_properties *c = >dtv_property_cache;
+   int ret;
+   unsigned int utmp;
+
+   if (!dev->active) {
+   ret = -EAGAIN;
+   goto err;
+   }
+
+   switch (c->delivery_system) {
+   case SYS_DVBT:
+   ret = regmap_read(dev->regmap[0], 0x7f, );
+   if (ret)
+   goto err;
+   if ((utmp & 0x0f) >= 0x09)
+   *status = FE_HAS_SIGNAL | FE_HAS_CARRIER |
+   

[PATCHv2] rtl28xxu: increase failed I2C msg repeat count to 3

2016-06-07 Thread Antti Palosaari
1 and 2 wasn't enough for mn88472 chip on Astrometa device,
so increase it to 3.

Signed-off-by: Antti Palosaari 
---
 drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c 
b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
index eb7af8c..6643762 100644
--- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
+++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
@@ -624,7 +624,7 @@ static int rtl28xxu_identify_state(struct dvb_usb_device 
*d, const char **name)
dev_dbg(>intf->dev, "chip_id=%u\n", dev->chip_id);
 
/* Retry failed I2C messages */
-   d->i2c_adap.retries = 1;
+   d->i2c_adap.retries = 3;
d->i2c_adap.timeout = msecs_to_jiffies(10);
 
return WARM;
-- 
http://palosaari.fi/

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] [media] rtl2832: add support for slave ts pid filter

2016-06-07 Thread Antti Palosaari

Hello
That patch does not apply anymore as new register access functions are 
now regmap ones. Also I don't see reason you set slave_ts value to false 
on rtl2832_init(). It just be just enough setting its value on 
rtl2832_slave_ts_ctrl().


regards
Antti


On 05/22/2016 07:03 PM, Martin Blumenstingl wrote:

The rtl2832 demod has 2 sets of PID filters. This patch enables
the filter support when using a slave demod.

Signed-off-by: Benjamin Larsson 
Signed-off-by: Martin Blumenstingl 
---
This patch was originally written by Benjamin Larsson, all I did was
rebasing the patch and to extend the dev_dbg statements with the
slave_ts information.
This also supersedes the following patch:
https://patchwork.linuxtv.org/patch/34358/

 drivers/media/dvb-frontends/rtl2832.c  | 26 --
 drivers/media/dvb-frontends/rtl2832_priv.h |  1 +
 2 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/drivers/media/dvb-frontends/rtl2832.c 
b/drivers/media/dvb-frontends/rtl2832.c
index 7c96f76..ba67fb4 100644
--- a/drivers/media/dvb-frontends/rtl2832.c
+++ b/drivers/media/dvb-frontends/rtl2832.c
@@ -409,6 +409,7 @@ static int rtl2832_init(struct dvb_frontend *fe)
c->post_bit_count.len = 1;
c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE;
dev->sleeping = false;
+   dev->slave_ts = false;

return 0;
 err:
@@ -1103,6 +1104,8 @@ static int rtl2832_slave_ts_ctrl(struct i2c_client 
*client, bool enable)
goto err;
}

+   dev->slave_ts = enable;
+
return 0;
 err:
dev_dbg(>dev, "failed=%d\n", ret);
@@ -1116,7 +1119,7 @@ static int rtl2832_pid_filter_ctrl(struct dvb_frontend 
*fe, int onoff)
int ret;
u8 u8tmp;

-   dev_dbg(>dev, "onoff=%d\n", onoff);
+   dev_dbg(>dev, "onoff=%d, slave_ts=%d\n", onoff, dev->slave_ts);

/* enable / disable PID filter */
if (onoff)
@@ -1124,7 +1127,10 @@ static int rtl2832_pid_filter_ctrl(struct dvb_frontend 
*fe, int onoff)
else
u8tmp = 0x00;

-   ret = rtl2832_update_bits(client, 0x061, 0xc0, u8tmp);
+   if (dev->slave_ts)
+   ret = rtl2832_update_bits(client, 0x021, 0xc0, u8tmp);
+   else
+   ret = rtl2832_update_bits(client, 0x061, 0xc0, u8tmp);
if (ret)
goto err;

@@ -1142,8 +1148,8 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, u8 
index, u16 pid,
int ret;
u8 buf[4];

-   dev_dbg(>dev, "index=%d pid=%04x onoff=%d\n",
-   index, pid, onoff);
+   dev_dbg(>dev, "index=%d pid=%04x onoff=%d slave_ts=%d\n",
+   index, pid, onoff, dev->slave_ts);

/* skip invalid PIDs (0x2000) */
if (pid > 0x1fff || index > 32)
@@ -1159,14 +1165,22 @@ static int rtl2832_pid_filter(struct dvb_frontend *fe, 
u8 index, u16 pid,
buf[1] = (dev->filters >>  8) & 0xff;
buf[2] = (dev->filters >> 16) & 0xff;
buf[3] = (dev->filters >> 24) & 0xff;
-   ret = rtl2832_bulk_write(client, 0x062, buf, 4);
+
+   if (dev->slave_ts)
+   ret = rtl2832_bulk_write(client, 0x022, buf, 4);
+   else
+   ret = rtl2832_bulk_write(client, 0x062, buf, 4);
if (ret)
goto err;

/* add PID */
buf[0] = (pid >> 8) & 0xff;
buf[1] = (pid >> 0) & 0xff;
-   ret = rtl2832_bulk_write(client, 0x066 + 2 * index, buf, 2);
+
+   if (dev->slave_ts)
+   ret = rtl2832_bulk_write(client, 0x026 + 2 * index, buf, 2);
+   else
+   ret = rtl2832_bulk_write(client, 0x066 + 2 * index, buf, 2);
if (ret)
goto err;

diff --git a/drivers/media/dvb-frontends/rtl2832_priv.h 
b/drivers/media/dvb-frontends/rtl2832_priv.h
index 6b875f4..8eb2e0b 100644
--- a/drivers/media/dvb-frontends/rtl2832_priv.h
+++ b/drivers/media/dvb-frontends/rtl2832_priv.h
@@ -45,6 +45,7 @@ struct rtl2832_dev {
bool sleeping;
struct delayed_work i2c_gate_work;
unsigned long filters; /* PID filter */
+   bool slave_ts;
 };

 struct rtl2832_reg_entry {



--
http://palosaari.fi/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v4 0/2] [media] atmel-isc: add driver for Atmel ISC

2016-06-07 Thread Songjun Wu
The Image Sensor Controller driver includes two parts.
1) Driver code to implement the ISC function.
2) Device tree binding documentation, it describes how
   to add the ISC in device tree.

Changes in v4:
- Modify the isc clock code since the dt is changed.
- Remove the isc clock nodes.

Changes in v3:
- Add pm runtime feature.
- Modify the isc clock code since the dt is changed.
- Remove the 'atmel,sensor-preferred'.
- Modify the isc clock node according to the Rob's remarks.

Changes in v2:
- Add "depends on COMMON_CLK" and "VIDEO_V4L2_SUBDEV_API"
  in Kconfig file.
- Correct typos and coding style according to Laurent's remarks
- Delete the loop while in 'isc_clk_enable' function.
- Add the code to support VIDIOC_CREATE_BUFS in
  'isc_queue_setup' function.
- Invoke isc_config to configure register in
  'isc_start_streaming' function.
- Add the struct completion 'comp' to synchronize with
  the frame end interrupt in 'isc_stop_streaming' function.
- Check the return value of the clk_prepare_enable
  in 'isc_open' function.
- Set the default format in 'isc_open' function.
- Add an exit condition in the loop while in 'isc_config'.
- Delete the hardware setup operation in 'isc_set_format'.
- Refuse format modification during streaming
  in 'isc_s_fmt_vid_cap' function.
- Invoke v4l2_subdev_alloc_pad_config to allocate and
  initialize the pad config in 'isc_async_complete' function.
- Remove the '.owner  = THIS_MODULE,' in atmel_isc_driver.
- Replace the module_platform_driver_probe() with
  module_platform_driver().
- Remove the unit address of the endpoint.
- Add the unit address to the clock node.
- Avoid using underscores in node names.
- Drop the "0x" in the unit address of the i2c node.
- Modify the description of 'atmel,sensor-preferred'.
- Add the description for the ISC internal clock.

Songjun Wu (2):
  [media] atmel-isc: add the Image Sensor Controller code
  [media] atmel-isc: DT binding for Image Sensor Controller driver

 .../devicetree/bindings/media/atmel-isc.txt|   69 +
 drivers/media/platform/Kconfig |1 +
 drivers/media/platform/Makefile|2 +
 drivers/media/platform/atmel/Kconfig   |9 +
 drivers/media/platform/atmel/Makefile  |1 +
 drivers/media/platform/atmel/atmel-isc-regs.h  |  276 
 drivers/media/platform/atmel/atmel-isc.c   | 1580 
 7 files changed, 1938 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/atmel-isc.txt
 create mode 100644 drivers/media/platform/atmel/Kconfig
 create mode 100644 drivers/media/platform/atmel/Makefile
 create mode 100644 drivers/media/platform/atmel/atmel-isc-regs.h
 create mode 100644 drivers/media/platform/atmel/atmel-isc.c

-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v4 1/2] [media] atmel-isc: add the Image Sensor Controller code

2016-06-07 Thread Songjun Wu
Add driver for the Image Sensor Controller. It manages
incoming data from a parallel based CMOS/CCD sensor.
It has an internal image processor, also integrates a
triple channel direct memory access controller master
interface.

Signed-off-by: Songjun Wu 
---

Changes in v4:
- Modify the isc clock code since the dt is changed.

Changes in v3:
- Add pm runtime feature.
- Modify the isc clock code since the dt is changed.

Changes in v2:
- Add "depends on COMMON_CLK" and "VIDEO_V4L2_SUBDEV_API"
  in Kconfig file.
- Correct typos and coding style according to Laurent's remarks
- Delete the loop while in 'isc_clk_enable' function.
- Add the code to support VIDIOC_CREATE_BUFS in
  'isc_queue_setup' function.
- Invoke isc_config to configure register in
  'isc_start_streaming' function.
- Add the struct completion 'comp' to synchronize with
  the frame end interrupt in 'isc_stop_streaming' function.
- Check the return value of the clk_prepare_enable
  in 'isc_open' function.
- Set the default format in 'isc_open' function.
- Add an exit condition in the loop while in 'isc_config'.
- Delete the hardware setup operation in 'isc_set_format'.
- Refuse format modification during streaming
  in 'isc_s_fmt_vid_cap' function.
- Invoke v4l2_subdev_alloc_pad_config to allocate and
  initialize the pad config in 'isc_async_complete' function.
- Remove the '.owner  = THIS_MODULE,' in atmel_isc_driver.
- Replace the module_platform_driver_probe() with
  module_platform_driver().

 drivers/media/platform/Kconfig|1 +
 drivers/media/platform/Makefile   |2 +
 drivers/media/platform/atmel/Kconfig  |9 +
 drivers/media/platform/atmel/Makefile |1 +
 drivers/media/platform/atmel/atmel-isc-regs.h |  276 +
 drivers/media/platform/atmel/atmel-isc.c  | 1580 +
 6 files changed, 1869 insertions(+)
 create mode 100644 drivers/media/platform/atmel/Kconfig
 create mode 100644 drivers/media/platform/atmel/Makefile
 create mode 100644 drivers/media/platform/atmel/atmel-isc-regs.h
 create mode 100644 drivers/media/platform/atmel/atmel-isc.c

diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig
index 84e041c..91d7aea 100644
--- a/drivers/media/platform/Kconfig
+++ b/drivers/media/platform/Kconfig
@@ -110,6 +110,7 @@ source "drivers/media/platform/exynos4-is/Kconfig"
 source "drivers/media/platform/s5p-tv/Kconfig"
 source "drivers/media/platform/am437x/Kconfig"
 source "drivers/media/platform/xilinx/Kconfig"
+source "drivers/media/platform/atmel/Kconfig"
 
 config VIDEO_TI_CAL
tristate "TI CAL (Camera Adaptation Layer) driver"
diff --git a/drivers/media/platform/Makefile b/drivers/media/platform/Makefile
index bbb7bd1..ad8f471 100644
--- a/drivers/media/platform/Makefile
+++ b/drivers/media/platform/Makefile
@@ -55,4 +55,6 @@ obj-$(CONFIG_VIDEO_AM437X_VPFE)   += am437x/
 
 obj-$(CONFIG_VIDEO_XILINX) += xilinx/
 
+obj-$(CONFIG_VIDEO_ATMEL_ISC)  += atmel/
+
 ccflags-y += -I$(srctree)/drivers/media/i2c
diff --git a/drivers/media/platform/atmel/Kconfig 
b/drivers/media/platform/atmel/Kconfig
new file mode 100644
index 000..867dca2
--- /dev/null
+++ b/drivers/media/platform/atmel/Kconfig
@@ -0,0 +1,9 @@
+config VIDEO_ATMEL_ISC
+   tristate "ATMEL Image Sensor Controller (ISC) support"
+   depends on VIDEO_V4L2 && COMMON_CLK && VIDEO_V4L2_SUBDEV_API && HAS_DMA
+   depends on ARCH_AT91 || COMPILE_TEST
+   select VIDEOBUF2_DMA_CONTIG
+   select REGMAP_MMIO
+   help
+  This module makes the ATMEL Image Sensor Controller available
+  as a v4l2 device.
\ No newline at end of file
diff --git a/drivers/media/platform/atmel/Makefile 
b/drivers/media/platform/atmel/Makefile
new file mode 100644
index 000..9d7c999
--- /dev/null
+++ b/drivers/media/platform/atmel/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_VIDEO_ATMEL_ISC) += atmel-isc.o
diff --git a/drivers/media/platform/atmel/atmel-isc-regs.h 
b/drivers/media/platform/atmel/atmel-isc-regs.h
new file mode 100644
index 000..dda9396
--- /dev/null
+++ b/drivers/media/platform/atmel/atmel-isc-regs.h
@@ -0,0 +1,276 @@
+#ifndef __ATMEL_ISC_REGS_H
+#define __ATMEL_ISC_REGS_H
+
+#include 
+
+/* ISC Control Enable Register 0 */
+#define ISC_CTRLEN  0x
+
+#define ISC_CTRLEN_CAPTURE  BIT(0)
+#define ISC_CTRLEN_CAPTURE_MASK BIT(0)
+
+#define ISC_CTRLEN_UPPROBIT(1)
+#define ISC_CTRLEN_UPPRO_MASK   BIT(1)
+
+#define ISC_CTRLEN_HISREQ   BIT(2)
+#define ISC_CTRLEN_HISREQ_MASK  BIT(2)
+
+#define ISC_CTRLEN_HISCLR   BIT(3)
+#define ISC_CTRLEN_HISCLR_MASK  BIT(3)
+
+/* ISC Control Disable Register 0 */
+#define ISC_CTRLDIS 0x0004
+
+#define ISC_CTRLDIS_DISABLE BIT(0)
+#define ISC_CTRLDIS_DISABLE_MASKBIT(0)
+
+#define ISC_CTRLDIS_SWRST   BIT(8)
+#define ISC_CTRLDIS_SWRST_MASK 

[PATCHv2] device tree description for AD5820 camera auto-focus coil

2016-06-07 Thread Pavel Machek

Add documentation for ad5820 device tree binding.

Signed-off-by: Pavel Machek 
Acked-by: Sakari Ailus 
Acked-by: Rob Herring 

---

v2: Fixed nit in example, added acks.

diff --git a/Documentation/devicetree/bindings/media/i2c/ad5820.txt 
b/Documentation/devicetree/bindings/media/i2c/ad5820.txt
new file mode 100644
index 000..fb70ca5
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/ad5820.txt
@@ -0,0 +1,19 @@
+* Analog Devices AD5820 autofocus coil
+
+Required Properties:
+
+  - compatible: Must contain "adi,ad5820"
+
+  - reg: I2C slave address
+
+  - VANA-supply: supply of voltage for VANA pin
+
+Example:
+
+   ad5820: coil@c {
+   compatible = "adi,ad5820";
+   reg = <0x0c>;
+
+   VANA-supply = <>;
+   };
+


-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) 
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[GIT PULL 4.8] mn88473 fixes

2016-06-07 Thread Antti Palosaari

The following changes since commit 6a2cf60b3e6341a3163d3cac3f4bede126c2e894:

  Merge tag 'v4.7-rc1' into patchwork (2016-05-30 18:16:14 -0300)

are available in the git repository at:

  git://linuxtv.org/anttip/media_tree.git mn88473

for you to fetch changes up to e8af1316e5b16fb39b8b41274e66f474cc6144fd:

  mn88473: fix typo (2016-06-07 09:08:21 +0300)


Antti Palosaari (1):
  mn88473: fix error path on probe()

Julia Lawall (1):
  mn88473: fix typo

 drivers/media/dvb-frontends/mn88473.c | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

--
http://palosaari.fi/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html