[PATCHv13 03/17] dts: exynos4412-odroid*: enable the HDMI CEC device

2016-03-19 Thread Hans Verkuil
From: Marek Szyprowski Add a dts node entry and enable the HDMI CEC device present in the Exynos4 family of SoCs. Signed-off-by: Marek Szyprowski Signed-off-by: Hans Verkuil ---

[PATCHv13 11/17] v4l2-subdev: add HDMI CEC ops

2016-03-19 Thread Hans Verkuil
Add CEC callbacks to the new v4l2_subdev_cec_ops struct. These are the low-level CEC ops that subdevs that support CEC have to implement. Signed-off-by: Hans Verkuil [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] Signed-off-by: Kamil Debski

更多关于我的信息在

2016-03-19 Thread 更多关于我的信息在
你的老朋友邀你来Q群:343257759

cron job: media_tree daily build: ABI WARNING

2016-03-19 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: Sun Mar 20 04:00:26 CET 2016 git branch: test git hash: b39950960d2b890c21465c69c7c0e4ff6253c6b5 gcc

Re: [RFC PATCH 0/3] [media] tvp515p: Proposal for MC input connector support

2016-03-19 Thread Javier Martinez Canillas
Hello, On 03/09/2016 04:09 PM, Javier Martinez Canillas wrote: > > I was waiting for the MC input connector support discussion to settle before > attempting to propose another patch series for the tvp5150 video decoder but > IIUC you are going to continue the discussion at ELC so I'm posting a

Re: [PATCH] media: add GFP flag to media_*() that could get called in atomic context

2016-03-19 Thread Mauro Carvalho Chehab
Em Wed, 16 Mar 2016 10:28:35 +0200 Sakari Ailus escreveu: > Hi Mauro, > > On Tue, Mar 15, 2016 at 12:55:35PM -0300, Mauro Carvalho Chehab wrote: > > Em Mon, 14 Mar 2016 14:09:09 +0200 > > Sakari Ailus escreveu: > > > > > Hi Mauro, > > > ... > > >

[PATCH 1/2] mceusb: add support for Adaptec eHome receiver

2016-03-19 Thread Olli Salonen
New USB ID for Adaptec eHome receiver in some HP laptops. Signed-off-by: Olli Salonen --- drivers/media/rc/mceusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index 35155ae..09ca9f6 100644 ---

Re: [PATCH] [media] media-device: Don't call notify callbacks holding a spinlock

2016-03-19 Thread Laurent Pinchart
Hi Mauro, On Monday 14 March 2016 16:16:29 Mauro Carvalho Chehab wrote: > The notify routines may sleep. So, they can't be called in spinlock > context. Also, they may want to call other media routines that might > be spinning the spinlock, like creating a link. > > This fixes the following bug:

[PATCH 4/5] [media] media-device: use kref for media_device instance

2016-03-19 Thread Mauro Carvalho Chehab
Now that the media_device can be used by multiple drivers, via devres, we need to be sure that it will be dropped only when all drivers stop using it. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/media-device.c | 48 +++-

Re: [RFC PATCH 1/3] [media] v4l2-mc.h: Add a S-Video C input PAD to demod enum

2016-03-19 Thread Hans Verkuil
On 03/09/2016 08:09 PM, Javier Martinez Canillas wrote: > The enum demod_pad_index list the PADs that an analog TV demod has but > in some decoders the S-Video Y (luminance) and C (chrominance) signals > are carried by different connectors. So a single DEMOD_PAD_IF_INPUT is > not enough and an

Re: [PATCH 1/5] [media] media-device: get rid of the spinlock

2016-03-19 Thread Sakari Ailus
Hi Mauro, On Wed, Mar 16, 2016 at 09:04:02AM -0300, Mauro Carvalho Chehab wrote: > Right now, the lock schema for media_device struct is messy, > since sometimes, it is protected via a spin lock, while, for > media graph traversal, it is protected by a mutex. > > Solve this conflict by always

Re: [PATCH] media: rc: reduce size of struct ir_raw_event

