Re: [PATCH/RFC v4] V4L: add media bus configuration subdev operations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/01/2011 12:42 AM, Guennadi Liakhovetski wrote:
...
>>> +/**
>>> + * v4l2_mbus_type - media bus type
>>> + * @V4L2_MBUS_PARALLEL:	parallel interface with hsync and vsync
>>> + * @V4L2_MBUS_BT656:	parallel interface with embedded synchronisation, can
>>> + *			also be used for BT.1120
>>> + * @V4L2_MBUS_CSI2:	MIPI CSI-2 serial interface
>>> + */
>>> +enum v4l2_mbus_type {
>>> +	V4L2_MBUS_PARALLEL,
>>> +	V4L2_MBUS_BT656,
>>> +	V4L2_MBUS_CSI2,
>>
>> How about internal connections between processing blocks inside SoCs?
>> Don't we want to also list those here? I mean direct connections
>> like Preview Engine -> Resizer in TI SoCs or Display Mixer -> Video Capture
>> Engine in Samsung SoCs.
>> If there is no all possible bus types in this list I can't see how
>> driver's for such hardware could be converted to use this new interface. 
>>
>> Perhaps we could add something like
>> V4L2_MBUS_INTERNAL or V4L2_MBUS_USER1...?
> 
> Maybe. But again, this patch is not aiming at covering all possible cases. 
> We discuss it to avoid stupid or wrong things. Correct but incomplete 
> things can always be added. So, once someone get to implement such a 
> connection, using this API, they will just add one more type here. Why I'm 

Sure, we can add more types when needed. The only parameters I'm aware of
at the moment for such an internal bus is clock type and clock frequency.
It certainly needs more investigation and discussing.

Your patch looks OK to me, except is has only a declaration of
v4l2_mbus_config_compatible() and the implementation is lost somewhere.
I guess we'll need to replace the "flags" field with an union ewentually,
but it would be good to get the patch merged in this form so we can finally
move forward with the sensor drivers standardization.

> also unsure whether and how to add it now is, that these types define bus 
> properties. E.g., on CSI-2 you have up to 4 data lanes, a clock lane with 
> certain properties etc. What properties does the "internal" bus have? I 
> would leave it out until we really get to implement it.

Regards,
-- 
Sylwester Nawrocki
Samsung Poland R&D Center
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux