from: Jeff Tackett

2015-08-23 Thread Jeff Tackett
Hello linux http://www.printvega.com/imagine.php?ahead=9xsyypcn43f3 alfredthedra...@yahoo.com Sent from my iPhone -- 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/m

cron job: media_tree daily build: WARNINGS

2015-08-23 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: Mon Aug 24 04:00:15 CEST 2015 git branch: test git hash: d071c833a0d30e7aae0ea565d92ef83c79106d6f gcc versi

Re: WARNING: CPU: 1 PID: 813 at kernel/module.c:291 module_assert_mutex_or_preempt+0x49/0x90()

2015-08-23 Thread Rusty Russell
poma writes: >> Ref. >> https://bugzilla.redhat.com/show_bug.cgi?id=1252167 >> https://bugzilla.kernel.org/show_bug.cgi?id=102631 >> > > You guys are really something. Hi Poma, I understand your frustration! I got involved via the other thread which didn't mention your bug report anywh

[PATCH v7 30/44] [media] s5c73m3: fix subdev type

2015-08-23 Thread Mauro Carvalho Chehab
This sensor driver is abusing MEDIA_ENT_T_V4L2_SUBDEV, creating some subdevs with a non-existing type. As this is a sensor driver, the proper type is likely MEDIA_ENT_T_CAM_SENSOR. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/i2c/s5c73m3/s5c73m3-core.c b/drivers/media/i2c/s5

[PATCH v7 12/44] [media] media: remove media entity .parent field

2015-08-23 Thread Mauro Carvalho Chehab
From: Javier Martinez Canillas Now that the struct media_entity .parent field is unused, it can be safely removed. Since all the previous users were converted to use the .mdev field from the embedded struct media_gobj instead. Suggested-by: Mauro Carvalho Chehab Signed-off-by: Javier Martinez

[PATCH v7 32/44] [media] davinci_vbpe: stop MEDIA_ENT_T_V4L2_SUBDEV abuse

2015-08-23 Thread Mauro Carvalho Chehab
This driver is abusing MEDIA_ENT_T_V4L2_SUBDEV: - it uses a hack to check if the remote entity is a subdev; - it still uses the legacy entity subtype check macro, that will be removed soon. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/staging/media/davinci_vpfe/dm365_ipipe.c b/d

[PATCH v7 41/44] [media] media: move mdev list init to gobj

2015-08-23 Thread Mauro Carvalho Chehab
Let's control the topology changes inside the graph_object. So, move the removal of interfaces/entitis from the mdev lists to media_gobj_init() and media_gobj_remove(). The main reason is that mdev should have lists for all object types, as the new MC api will require to store objects on separate

[PATCH v7 35/44] [media] media controller: get rid of entity subtype on Kernel

2015-08-23 Thread Mauro Carvalho Chehab
Don't use anymore the type/subtype entity data/macros inside the Kernel. Signed-off-by: Mauro Carvalho Chehab diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 952867571429..796e4a490af8 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@

[PATCH v7 15/44] [media] media: get rid of an unused code

2015-08-23 Thread Mauro Carvalho Chehab
This code is not used in practice. Get rid of it before start converting links to lists. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 138b18416460..0d85c6c28004 100644 --- a/drivers/media/media-device.c +++ b/drivers/media/me

[PATCH v7 39/44] [media] uapi/media.h: Add MEDIA_IOC_G_TOPOLOGY ioctl

2015-08-23 Thread Mauro Carvalho Chehab
Add a new ioctl that will report the entire topology on one go. Signed-off-by: Mauro Carvalho Chehab diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 796e4a490af8..0111d9652b78 100644 --- a/include/media/media-entity.h +++ b/include/media/media-entity.h @@ -181,6 +1

[PATCH v7 08/44] [media] media: add messages when media device gets (un)registered

2015-08-23 Thread Mauro Carvalho Chehab
We can only free the media device after being sure that no graph object is used. In order to help tracking it, let's add debug messages that will print when the media controller gets registered or unregistered. Signed-off-by: Mauro Carvalho Chehab Acked-by: Hans Verkuil Signed-off-by: Mauro Car

[PATCH v7 31/44] [media] s5k5baf: fix subdev type

2015-08-23 Thread Mauro Carvalho Chehab
X-Patchwork-Delegate: m.che...@samsung.com This sensor driver is abusing MEDIA_ENT_T_V4L2_SUBDEV, creating some subdevs with a non-existing type. As this is a sensor driver, the proper type is likely MEDIA_ENT_T_V4L2_SUBDEV_SENSOR. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media

[PATCH v7 27/44] [media] media: add macros to check if subdev or V4L2 DMA

2015-08-23 Thread Mauro Carvalho Chehab
As we'll be removing entity subtypes from the Kernel, we need to provide a way for drivers and core to check if a given entity is represented by a V4L2 subdev or if it is an V4L2 I/O entity (typically with DMA). Signed-off-by: Mauro Carvalho Chehab diff --git a/include/media/media-entity.h b/inc

[PATCH v7 21/44] [media] dvbdev: add support for interfaces

2015-08-23 Thread Mauro Carvalho Chehab
Now that the infrastruct for that is set, add support for interfaces. Please notice that we're missing two links: DVB FE intf-> tuner DVB demux intf -> dvr Those should be added latter, after having the entire graph set. With the current infrastructure, those should be added a

[PATCH v7 05/44] [media] media: use media_gobj inside entities

2015-08-23 Thread Mauro Carvalho Chehab
As entities are graph objects, let's embed media_gobj on it. That ensures an unique ID for entities that can be global along the entire media controller. For now, we'll keep the already existing entity ID. Such field need to be dropped at some point, but for now, let's not do this, to avoid needin

[PATCH v7 09/44] [media] media: add a debug message to warn about gobj creation/removal

2015-08-23 Thread Mauro Carvalho Chehab
It helps to check if the media controller is doing the right thing with the object creation and removal. No extra code/data will be produced if DEBUG or CONFIG_DYNAMIC_DEBUG is not enabled. Signed-off-by: Mauro Carvalho Chehab Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab diff -

[PATCH v7 17/44] [media] media: make add link more generic

2015-08-23 Thread Mauro Carvalho Chehab
The media_entity_add_link() function takes an entity as an argument just to get the list head. Make it more generic by changing the function argument to list_head. No functional changes. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity

[PATCH v7 02/44] [media] staging: omap4iss: get entity ID using media_entity_id()

2015-08-23 Thread Mauro Carvalho Chehab
From: Javier Martinez Canillas The struct media_entity does not have an .id field anymore since now the entity ID is stored in the embedded struct media_gobj. This caused the omap4iss driver fail to build. Fix by using the media_entity_id() macro to obtain the entity ID. Signed-off-by: Javier M

[PATCH v7 07/44] [media] media: use media_gobj inside links

2015-08-23 Thread Mauro Carvalho Chehab
Just like entities and pads, links also need to have unique Object IDs along a given media controller. So, let's add a media_gobj inside it and initialize the object then a new link is created. Signed-off-by: Mauro Carvalho Chehab Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab di

[PATCH v7 03/44] [media] omap3isp: get entity ID using media_entity_id()

2015-08-23 Thread Mauro Carvalho Chehab
From: Javier Martinez Canillas X-Patchwork-Delegate: laurent.pinch...@ideasonboard.com The struct media_entity does not have an .id field anymore since now the entity ID is stored in the embedded struct media_gobj. This caused the omap3isp driver fail to build. Fix by using the media_entity_id()

[PATCH v7 13/44] [media] uapi/media.h: Declare interface types

2015-08-23 Thread Mauro Carvalho Chehab
Declare the interface types that will be used by the new G_TOPOLOGY ioctl that will be defined latter on. For now, we need those types, as they'll be used on the internal structs associated with the new media_interface graph object defined on the next patch. Signed-off-by: Mauro Carvalho Chehab

[PATCH v7 25/44] [media] replace all occurrences of MEDIA_ENT_T_DEVNODE_V4L