2016-03-19 Thread Sean Young
On Wed, Mar 16, 2016 at 10:18:38PM +0100, Heiner Kallweit wrote: > struct ir_raw_event currently has a size of 12 bytes on most (all?) > architectures. This can be reduced to 8 bytes whilst maintaining > full backwards compatibility. > This saves 2KB in size of struct ir_raw_event_ctrl (as element

Re: [PATCH] [media] media-device: Don't call notify callbacks holding a spinlock

2016-03-19 Thread Mauro Carvalho Chehab
Em Thu, 17 Mar 2016 13:38:56 +0200 Laurent Pinchart escreveu: > Hi Mauro, > > On Monday 14 March 2016 16:16:29 Mauro Carvalho Chehab wrote: > > The notify routines may sleep. So, they can't be called in spinlock > > context. Also, they may want to call other

Re: STK1160 - no video

2016-03-19 Thread Ezequiel Garcia
On 18 March 2016 at 23:29, Kevin Fitch wrote: > Well, I just tried, and failed to reproduce those kernel log messages. > There is a comment in one of the source file about "spammy" messages > that show up if there is mismatch between the actual and expected > video standards.

[PATCH 5/5] [media] media-device: make media_device_cleanup() static

2016-03-19 Thread Mauro Carvalho Chehab
When multiple drivers are sharing the media_device struct, one driver cannot know the right moment to cleanup the media_device struct, because it can happen only when the struct is not used by the other drivers. So, let's call media_device_cleanup() internally, and ensure that

Re: [PATCH] fence: add missing descriptions for fence

2016-03-19 Thread Luis de Bethencourt
On 19/03/16 23:55, Javier Martinez Canillas wrote: > Hello Luis, > > On Sat, Mar 19, 2016 at 4:50 PM, Luis de Bethencourt > wrote: >> Commit b55b54b5db33 ("staging/android: remove struct sync_pt") >> added the members child_list and active_list to the fence struct, but >>

Re: [PATCH] fence: add missing descriptions for fence

2016-03-19 Thread Javier Martinez Canillas
Hello Luis, On Sat, Mar 19, 2016 at 4:50 PM, Luis de Bethencourt wrote: > Commit b55b54b5db33 ("staging/android: remove struct sync_pt") > added the members child_list and active_list to the fence struct, but > didn't add descriptions for these. Adding the descriptions. >

cron job: media_tree daily build: OK

2016-03-19 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: Fri Mar 18 04:00:21 CET 2016 git branch: test git hash: da470473c9cf9c4ebb40d046b306c76427b6df94 gcc

Re: STK1160 - no video

2016-03-19 Thread Ezequiel Garcia
Hey Kevin, On 4 March 2016 at 00:11, Kevin Fitch wrote: > Here is a quick patch that gives me actual video. That being said I > see some curious stuff being logged while video is streaming: > Patch looks more or less good, but that kernel log is not good. It indicates that

[PATCH 3/5] [media] au0828: Unregister notifiers

2016-03-19 Thread Mauro Carvalho Chehab
If au0828 gets removed, we need to remove the notifiers. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/usb/au0828/au0828-core.c | 34 -- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git

[PATCH] Remove space before end of line in Astra-28.2E file

2016-03-19 Thread Edward Sheldrake
Fixes dvb-format-convert parsing the polarization value. Signed-off-by: Edward Sheldrake --- dvb-s/Astra-28.2E | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvb-s/Astra-28.2E b/dvb-s/Astra-28.2E index ea06c56..5c3e515 100644 --- a/dvb-s/Astra-28.2E

Re: [PATCH 3/5] [media] au0828: Unregister notifiers

2016-03-19 Thread Javier Martinez Canillas
Hello Mauro, Patch looks good to me, I just have a minor comment: On Wed, Mar 16, 2016 at 9:04 AM, Mauro Carvalho Chehab wrote: > If au0828 gets removed, we need to remove the notifiers. > > Signed-off-by: Mauro Carvalho Chehab > --- >

[PATCH 1/5] [media] media-device: get rid of the spinlock

2016-03-19 Thread Mauro Carvalho Chehab
Right now, the lock schema for media_device struct is messy, since sometimes, it is protected via a spin lock, while, for media graph traversal, it is protected by a mutex. Solve this conflict by always using a mutex. As a side effect, this prevents a bug where the media notifiers were called at

Re: [PATCH 6/7] mtd: nand: sunxi: add support for DMA assisted operations

2016-03-19 Thread Boris Brezillon
On Tue, 8 Mar 2016 12:15:14 +0100 Boris Brezillon wrote: > The sunxi NAND controller is able to pipeline ECC operations only when > operated in DMA mode, which improves a lot NAND throughput while keeping > CPU usage low. > > Signed-off-by: Boris Brezillon

[PATCH RFC 2/2] media: platform: pxa_camera: make a standalone v4l2 device

2016-03-19 Thread Robert Jarzmik
This patch removes the soc_camera API dependency from pxa_camera. In the current status : - all previously captures are working the same on pxa270 - the s_crop() call was removed, judged not working (see what happens soc_camera_s_crop() when get_crop() == NULL) - if the pixel clock is

[PATCH RFC 1/2] media: platform: transfer format translations to soc_mediabus

2016-03-19 Thread Robert Jarzmik
Transfer the formats translations to soc_mediabus. Even is soc_camera was to be deprecated, soc_mediabus will survive, and should describe all that happens on the bus connecting the image processing unit of the SoC and the sensor. The translation engine provides an easy way to compute the formats

[PATCH RFC 0/2] pxa_camera transition to v4l2 standalone device

2016-03-19 Thread Robert Jarzmik
Hi Hans and Guennadi, As Hans is converting sh_mobile_ceu_camera.c, let's see how close our ports are to see if there are things we could either reuse of change. The port is assuming : - the formation translation is transferred into soc_mediabus, so that it can be reused across all v4l2

[RFCv1 PATCH 0/2] Driver for the Toshiba tc358840 HDMI-to-CSI2 bridge

2016-03-19 Thread Hans Verkuil
From: Hans Verkuil This is an initial version for the Toshiba tc358840 HDMI-to-CSI2 bridge. The original code was contributed by Armin Weiss and I have cleaned it up, rebased it to our media tree, finalized the 4k support and added CEC support (this is a separate patch

[PATCH] pctv452e: correct parameters for TechnoTrend TT S2-3600

2016-03-19 Thread Olli Salonen
2008-02-25 Andre Weidemann added support for TT S2-3600 and noted that he still gets image distortions every now and then. It seems to be common knowledge in many projects that changing the USB parameters seems to help. OpenELEC has included this patch for a few years, for example. Nobody

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Javier Martinez Canillas
Hello Shuah, On 03/18/2016 11:01 AM, Shuah Khan wrote: > On 03/18/2016 07:05 AM, Mauro Carvalho Chehab wrote: >> Now that media_device_unregister() also does a cleanup, rename it >> to media_device_unregister_cleanup(). >> >> Signed-off-by: Mauro Carvalho Chehab > > I

Re: STK1160 - no video

2016-03-19 Thread Kevin Fitch
Well, I just tried, and failed to reproduce those kernel log messages. There is a comment in one of the source file about "spammy" messages that show up if there is mismatch between the actual and expected video standards. I don't think I had them mismatched before, but maybe I did. Or maybe after

Re: [PATCH v3 06/22] media: Media Controller enable/disable source handler API

2016-03-19 Thread Sakari Ailus
Hi Shuah, I see that the patches have been merged to media-tree.git master and subsequently a pull request has been sent to Linus including them, but the remaining issues still need to be fixed. Some matters should be discussed further on the list. On Mon, Mar 14, 2016 at 09:22:12AM -0600, Shuah

[PATCH] media: fix media_device_unregister() to destroy media device device resource

2016-03-19 Thread Shuah Khan
When all drivers except usb-core driver is unbound, destroy the media device resource. Other wise, media device resource will persist in a defunct state. This leads to use-after-free and bad access errors during a subsequent bind. Fix it to destroy the media device resource when last reference is

[PATCH] fence: add missing descriptions for fence

2016-03-19 Thread Luis de Bethencourt
Commit b55b54b5db33 ("staging/android: remove struct sync_pt") added the members child_list and active_list to the fence struct, but didn't add descriptions for these. Adding the descriptions. Signed-off-by: Luis de Bethencourt --- Hi, Noticed this missing descriptions

Re: [PATCH 4/5] [media] media-device: use kref for media_device instance

2016-03-19 Thread Sakari Ailus
Hi Mauro, On Wed, Mar 16, 2016 at 09:04:05AM -0300, Mauro Carvalho Chehab wrote: > Now that the media_device can be used by multiple drivers, > via devres, we need to be sure that it will be dropped only > when all drivers stop using it. > > Signed-off-by: Mauro Carvalho Chehab

[RFCv1 PATCH 1/2] tc358840: add Toshiba HDMI-to-CSI bridge driver

2016-03-19 Thread Hans Verkuil
From: Hans Verkuil First draft version. This driver was created by Armin Weiss and cleaned up, rebased and 4k support finalized by Hans Verkuil. Signed-off-by: Armin Weiss Signed-off-by: Hans Verkuil ---

Re: [PATCH 2/5] [media] media-device: Fix a comment

2016-03-19 Thread Javier Martinez Canillas
Hello Mauro, On Wed, Mar 16, 2016 at 9:04 AM, Mauro Carvalho Chehab wrote: > The comment is for the wrong function. Fix it. > > Signed-off-by: Mauro Carvalho Chehab > --- > include/media/media-device.h | 2 +- > 1 file changed, 1 insertion(+),

Re: [alsa-devel] [PATCH] sound/usb: Fix memory leak in media_snd_stream_delete() during unbind

2016-03-19 Thread Takashi Iwai
On Thu, 17 Mar 2016 03:58:06 +0100, Shuah Khan wrote: > > media_snd_stream_delete() fails to release resources during unbind. This > leads to use-after-free in media_gobj_create() on a subsequent bind. > > [ 1445.086410] BUG: KASAN: use-after-free in media_gobj_create+0x3a1/0x470 > [media] at

[PATCH] dma-buf,drm,ion: Propagate error code from dma_buf_start_cpu_access()

2016-03-19 Thread Chris Wilson
Drivers, especially i915.ko, can fail during the initial migration of a dma-buf for CPU access. However, the error code from the driver was not being propagated back to ioctl and so userspace was blissfully ignorant of the failure. Rendering corruption ensues. Whilst fixing the ioctl to return

[PATCH] media: rc: reduce size of struct ir_raw_event

2016-03-19 Thread Heiner Kallweit
struct ir_raw_event currently has a size of 12 bytes on most (all?) architectures. This can be reduced to 8 bytes whilst maintaining full backwards compatibility. This saves 2KB in size of struct ir_raw_event_ctrl (as element kfifo is reduced by 512 * 4 bytes) and it allows to copy the full struct

[PATCHv13 14/17] cec: adv7511: add cec support.

2016-03-19 Thread Hans Verkuil
Add CEC support to the adv7511 driver. Signed-off-by: Hans Verkuil [k.deb...@samsung.com: Merged changes from CEC Updates commit by Hans Verkuil] Signed-off-by: Kamil Debski Signed-off-by: Hans Verkuil --- drivers/media/i2c/Kconfig

[PATCH] [media] media: rename media unregister function

2016-03-19 Thread Mauro Carvalho Chehab
Now that media_device_unregister() also does a cleanup, rename it to media_device_unregister_cleanup(). Signed-off-by: Mauro Carvalho Chehab --- drivers/media/common/siano/smsdvb-main.c | 2 +- drivers/media/media-device.c | 4 ++--

Re: [PATCH] media: rc: reduce size of struct ir_raw_event

2016-03-19 Thread Sean Young
On Thu, Mar 17, 2016 at 07:40:59AM +0100, Heiner Kallweit wrote: > Am 16.03.2016 um 23:28 schrieb Sean Young: > > On Wed, Mar 16, 2016 at 10:18:38PM +0100, Heiner Kallweit wrote: > >> + u8 pulse:1; > >> + u8 reset:1; > >> + u8 timeout:1; > >> + u8

[PATCHv13 16/17] cec: s5p-cec: Add s5p-cec driver

2016-03-19 Thread Hans Verkuil
From: Kamil Debski Add CEC interface driver present in the Samsung Exynos range of SoCs. The following files were based on work by SangPil Moon: - exynos_hdmi_cec.h - exynos_hdmi_cecctl.c Signed-off-by: Kamil Debski Signed-off-by: Hans Verkuil

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Shuah Khan
On 03/18/2016 07:05 AM, Mauro Carvalho Chehab wrote: > Now that media_device_unregister() also does a cleanup, rename it > to media_device_unregister_cleanup(). > > Signed-off-by: Mauro Carvalho Chehab I think adding cleanup is redundant. media_device_unregister() would

Re: [RFC PATCH 1/3] [media] v4l2-mc.h: Add a S-Video C input PAD to demod enum

2016-03-19 Thread Hans Verkuil
On 03/18/2016 04:45 PM, Hans Verkuil wrote: > On 03/09/2016 08:09 PM, Javier Martinez Canillas wrote: >> The enum demod_pad_index list the PADs that an analog TV demod has but >> in some decoders the S-Video Y (luminance) and C (chrominance) signals >> are carried by different connectors. So a

[PATCH 2/5] [media] media-device: Fix a comment

2016-03-19 Thread Mauro Carvalho Chehab
The comment is for the wrong function. Fix it. Signed-off-by: Mauro Carvalho Chehab --- include/media/media-device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/media/media-device.h b/include/media/media-device.h index

Re: [PATCH 5/5] [media] media-device: make media_device_cleanup() static

2016-03-19 Thread Javier Martinez Canillas
Hello Mauro, On Wed, Mar 16, 2016 at 11:36 AM, Mauro Carvalho Chehab wrote: > Em Wed, 16 Mar 2016 11:03:38 -0300 > Javier Martinez Canillas escreveu: > >> Hello Mauro, >> >> The patch looks mostly good to me, I just have a question below: >> >> On

[PATCHv13 05/17] HID: add HDMI CEC specific keycodes

2016-03-19 Thread Hans Verkuil
From: Kamil Debski Add HDMI CEC specific keycodes to the keycodes definition. Signed-off-by: Kamil Debski Signed-off-by: Hans Verkuil --- include/uapi/linux/input-event-codes.h | 30 ++ 1 file changed, 30

[PATCHv13 06/17] rc: Add HDMI CEC protocol handling

2016-03-19 Thread Hans Verkuil
From: Kamil Debski Add handling of remote control events coming from the HDMI CEC bus. This patch includes a new keymap that maps values found in the CEC messages to the keys pressed and released. Also, a new protocol has been added to the core. Signed-off-by: Kamil Debski

Re: [PATCH] sound/usb: fix to release stream resources from media_snd_device_delete()

2016-03-19 Thread Shuah Khan
On 03/19/2016 06:10 AM, Mauro Carvalho Chehab wrote: > Em Fri, 18 Mar 2016 20:50:31 -0600 > Shuah Khan escreveu: > >> Fix to release stream resources from media_snd_device_delete() before >> media device is unregistered. Without this change, stream resource free >> is

Re: [PATCH] sound/usb: fix to release stream resources from media_snd_device_delete()

2016-03-19 Thread Shuah Khan
On 03/19/2016 04:39 AM, Mauro Carvalho Chehab wrote: > Em Fri, 18 Mar 2016 23:57:08 -0300 > Mauro Carvalho Chehab escreveu: > >> Em Fri, 18 Mar 2016 20:50:31 -0600 >> Shuah Khan escreveu: >> >>> Fix to release stream resources from

[PATCHv13 00/17] HDMI CEC framework

2016-03-19 Thread Hans Verkuil
Hi all, The thirteenth version of this patchset addresses problems I found when using this patch series in real situations. This also made me realize that this is not quite ready yet to be merged, although it is getting close. See the changelog below. The cec-ctl and cec-compliance utilities

Re: [PATCH] sound/usb: fix to release stream resources from media_snd_device_delete()

2016-03-19 Thread Mauro Carvalho Chehab
Em Fri, 18 Mar 2016 20:50:31 -0600 Shuah Khan escreveu: > Fix to release stream resources from media_snd_device_delete() before > media device is unregistered. Without this change, stream resource free > is attempted after the media device is unregistered which would

[PATCH 1/2] sound/usb/media: use core routine to initialize media_device

2016-03-19 Thread Mauro Carvalho Chehab
The media core has now a routine to initialize media_device for USB devices. Use it, instead of doing its own logic, as it warrants that all USB drivers will behave the same. It also warrants that the device will get the same data, no matter if it was initialized initially via snd-usb-audio or via

[PATCH] media: rc: remove unneeded mutex in rc_register_device

2016-03-19 Thread Heiner Kallweit
Access to dev->initialized is atomic, therefore we don't have to protect it with a mutex. Signed-off-by: Heiner Kallweit --- drivers/media/rc/rc-main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index

Re: [PATCH] media: rc: reduce size of struct ir_raw_event

2016-03-19 Thread Heiner Kallweit
Am 17.03.2016 um 11:53 schrieb Sean Young: > On Thu, Mar 17, 2016 at 07:40:59AM +0100, Heiner Kallweit wrote: >> Am 16.03.2016 um 23:28 schrieb Sean Young: >>> On Wed, Mar 16, 2016 at 10:18:38PM +0100, Heiner Kallweit wrote: + u8 pulse:1; + u8 reset:1; +

RE: RE

2016-03-19 Thread Robert
Please confirm receipt of my previous mail..When can i call you -- 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 RESEND] media: dvb_ringbuffer: Add memory barriers

2016-03-19 Thread Soeren Moch
Implement memory barriers according to Documentation/circular-buffers.txt: - use smp_store_release() to update ringbuffer read/write pointers - use smp_load_acquire() to load write pointer on reader side - use ACCESS_ONCE() to load read pointer on writer side This fixes data stream corruptions

Re: [PATCH 4/5] [media] media-device: use kref for media_device instance

2016-03-19 Thread Javier Martinez Canillas
Hello Mauro, Patch looks almost good to me, I just have a question below: On Wed, Mar 16, 2016 at 9:04 AM, Mauro Carvalho Chehab wrote: > Now that the media_device can be used by multiple drivers, > via devres, we need to be sure that it will be dropped only > when all

[PATCHv13 01/17] dts: exynos4*: add HDMI CEC pin definition to pinctrl

2016-03-19 Thread Hans Verkuil
From: Kamil Debski Add pinctrl nodes for the HDMI CEC device to the Exynos4210 and Exynos4x12 SoCs. These are required by the HDMI CEC device. Signed-off-by: Kamil Debski Signed-off-by: Hans Verkuil Acked-by: Krzysztof Kozlowski

Re: [v4l-utils PATCH 1/1] libv4l2subdev: Allow extra spaces between format strings

2016-03-19 Thread Laurent Pinchart
Hi Sakari, Thank you for the patch. On Friday 11 March 2016 22:43:18 Sakari Ailus wrote: > It's possible to pass more than one format string (and entity) to > v4l2_subdev_parse_setup_formats(), yet v4l2_subdev_parse_pad_format() does > not parse the string until the next non-space character. >

Re: [PATCHv13 05/17] HID: add HDMI CEC specific keycodes

2016-03-19 Thread Hans Verkuil
Hi Dmitry, Can you Ack this? I don't expect this to change anymore. Your comments have been incorporated (added the "Diagonal movement keys" comment). Thanks! Hans On 03/18/2016 03:07 PM, Hans Verkuil wrote: > From: Kamil Debski > > Add HDMI CEC specific keycodes to

[PATCH 1/2] media/dvb-core: fix inverted check

2016-03-19 Thread Max Kellermann
Breakage caused by commit f50d51661a Signed-off-by: Max Kellermann --- drivers/media/dvb-core/dvbdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 560450a..c756d4b 100644 ---

[PATCH 2/2] mceusb: add support for SMK eHome receiver

2016-03-19 Thread Olli Salonen
Add USB ID of SMK RXX6000 series IR receiver. Often branded as Lenovo receiver. Signed-off-by: Olli Salonen --- drivers/media/rc/mceusb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index 09ca9f6..5cf2e74

Re: [PATCH 4/5] [media] media-device: use kref for media_device instance

2016-03-19 Thread Sakari Ailus
Hi Mauro, On Wed, Mar 16, 2016 at 09:04:05AM -0300, Mauro Carvalho Chehab wrote: > Now that the media_device can be used by multiple drivers, > via devres, we need to be sure that it will be dropped only > when all drivers stop using it. Not long ago we split media device initialisation and

Re: [PATCH 7/7] mtd: nand: sunxi: update DT bindings

2016-03-19 Thread Rob Herring
On Tue, Mar 08, 2016 at 12:15:15PM +0100, Boris Brezillon wrote: > Document dmas and dma-names properties. > > Signed-off-by: Boris Brezillon > --- > Documentation/devicetree/bindings/mtd/sunxi-nand.txt | 4 > 1 file changed, 4 insertions(+) Acked-by:

[PATCH v2] media: rc: remove unneeded mutex in rc_register_device

2016-03-19 Thread Heiner Kallweit
Access to dev->initialized is atomic and dev->initialized isn't accessed in any other code protected by this mutex. Therefore we don't need to get the mutex here. Signed-off-by: Heiner Kallweit --- v2: - corrected commit message --- drivers/media/rc/rc-main.c | 2 -- 1

cron job: media_tree daily build: OK

2016-03-19 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: Thu Mar 17 04:00:24 CET 2016 git branch: test git hash: da470473c9cf9c4ebb40d046b306c76427b6df94 gcc

Re: [PATCH] sound/usb: fix to release stream resources from media_snd_device_delete()

2016-03-19 Thread Mauro Carvalho Chehab
Em Fri, 18 Mar 2016 23:57:08 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 18 Mar 2016 20:50:31 -0600 > Shuah Khan escreveu: > > > Fix to release stream resources from media_snd_device_delete() before > > media device is unregistered. Without

Re: [PATCH] dma-buf, drm, ion: Propagate error code from dma_buf_start_cpu_access()

2016-03-19 Thread Daniel Vetter
On Fri, Mar 18, 2016 at 08:02:39PM +, Chris Wilson wrote: > Drivers, especially i915.ko, can fail during the initial migration of a > dma-buf for CPU access. However, the error code from the driver was not > being propagated back to ioctl and so userspace was blissfully ignorant > of the

Re: [PATCH 1/5] [media] media-device: get rid of the spinlock

2016-03-19 Thread Mauro Carvalho Chehab
Em Wed, 16 Mar 2016 09:53:12 -0300 Javier Martinez Canillas escreveu: > Hello Mauro, > > On Wed, Mar 16, 2016 at 9:04 AM, Mauro Carvalho Chehab > wrote: > > Right now, the lock schema for media_device struct is messy, > > since sometimes, it is

[PATCH] sound/usb: Fix memory leak in media_snd_stream_delete() during unbind

2016-03-19 Thread Shuah Khan
media_snd_stream_delete() fails to release resources during unbind. This leads to use-after-free in media_gobj_create() on a subsequent bind. [ 1445.086410] BUG: KASAN: use-after-free in media_gobj_create+0x3a1/0x470 [media] at addr 8801ead49998 [ 1445.086771] Call Trace: [ 1445.086779] []

[PATCHv13 17/17] vivid: add CEC emulation

2016-03-19 Thread Hans Verkuil
The vivid driver has been extended to provide CEC adapters for the HDMI input and HDMI outputs in order to test CEC applications. This CEC emulation is faithful to the CEC timings (i.e., it all at a snail's pace). Signed-off-by: Hans Verkuil ---

Re: [PATCH] media: fix media_device_unregister() to destroy media device device resource

2016-03-19 Thread Mauro Carvalho Chehab
Em Thu, 17 Mar 2016 16:46:36 -0600 Shuah Khan escreveu: > When all drivers except usb-core driver is unbound, destroy the media device > resource. Other wise, media device resource will persist in a defunct state. > This leads to use-after-free and bad access errors

Re: [PATCH] sound/usb: Fix memory leak in media_snd_stream_delete() during unbind

2016-03-19 Thread Shuah Khan
Adding Takashi Iwai On 03/16/2016 08:58 PM, Shuah Khan wrote: > media_snd_stream_delete() fails to release resources during unbind. This > leads to use-after-free in media_gobj_create() on a subsequent bind. > > [ 1445.086410] BUG: KASAN: use-after-free in media_gobj_create+0x3a1/0x470 >

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Javier Martinez Canillas
Hello Mauro, On 03/18/2016 10:05 AM, Mauro Carvalho Chehab wrote: > Now that media_device_unregister() also does a cleanup, rename it > to media_device_unregister_cleanup(). > I believe there should be a Suggested-by Sakari Ailus tag here. > Signed-off-by: Mauro Carvalho Chehab

Re: [PATCH] Add tw5864 driver

2016-03-19 Thread Leon Romanovsky
On Mon, Mar 14, 2016 at 03:55:14AM +0200, Andrey Utkin wrote: > From: Andrey Utkin > > Support for boards based on Techwell TW5864 chip which provides > multichannel video & audio grabbing and encoding (H.264, MJPEG, > ADPCM G.726). > > Signed-off-by: Andrey

Re: [PATCH] media: rc: remove unneeded mutex in rc_register_device

2016-03-19 Thread Vladimir Zapolskiy
On 16.03.2016 20:53, Heiner Kallweit wrote: > Access to dev->initialized is atomic, therefore we don't have to > protect it with a mutex. Mutexes are used to split the code to mutually exclusive execution blocks, so not arguing about the apparently correct change itself I want to emphasize that

Re: [PATCH 4/5] [media] media-device: use kref for media_device instance

2016-03-19 Thread Mauro Carvalho Chehab
Em Wed, 16 Mar 2016 08:05:15 -0600 Shuah Khan escreveu: > On 03/16/2016 06:04 AM, Mauro Carvalho Chehab wrote: > > Now that the media_device can be used by multiple drivers, > > via devres, we need to be sure that it will be dropped only > > when all drivers stop using

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Mauro Carvalho Chehab
Em Fri, 18 Mar 2016 16:20:19 +0200 Sakari Ailus escreveu: > Shuah Khan wrote: > > On 03/18/2016 08:12 AM, Javier Martinez Canillas wrote: > >> Hello Shuah, > >> > >> On 03/18/2016 11:01 AM, Shuah Khan wrote: > >>> On 03/18/2016 07:05 AM, Mauro Carvalho Chehab

我的照片在:

2016-03-19 Thread 我的照片在 :
你的老朋友邀你来Q群:343257759

Re: [PATCH] media: fix media_device_unregister() to destroy media device device resource

2016-03-19 Thread Shuah Khan
On 03/18/2016 03:52 AM, Mauro Carvalho Chehab wrote: > Em Thu, 17 Mar 2016 16:46:36 -0600 > Shuah Khan escreveu: > >> When all drivers except usb-core driver is unbound, destroy the media device >> resource. Other wise, media device resource will persist in a defunct

[PATCHv13 10/17] DocBook/media: add CEC documentation

2016-03-19 Thread Hans Verkuil
Add DocBook documentation for the CEC API. Signed-off-by: Hans Verkuil [k.deb...@samsung.com: add documentation for passthrough mode] [k.deb...@samsung.com: minor fixes and change of reserved field sizes] Signed-off-by: Kamil Debski Signed-off-by: Hans

Re: [PATCHv13 01/17] dts: exynos4*: add HDMI CEC pin definition to pinctrl

2016-03-19 Thread Hans Verkuil
On 03/19/2016 03:50 AM, Krzysztof Kozlowski wrote: > On Fri, Mar 18, 2016 at 03:07:00PM +0100, Hans Verkuil wrote: >> From: Kamil Debski >> >> Add pinctrl nodes for the HDMI CEC device to the Exynos4210 and >> Exynos4x12 SoCs. These are required by the HDMI CEC device. >> >>

[PATCH 2/2] [media] media-device: make topology_version u64

2016-03-19 Thread Mauro Carvalho Chehab
The uAPI defines it with 64 bits. Let's change the Kernel implementation too. Signed-off-by: Mauro Carvalho Chehab --- include/media/media-device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/media/media-device.h

[PATCHv13 09/17] cec.txt: add CEC framework documentation

2016-03-19 Thread Hans Verkuil
From: Hans Verkuil Document the new HDMI CEC framework. Signed-off-by: Hans Verkuil [k.deb...@samsung.com: add DocBook documentation by Hans Verkuil, with Signed-off-by: Kamil Debski Signed-off-by: Hans Verkuil

[PATCHv13 02/17] dts: exynos4: add node for the HDMI CEC device

2016-03-19 Thread Hans Verkuil
From: Kamil Debski This patch adds HDMI CEC node specific to the Exynos4210/4x12 SoC series. Signed-off-by: Kamil Debski Signed-off-by: Hans Verkuil Acked-by: Krzysztof Kozlowski ---

[PATCH] libdvbv5: Fix dvb-format-convert segfault

2016-03-19 Thread Edward Sheldrake
Fixes dvb-format-convert crashing when encountering an unrecognised polarization value. Signed-off-by: Edward Sheldrake --- lib/libdvbv5/dvb-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libdvbv5/dvb-file.c b/lib/libdvbv5/dvb-file.c

Re: [PATCH 4/5] [media] media-device: use kref for media_device instance

2016-03-19 Thread Mauro Carvalho Chehab
Em Thu, 17 Mar 2016 13:50:53 +0200 Sakari Ailus escreveu: > Hi Mauro, > > On Wed, Mar 16, 2016 at 09:04:05AM -0300, Mauro Carvalho Chehab wrote: > > Now that the media_device can be used by multiple drivers, > > via devres, we need to be sure that it will be dropped only >

[RFCv1 PATCH 2/2] tc358840: add CEC support

2016-03-19 Thread Hans Verkuil
From: Hans Verkuil Signed-off-by: Hans Verkuil --- drivers/media/i2c/Kconfig | 2 +- drivers/media/i2c/tc358840.c | 212 +-- drivers/media/i2c/tc358840_regs.h | 301 -- 3

[PATCH 2/2] media/dvb-core: forward media_create_pad_links() return value

2016-03-19 Thread Max Kellermann
Signed-off-by: Max Kellermann --- drivers/media/dvb-core/dvbdev.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index c756d4b..96de2fa 100644 --- a/drivers/media/dvb-core/dvbdev.c +++

[PATCHv13 13/17] cec: adv7842: add cec support

2016-03-19 Thread Hans Verkuil
Add CEC support to the adv7842 driver. Signed-off-by: Hans Verkuil --- drivers/media/i2c/Kconfig | 2 +- drivers/media/i2c/adv7842.c | 331 +++- 2 files changed, 270 insertions(+), 63 deletions(-) diff --git

Re: [PATCH] [media] media: rename media unregister function

2016-03-19 Thread Sakari Ailus
Shuah Khan wrote: > On 03/18/2016 08:12 AM, Javier Martinez Canillas wrote: >> Hello Shuah, >> >> On 03/18/2016 11:01 AM, Shuah Khan wrote: >>> On 03/18/2016 07:05 AM, Mauro Carvalho Chehab wrote: Now that media_device_unregister() also does a cleanup, rename it to

Re: [PATCH 1/5] [media] media-device: get rid of the spinlock

2016-03-19 Thread Javier Martinez Canillas
Hello Mauro, On Wed, Mar 16, 2016 at 9:04 AM, Mauro Carvalho Chehab wrote: > Right now, the lock schema for media_device struct is messy, > since sometimes, it is protected via a spin lock, while, for > media graph traversal, it is protected by a mutex. > > Solve this

[PATCH v2] media: rc: reduce size of struct ir_raw_event

2016-03-19 Thread Heiner Kallweit
struct ir_raw_event currently has a size of 12 bytes on most (all?) architectures. This can be reduced to 8 bytes whilst maintaining full backwards compatibility. This saves 2KB in size of struct ir_raw_event_ctrl (as element kfifo is reduced by 512 * 4 bytes) and it allows to copy the full struct