2015-08-23 Thread Mauro Carvalho Chehab
Now that interfaces and entities are distinct, it makes no sense of keeping something named as MEDIA_ENT_T_DEVNODE. This change was done with this script: for i in $(git grep -l MEDIA_ENT_T|grep -v uapi/linux/media.h); do sed s,MEDIA_ENT_T_DEVNODE_V4L,MEDIA_ENT_T_V4L2_VIDEO, <$i >a && mv

[PATCH v7 06/44] [media] media: use media_gobj inside pads

2015-08-23 Thread Mauro Carvalho Chehab
PADs also need unique object IDs that won't conflict with the entity object IDs. The pad objects are currently created via media_entity_init() and, once created, never change. While this will likely change in the future in order to support dynamic changes, for now we'll keep PADs as arrays and in

[PATCH v7 22/44] [media] media: add a linked list to track interfaces by mdev

2015-08-23 Thread Mauro Carvalho Chehab
We need to be able to navigate at the interfaces that belong to a given media device, in to indirect interface links. So, add a linked list to track them. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 3e649cacfc07..659507bce6

[PATCH v7 37/44] [media] dvb: modify core to implement interfaces/entities at MC new gen

2015-08-23 Thread Mauro Carvalho Chehab
The Media Controller New Generation redefines the types for both interfaces and entities to be used on DVB. Make the needed changes at the DVB core for all interfaces, entities and data and interface links to appear in the graph. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dv

[PATCH v7 19/44] [media] media: make link debug printk more generic

2015-08-23 Thread Mauro Carvalho Chehab
Remove entity name from the link as this exists only if the object type is PAD on both link ends. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index 9ec9c503caca..5788297cd500 100644 --- a/drivers/media/media-entity.c +++ b/drivers

[PATCH v7 26/44] [media] replace all occurrences of MEDIA_ENT_T_DEVNODE_DVB

2015-08-23 Thread Mauro Carvalho Chehab
Now that interfaces and entities are distinct, it makes no sense of keeping something named as MEDIA_ENT_T_DEVNODE_DVB_foo. Made via this script: for i in $(git grep -l MEDIA_ENT_T|grep -v uapi/linux/media.h); do sed s,MEDIA_ENT_T_DEVNODE_DVB_,MEDIA_ENT_T_DVB_, <$i >a && mv a $i; done

[PATCH v7 20/44] [media] media: add support to link interfaces and entities

2015-08-23 Thread Mauro Carvalho Chehab
Now that we have a new graph object called "interfaces", we need to be able to link them to the entities. Add a linked list to the interfaces to allow them to be linked to the entities. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c

[PATCH v7 40/44] [media] media: Use a macro to interate between all interfaces

2015-08-23 Thread Mauro Carvalho Chehab
Just like we do with entities, use a similar macro for the interfaces loop. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 24fee38730f5..288ab158adad 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-co

[PATCH v7 33/44] [media] omap4iss: stop MEDIA_ENT_T_V4L2_SUBDEV abuse

2015-08-23 Thread Mauro Carvalho Chehab
This driver is abusing MEDIA_ENT_T_V4L2_SUBDEV, as it uses a hack to check if the remote entity is a subdev. Get rid of it. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/staging/media/omap4iss/iss_ipipe.c b/drivers/staging/media/omap4iss/iss_ipipe.c index e1a7b7ba7362..4ae354fe1723

[PATCH v7 18/44] [media] media: make media_link more generic to handle interace links

2015-08-23 Thread Mauro Carvalho Chehab
By adding an union at media_link, we get for free a way to represent interface->entity links. No need to change anything at the code, just at the internal header file. Signed-off-by: Mauro Carvalho Chehab diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 17bb5cbbd67

[PATCH v7 38/44] [media] media: report if a pad is sink or source at debug msg

2015-08-23 Thread Mauro Carvalho Chehab
Sometimes, it is important to see if the created pad is sink or source. Add info to track that. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index ad0827bf0982..24fee38730f5 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/

[PATCH v7 14/44] [media] media: add functions to allow creating interfaces

2015-08-23 Thread Mauro Carvalho Chehab
Interfaces are different than entities: they represent a Kernel<->userspace interaction, while entities represent a piece of hardware/firmware/software that executes a function. Let's distinguish them by creating a separate structure to store the interfaces. Latter patches should change the exist

[PATCH v7 34/44] [media] v4l2-subdev: use MEDIA_ENT_T_UNKNOWN for new subdevs

2015-08-23 Thread Mauro Carvalho Chehab
Instead of abusing MEDIA_ENT_T_V4L2_SUBDEV, initialize new subdev entities as MEDIA_ENT_T_UNKNOWN. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/v4l2-core/v4l2-subdev.c b/drivers/media/v4l2-core/v4l2-subdev.c index 60da43772de9..07600daf5490 100644 --- a/drivers/media/v4l2-cor

[PATCH v7 16/44] [media] media: convert links from array to list

2015-08-23 Thread Mauro Carvalho Chehab
The entire logic that represent graph links were developed on a time where there were no needs to dynamic remove links. So, although links are created/removed one by one via some functions, they're stored as an array inside the entity struct. As the array may grow, there's a logic inside the code

[PATCH v7 11/44] [media] media: use entity.graph_obj.mdev instead of .parent

2015-08-23 Thread Mauro Carvalho Chehab
From: Javier Martinez Canillas The struct media_entity has a .parent field that stores a pointer to the parent struct media_device. But recently a media_gobj was embedded into the entities and since struct media_gojb already has a pointer to a struct media_device in the .mdev field, the .parent f

[PATCH v7 23/44] [media] dvbdev: add support for indirect interface links

2015-08-23 Thread Mauro Carvalho Chehab
Some interfaces indirectly control multiple entities. Add support for those. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 747372ba4fe1..5a2bd03f5dc0 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-c

[PATCH v7 24/44] [media] uapi/media.h: Fix entity namespace

2015-08-23 Thread Mauro Carvalho Chehab
Now that interfaces got created, we need to fix the entity namespace. So, let's create a consistent new namespace and add backward compatibility macros to keep the old namespace preserved. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core

[PATCH v7 36/44] [media] DocBook: update descriptions for the media controller entities

2015-08-23 Thread Mauro Carvalho Chehab
Cleanup the media controller entities description: - remove MEDIA_ENT_T_DEVNODE and MEDIA_ENT_T_V4L2_SUBDEV entity types, as they don't mean anything; - add MEDIA_ENT_T_UNKNOWN with a proper description; - remove ALSA and FB entity types. Those should not be used, as the types are deprecated. W

[PATCH v7 43/44] [media] media_device: add a topology version field

2015-08-23 Thread Mauro Carvalho Chehab
Every time a graph object is added or removed, the version of the topology changes. That's a requirement for the new MEDIA_IOC_G_TOPOLOGY, in order to allow userspace to know that the topology has changed after a previous call to it. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/medi

[PATCH v7 10/44] [media] media: rename the function that create pad links

2015-08-23 Thread Mauro Carvalho Chehab
Now that a link can be either between two different graph objects, we'll need to add more functions to create links. So, rename the existing one that create links only between two pads as media_create_pad_link(). No functional changes. This patch was created via this shell script: for i i

[PATCH v7 44/44] [media] media-device: add support for MEDIA_IOC_G_TOPOLOGY ioctl

2015-08-23 Thread Mauro Carvalho Chehab
Add support for the new MEDIA_IOC_G_TOPOLOGY ioctl, according with the RFC for the MC next generation. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 2de65a621b93..9697f6e93306 100644 --- a/drivers/media/media-device.c +++ b/dr

[PATCH v7 00/44] MC next generation patches

2015-08-23 Thread Mauro Carvalho Chehab
The latest version of this patch series is at: http://git.linuxtv.org/cgit.cgi/mchehab/experimental.git/log/?h=mc_next_gen The latest version of the userspace tool to test it is at: http://git.linuxtv.org/cgit.cgi/mchehab/experimental-v4l-utils.git/log/?h=mc-next-gen The initial

[PATCH v7 04/44] [media] media: add a common struct to be embed on media graph objects

2015-08-23 Thread Mauro Carvalho Chehab
Due to the MC API proposed changes, we'll need to have an unique object ID for all graph objects, and have some shared fields that will be common on all media graph objects. Right now, the only common object is the object ID, but other fields will be added later on. Signed-off-by: Mauro Carvalho

[PATCH v7 01/44] [media] media: create a macro to get entity ID

2015-08-23 Thread Mauro Carvalho Chehab
Instead of accessing directly entity.id, let's create a macro, as this field will be moved into a common struct later on. Signed-off-by: Mauro Carvalho Chehab Acked-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c in

[PATCH v7 29/44] [media] omap3/omap4/davinci: get rid of MEDIA_ENT_T_V4L2_SUBDEV abuse

2015-08-23 Thread Mauro Carvalho Chehab
On omap3/omap4/davinci drivers, MEDIA_ENT_T_V4L2_SUBDEV macro is abused in order to "simplify" the pad checks. Basically, it does a logical or of this macro, in order to check for a local index and if the entity is either a subdev or not. As we'll get rid of MEDIA_ENT_T_V4L2_SUBDEV macro, replace

[PATCH v7 28/44] [media] media: use macros to check for V4L2 subdev entities

2015-08-23 Thread Mauro Carvalho Chehab
Instead of relying on media subtype, use the new macros to detect if an entity is a subdev or an A/V DMA entity. Please note that most drivers assume that there's just AV_DMA or V4L2 subdevs. This is not true anymore, as we've added MC support for DVB, and there are plans to add support for ALSA a

[PATCH v7 42/44] [media] media-device: add pads and links to media_device

2015-08-23 Thread Mauro Carvalho Chehab
The MC next gen API sends objects to userspace grouped by their types. In the case of pads and links, in order to improve performance and have a simpler code, the best is to store them also on separate linked lists at MC. If we don't do that, we would need this kind of interaction to send data to

Re: DVBSky T980C CI issues (kernel 4.0.x)

2015-08-23 Thread Jurgen Kramer
On Sun, 2015-07-12 at 12:38 +0200, Jurgen Kramer wrote: > I have been running a couple of DVBSky T980C's with CIs with success > using an older kernel (3.17.8) with media-build and some added patches > from the mailing list. > > I thought lets try a current 4.0 kernel to see if I no longer need t

[RFC PATCH 2/2] vivid: add support for reduced fps in video capture

2015-08-23 Thread Prashant Laddha
With this patch, vivid capture thread can now generate reduced fps by factor of 1000 / 1001. This is controlled using a boolean VIVID_CID_REDUCED_FPS added in vivid control. For reduced fps, capture time is controlled by scaling down timeperframe_vid_cap with a factor of 1000 / 1001 if VIVID_CID_RE

[RFC PATCH 0/2] vivid: reduced fps support

2015-08-23 Thread Prashant Laddha
Hi, Following patches add reduced fps support in vivid video transmit and capture. Please review and share your comments. Regards, Prashant Prashant Laddha (2): vivid: add support for reduced fps in video out. vivid: add support for reduced fps in video capture drivers/media/platform/vivid

[RFC PATCH 1/2] vivid: add support for reduced fps in video out.

2015-08-23 Thread Prashant Laddha
If bt timing has REDUCED_FPS flag set, then reduce the frame rate by factor of 1000 / 1001. For vivid, timeperframe_vid_out indicates the frame timings used by video out thread. The timeperframe_vid_out is derived from pixel clock. Adjusting the timeperframe_vid_out by scaling down pixel clock with

Re: [RFC PATCH] vivid: add support for reduced fps in video out.

2015-08-23 Thread Prashant Laddha (prladdha)
Hello Hans, Please ignore this patch. I am resending this patch along with a patch adding the reduced fps support in vivid capture. Regards, Prashant On 15/08/15 10:45 pm, "Prashant Laddha (prladdha)" wrote: >If bt timing has REDUCED_FPS flag set, then reduce the frame rate >by factor of 1000

Re: [PATCH 00/39] Document the kABI for the media subsystem

2015-08-23 Thread Jonathan Corbet
On Sat, 22 Aug 2015 14:27:45 -0300 Mauro Carvalho Chehab wrote: > Jon, > > As most of the changes here are inside the media drivers, I > prefer to merge this series via my tree, if this is ok for > you. That's fine, feel free to stick my ack in if you want. Hopefully we'll not run into conflic