All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Status of Beagle Board
       [not found]                               ` <19F8576C6E063C45BE387C64729E739404323ED9F7@dbde02.ent.ti.com>
@ 2009-05-08  6:26                                 ` George.Qiao
  2009-05-08  6:31                                   ` Hiremath, Vaibhav
  0 siblings, 1 reply; 6+ messages in thread
From: George.Qiao @ 2009-05-08  6:26 UTC (permalink / raw)
  To: Hiremath, Vaibhav
  Cc: Syed Mohammed, Khasim, Shah, Hardik, wan_jinxue@visualon.com,
	Bill Lin, shawnofarrell@visualon.com, Chatterjee, Amit,
	Andrews, Gerard, Kridner, Jason, 'Bangfei Jin',
	'Xuejun Dong', 'YangCai', linux-omap

Hi Vaibhav Hiremath,

My application can work in OMAP3 EVM and other v4l2 platform, but there 
is another issue in beagle board. as follow:

1. NormalSize() -> RequestBuffer() -> mmap()
2. playing...
3. FullScreen() -> VIDIOC_STREAMOFF
                          -> munmap()
                          -> VIDIOC_REQBUFS
                          -> VIDIOC_QUERYBUF
                          -> RequestBuffer() -> mmap()
                          -> VIDIOC_S_CROP
                          -> VIDIOC_S_FMT
                          -> VIDIOC_QBUF
                          -> VIDIOC_STREAMON

When I want to call VIDIOC_REQBUFS in FullScreen(), it always fail.


Best Regards,
George.Qiao

============================
> Great, please see my comments in-lined below - 
>
>
> Thanks,
> Vaibhav Hiremath
> Platform Support Products
> Texas Instruments Inc
> Ph: +91-80-25099927
>
>   
>> -----Original Message-----
>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>> Sent: Thursday, May 07, 2009 3:51 PM
>> To: Hiremath, Vaibhav
>> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
>> linux-omap-open-source@linux.omap.com
>> Subject: Re: Status of Beagle Board
>>
>> Dear Vaibhav Hiremath,
>>
>> I can play video by v4l2 now!  Thank you!
>>
>> I have add code in board-omap3beagle.c :
>>
>> #ifdef CONFIG_FB_OMAP2
>> static struct resource omap3beagle_vout_resource[3 -
>> CONFIG_FB_OMAP2_NUM_FBS] = {
>> };
>> #else
>> static struct resource omap3beagle_vout_resource[2] = {
>> };
>> #endif
>>
>> static struct platform_device omap3beagle_vout_device = {
>>        .name                   = "omap_vout",
>>        .num_resources  = ARRAY_SIZE(omap3beagle_vout_resource),
>>        .resource               = &omap3beagle_vout_resource[0],
>>        .id             = -1,
>> };
>>
>> static struct platform_device *omap3_beagle_devices[] __initdata = {
>>     &beagle_dss_device,
>>     &leds_gpio,
>>     &keys_gpio,
>>     &omap3beagle_vout_device,
>> };
>>
>>
>> I have got some omapdss error and voutBuffer Size. as follow:
>>
>> omapdss: Could not find exact pixel clock. Requested 23500 kHz, got
>> 24000 kHz
>> omapdss error: display already enabled
>> omap_voutDisplay already enabled
>> omapdss error: display already enabled
>> omap_voutDisplay already enabled
>>     
>
>
> [Hiremath, Vaibhav] This is not an error as such, it warning message. Actually here we are trying to enable the display which has already been enabled by Fbdev. 
> We can suppress this message, atleast during init.
>
>   
>> omap_voutBuffer Size = 3686400
>> omap_vout: registered and initialized video device 0 [v4l2]
>> omap_voutBuffer Size = 3686400
>> omap_vout: registered and initialized video device 1 [v4l2]
>>
>>     
>
> [Hiremath, Vaibhav] This is just a debug massage; it is neither a error nor a warning. So don't worry.
>
> Can you share the code-base or submit the patches to the list, so that interested people can use it.
>
>   
>> Could I change 'voutBuffer Size'?  How to fix it?
>>
>> Best Regards,
>> George.Qiao
>>
>> =======================
>>     
>>> Yes Definitely this is the issue. If the platform_device.name
>>>       
>> doesn't match with the platform_driver.driver.name then your probe
>> function will not be called at all.
>>     
>>> Can you just copy the board-omap3evm.c changes related to
>>>       
>> V4L2/DSS2 and give a shot? I think it should work straight away.
>>     
>>> Please let me know if you need any further clarification or help.
>>>
>>> Thanks,
>>> Vaibhav Hiremath
>>> Platform Support Products
>>> Texas Instruments Inc
>>> Ph: +91-80-25099927
>>>
>>>
>>>       
>>>> -----Original Message-----
>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>>>> Sent: Thursday, May 07, 2009 12:55 PM
>>>> To: Hiremath, Vaibhav
>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
>>>> linux-omap-open-source@linux.omap.com
>>>> Subject: Re: Status of Beagle Board
>>>>
>>>> Hi Hiremath, Vaibhav,
>>>>
>>>> Thank you very much for your instant response!
>>>>
>>>> I've checked the file 'board-omap3beagle.c' and found nothing
>>>> looking
>>>> like omap_vout in it, no platform_device, either. And I've also
>>>> compared
>>>> it with board-omap3evm.c.
>>>>
>>>> Below is some difference between them:
>>>>
>>>> board-omap3evm.c has:
>>>> *+static struct platform_device omap3evm_vout_device = {
>>>> **+       .name                   = "omap_vout",
>>>> ...
>>>> }
>>>> *
>>>> But 'board-omap3beagle.c' does not have anything looking like:
>>>>
>>>> *+static struct platform_device omap3beagle_vout_device = {*
>>>> *+       .name                   = "omap_vout",
>>>> ...
>>>> }
>>>> *
>>>> So, I think there's no patch on V4L2 for beagle done and this is
>>>>         
>> the
>>     
>>>> root cause of this issue. Do you agree with me? Thanks a lot.
>>>>
>>>>
>>>> Best Regards,
>>>> George.Qiao
>>>> ===================================
>>>>
>>>>
>>>>         
>>>>> Hi George,
>>>>>
>>>>> I have looked into your config file and it looks ok to me.
>>>>>
>>>>> Can you conform that, you have added "platform_device"
>>>>>           
>> definitions
>>     
>>>> in board-omap3beagle.c?
>>>>
>>>>         
>>>>> Can you please create complete patch on top of your baseline (O-
>>>>>           
>> L
>>     
>>>> and Tomi's tree), so that I can review that directly? I will be
>>>> seeing complete changes done for beagle.
>>>>
>>>>         
>>>>> Thanks,
>>>>> Vaibhav Hiremath
>>>>> Platform Support Products
>>>>> Texas Instruments Inc
>>>>> Ph: +91-80-25099927
>>>>>
>>>>>
>>>>>
>>>>>           
>>>
>>>       
>
>
>   


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Status of Beagle Board
  2009-05-08  6:26                                 ` Status of Beagle Board George.Qiao
@ 2009-05-08  6:31                                   ` Hiremath, Vaibhav
  2009-05-11  6:55                                     ` George.Qiao
  0 siblings, 1 reply; 6+ messages in thread
From: Hiremath, Vaibhav @ 2009-05-08  6:31 UTC (permalink / raw)
  To: George.Qiao
  Cc: Syed Mohammed, Khasim, Shah, Hardik, wan_jinxue@visualon.com,
	Bill Lin, shawnofarrell@visualon.com, Chatterjee, Amit,
	Andrews, Gerard, Kridner, Jason, 'Bangfei Jin',
	'Xuejun Dong', 'YangCai',
	linux-omap@vger.kernel.org

> -----Original Message-----
> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> Sent: Friday, May 08, 2009 11:57 AM
> To: Hiremath, Vaibhav
> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
> linux-omap@vger.kernel.org
> Subject: Re: Status of Beagle Board
> 
> Hi Vaibhav Hiremath,
> 
> My application can work in OMAP3 EVM and other v4l2 platform, but
> there
> is another issue in beagle board. as follow:
> 
[Hiremath, Vaibhav] Are you saying, same application works on OMAP3EVM but fails on beagle board?

> 1. NormalSize() -> RequestBuffer() -> mmap()
> 2. playing...
> 3. FullScreen() -> VIDIOC_STREAMOFF
>                           -> munmap()
>                           -> VIDIOC_REQBUFS
>                           -> VIDIOC_QUERYBUF
>                           -> RequestBuffer() -> mmap()
>                           -> VIDIOC_S_CROP
>                           -> VIDIOC_S_FMT
>                           -> VIDIOC_QBUF
>                           -> VIDIOC_STREAMON
> 
> When I want to call VIDIOC_REQBUFS in FullScreen(), it always fail.
> 
[Hiremath, Vaibhav] Is it possible for you to share your application, so that I can give try here at my end?

Thanks,
Vaibhav Hiremath

> 
> Best Regards,
> George.Qiao
> 
> ============================
> > Great, please see my comments in-lined below -
> >
> >
> > Thanks,
> > Vaibhav Hiremath
> > Platform Support Products
> > Texas Instruments Inc
> > Ph: +91-80-25099927
> >
> >
> >> -----Original Message-----
> >> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >> Sent: Thursday, May 07, 2009 3:51 PM
> >> To: Hiremath, Vaibhav
> >> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
> >> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
> >> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
> >> linux-omap-open-source@linux.omap.com
> >> Subject: Re: Status of Beagle Board
> >>
> >> Dear Vaibhav Hiremath,
> >>
> >> I can play video by v4l2 now!  Thank you!
> >>
> >> I have add code in board-omap3beagle.c :
> >>
> >> #ifdef CONFIG_FB_OMAP2
> >> static struct resource omap3beagle_vout_resource[3 -
> >> CONFIG_FB_OMAP2_NUM_FBS] = {
> >> };
> >> #else
> >> static struct resource omap3beagle_vout_resource[2] = {
> >> };
> >> #endif
> >>
> >> static struct platform_device omap3beagle_vout_device = {
> >>        .name                   = "omap_vout",
> >>        .num_resources  = ARRAY_SIZE(omap3beagle_vout_resource),
> >>        .resource               = &omap3beagle_vout_resource[0],
> >>        .id             = -1,
> >> };
> >>
> >> static struct platform_device *omap3_beagle_devices[] __initdata
> = {
> >>     &beagle_dss_device,
> >>     &leds_gpio,
> >>     &keys_gpio,
> >>     &omap3beagle_vout_device,
> >> };
> >>
> >>
> >> I have got some omapdss error and voutBuffer Size. as follow:
> >>
> >> omapdss: Could not find exact pixel clock. Requested 23500 kHz,
> got
> >> 24000 kHz
> >> omapdss error: display already enabled
> >> omap_voutDisplay already enabled
> >> omapdss error: display already enabled
> >> omap_voutDisplay already enabled
> >>
> >
> >
> > [Hiremath, Vaibhav] This is not an error as such, it warning
> message. Actually here we are trying to enable the display which has
> already been enabled by Fbdev.
> > We can suppress this message, atleast during init.
> >
> >
> >> omap_voutBuffer Size = 3686400
> >> omap_vout: registered and initialized video device 0 [v4l2]
> >> omap_voutBuffer Size = 3686400
> >> omap_vout: registered and initialized video device 1 [v4l2]
> >>
> >>
> >
> > [Hiremath, Vaibhav] This is just a debug massage; it is neither a
> error nor a warning. So don't worry.
> >
> > Can you share the code-base or submit the patches to the list, so
> that interested people can use it.
> >
> >
> >> Could I change 'voutBuffer Size'?  How to fix it?
> >>
> >> Best Regards,
> >> George.Qiao
> >>
> >> =======================
> >>
> >>> Yes Definitely this is the issue. If the platform_device.name
> >>>
> >> doesn't match with the platform_driver.driver.name then your
> probe
> >> function will not be called at all.
> >>
> >>> Can you just copy the board-omap3evm.c changes related to
> >>>
> >> V4L2/DSS2 and give a shot? I think it should work straight away.
> >>
> >>> Please let me know if you need any further clarification or
> help.
> >>>
> >>> Thanks,
> >>> Vaibhav Hiremath
> >>> Platform Support Products
> >>> Texas Instruments Inc
> >>> Ph: +91-80-25099927
> >>>
> >>>
> >>>
> >>>> -----Original Message-----
> >>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >>>> Sent: Thursday, May 07, 2009 12:55 PM
> >>>> To: Hiremath, Vaibhav
> >>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
> wan_jinxue@visualon.com;
> >>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
> Andrews,
> >>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
> 'YangCai';
> >>>> linux-omap-open-source@linux.omap.com
> >>>> Subject: Re: Status of Beagle Board
> >>>>
> >>>> Hi Hiremath, Vaibhav,
> >>>>
> >>>> Thank you very much for your instant response!
> >>>>
> >>>> I've checked the file 'board-omap3beagle.c' and found nothing
> >>>> looking
> >>>> like omap_vout in it, no platform_device, either. And I've also
> >>>> compared
> >>>> it with board-omap3evm.c.
> >>>>
> >>>> Below is some difference between them:
> >>>>
> >>>> board-omap3evm.c has:
> >>>> *+static struct platform_device omap3evm_vout_device = {
> >>>> **+       .name                   = "omap_vout",
> >>>> ...
> >>>> }
> >>>> *
> >>>> But 'board-omap3beagle.c' does not have anything looking like:
> >>>>
> >>>> *+static struct platform_device omap3beagle_vout_device = {*
> >>>> *+       .name                   = "omap_vout",
> >>>> ...
> >>>> }
> >>>> *
> >>>> So, I think there's no patch on V4L2 for beagle done and this
> is
> >>>>
> >> the
> >>
> >>>> root cause of this issue. Do you agree with me? Thanks a lot.
> >>>>
> >>>>
> >>>> Best Regards,
> >>>> George.Qiao
> >>>> ===================================
> >>>>
> >>>>
> >>>>
> >>>>> Hi George,
> >>>>>
> >>>>> I have looked into your config file and it looks ok to me.
> >>>>>
> >>>>> Can you conform that, you have added "platform_device"
> >>>>>
> >> definitions
> >>
> >>>> in board-omap3beagle.c?
> >>>>
> >>>>
> >>>>> Can you please create complete patch on top of your baseline
> (O-
> >>>>>
> >> L
> >>
> >>>> and Tomi's tree), so that I can review that directly? I will be
> >>>> seeing complete changes done for beagle.
> >>>>
> >>>>
> >>>>> Thanks,
> >>>>> Vaibhav Hiremath
> >>>>> Platform Support Products
> >>>>> Texas Instruments Inc
> >>>>> Ph: +91-80-25099927
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>
> >>>
> >
> >
> >
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of Beagle Board
  2009-05-08  6:31                                   ` Hiremath, Vaibhav
@ 2009-05-11  6:55                                     ` George.Qiao
  2009-05-11 13:56                                       ` Hiremath, Vaibhav
  0 siblings, 1 reply; 6+ messages in thread
From: George.Qiao @ 2009-05-11  6:55 UTC (permalink / raw)
  To: Hiremath, Vaibhav
  Cc: Syed Mohammed, Khasim, Shah, Hardik, wan_jinxue@visualon.com,
	Bill Lin, shawnofarrell@visualon.com, Chatterjee, Amit,
	Andrews, Gerard, Kridner, Jason, 'Bangfei Jin',
	'Xuejun Dong', 'YangCai',
	linux-omap@vger.kernel.org

Hi Hiremath Vaibhav,

I have fixed this bugs in omap_vout.c :

vidioc_streamoff()
{
...
- return ovl->set_overlay_info(ovl, &info);
+ ovl->set_overlay_info(ovl, &info);
...
}

because it should not return ovl->set_overlay_info() here, in this way, 
the below code will not be executed:
videobuf_streamoff() -> videobuf_queue_cancel()
{
...
q->streaming = 0
...
}

so, vidioc_reqbufs->videobuf_reqbufs() will always fail.

Do you agree with me?

Thanks & Best Regards,
George.Qiao

===================================
>> -----Original Message-----
>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>> Sent: Friday, May 08, 2009 11:57 AM
>> To: Hiremath, Vaibhav
>> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
>> linux-omap@vger.kernel.org
>> Subject: Re: Status of Beagle Board
>>
>> Hi Vaibhav Hiremath,
>>
>> My application can work in OMAP3 EVM and other v4l2 platform, but
>> there
>> is another issue in beagle board. as follow:
>>
>>     
> [Hiremath, Vaibhav] Are you saying, same application works on OMAP3EVM but fails on beagle board?
>
>   
>> 1. NormalSize() -> RequestBuffer() -> mmap()
>> 2. playing...
>> 3. FullScreen() -> VIDIOC_STREAMOFF
>>                           -> munmap()
>>                           -> VIDIOC_REQBUFS
>>                           -> VIDIOC_QUERYBUF
>>                           -> RequestBuffer() -> mmap()
>>                           -> VIDIOC_S_CROP
>>                           -> VIDIOC_S_FMT
>>                           -> VIDIOC_QBUF
>>                           -> VIDIOC_STREAMON
>>
>> When I want to call VIDIOC_REQBUFS in FullScreen(), it always fail.
>>
>>     
> [Hiremath, Vaibhav] Is it possible for you to share your application, so that I can give try here at my end?
>
> Thanks,
> Vaibhav Hiremath
>
>   
>> Best Regards,
>> George.Qiao
>>
>> ============================
>>     
>>> Great, please see my comments in-lined below -
>>>
>>>
>>> Thanks,
>>> Vaibhav Hiremath
>>> Platform Support Products
>>> Texas Instruments Inc
>>> Ph: +91-80-25099927
>>>
>>>
>>>       
>>>> -----Original Message-----
>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>>>> Sent: Thursday, May 07, 2009 3:51 PM
>>>> To: Hiremath, Vaibhav
>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
>>>> linux-omap-open-source@linux.omap.com
>>>> Subject: Re: Status of Beagle Board
>>>>
>>>> Dear Vaibhav Hiremath,
>>>>
>>>> I can play video by v4l2 now!  Thank you!
>>>>
>>>> I have add code in board-omap3beagle.c :
>>>>
>>>> #ifdef CONFIG_FB_OMAP2
>>>> static struct resource omap3beagle_vout_resource[3 -
>>>> CONFIG_FB_OMAP2_NUM_FBS] = {
>>>> };
>>>> #else
>>>> static struct resource omap3beagle_vout_resource[2] = {
>>>> };
>>>> #endif
>>>>
>>>> static struct platform_device omap3beagle_vout_device = {
>>>>        .name                   = "omap_vout",
>>>>        .num_resources  = ARRAY_SIZE(omap3beagle_vout_resource),
>>>>        .resource               = &omap3beagle_vout_resource[0],
>>>>        .id             = -1,
>>>> };
>>>>
>>>> static struct platform_device *omap3_beagle_devices[] __initdata
>>>>         
>> = {
>>     
>>>>     &beagle_dss_device,
>>>>     &leds_gpio,
>>>>     &keys_gpio,
>>>>     &omap3beagle_vout_device,
>>>> };
>>>>
>>>>
>>>> I have got some omapdss error and voutBuffer Size. as follow:
>>>>
>>>> omapdss: Could not find exact pixel clock. Requested 23500 kHz,
>>>>         
>> got
>>     
>>>> 24000 kHz
>>>> omapdss error: display already enabled
>>>> omap_voutDisplay already enabled
>>>> omapdss error: display already enabled
>>>> omap_voutDisplay already enabled
>>>>
>>>>         
>>> [Hiremath, Vaibhav] This is not an error as such, it warning
>>>       
>> message. Actually here we are trying to enable the display which has
>> already been enabled by Fbdev.
>>     
>>> We can suppress this message, atleast during init.
>>>
>>>
>>>       
>>>> omap_voutBuffer Size = 3686400
>>>> omap_vout: registered and initialized video device 0 [v4l2]
>>>> omap_voutBuffer Size = 3686400
>>>> omap_vout: registered and initialized video device 1 [v4l2]
>>>>
>>>>
>>>>         
>>> [Hiremath, Vaibhav] This is just a debug massage; it is neither a
>>>       
>> error nor a warning. So don't worry.
>>     
>>> Can you share the code-base or submit the patches to the list, so
>>>       
>> that interested people can use it.
>>     
>>>       
>>>> Could I change 'voutBuffer Size'?  How to fix it?
>>>>
>>>> Best Regards,
>>>> George.Qiao
>>>>
>>>> =======================
>>>>
>>>>         
>>>>> Yes Definitely this is the issue. If the platform_device.name
>>>>>
>>>>>           
>>>> doesn't match with the platform_driver.driver.name then your
>>>>         
>> probe
>>     
>>>> function will not be called at all.
>>>>
>>>>         
>>>>> Can you just copy the board-omap3evm.c changes related to
>>>>>
>>>>>           
>>>> V4L2/DSS2 and give a shot? I think it should work straight away.
>>>>
>>>>         
>>>>> Please let me know if you need any further clarification or
>>>>>           
>> help.
>>     
>>>>> Thanks,
>>>>> Vaibhav Hiremath
>>>>> Platform Support Products
>>>>> Texas Instruments Inc
>>>>> Ph: +91-80-25099927
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> -----Original Message-----
>>>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>>>>>> Sent: Thursday, May 07, 2009 12:55 PM
>>>>>> To: Hiremath, Vaibhav
>>>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
>>>>>>             
>> wan_jinxue@visualon.com;
>>     
>>>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
>>>>>>             
>> Andrews,
>>     
>>>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
>>>>>>             
>> 'YangCai';
>>     
>>>>>> linux-omap-open-source@linux.omap.com
>>>>>> Subject: Re: Status of Beagle Board
>>>>>>
>>>>>> Hi Hiremath, Vaibhav,
>>>>>>
>>>>>> Thank you very much for your instant response!
>>>>>>
>>>>>> I've checked the file 'board-omap3beagle.c' and found nothing
>>>>>> looking
>>>>>> like omap_vout in it, no platform_device, either. And I've also
>>>>>> compared
>>>>>> it with board-omap3evm.c.
>>>>>>
>>>>>> Below is some difference between them:
>>>>>>
>>>>>> board-omap3evm.c has:
>>>>>> *+static struct platform_device omap3evm_vout_device = {
>>>>>> **+       .name                   = "omap_vout",
>>>>>> ...
>>>>>> }
>>>>>> *
>>>>>> But 'board-omap3beagle.c' does not have anything looking like:
>>>>>>
>>>>>> *+static struct platform_device omap3beagle_vout_device = {*
>>>>>> *+       .name                   = "omap_vout",
>>>>>> ...
>>>>>> }
>>>>>> *
>>>>>> So, I think there's no patch on V4L2 for beagle done and this
>>>>>>             
>> is
>>     
>>>> the
>>>>
>>>>         
>>>>>> root cause of this issue. Do you agree with me? Thanks a lot.
>>>>>>
>>>>>>
>>>>>> Best Regards,
>>>>>> George.Qiao
>>>>>> ===================================
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Hi George,
>>>>>>>
>>>>>>> I have looked into your config file and it looks ok to me.
>>>>>>>
>>>>>>> Can you conform that, you have added "platform_device"
>>>>>>>
>>>>>>>               
>>>> definitions
>>>>
>>>>         
>>>>>> in board-omap3beagle.c?
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Can you please create complete patch on top of your baseline
>>>>>>>               
>> (O-
>>     
>>>> L
>>>>
>>>>         
>>>>>> and Tomi's tree), so that I can review that directly? I will be
>>>>>> seeing complete changes done for beagle.
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Thanks,
>>>>>>> Vaibhav Hiremath
>>>>>>> Platform Support Products
>>>>>>> Texas Instruments Inc
>>>>>>> Ph: +91-80-25099927
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>           
>>>
>>>       
>
>
>   

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Status of Beagle Board
  2009-05-11  6:55                                     ` George.Qiao
@ 2009-05-11 13:56                                       ` Hiremath, Vaibhav
  2009-05-12  8:05                                         ` George.Qiao
  0 siblings, 1 reply; 6+ messages in thread
From: Hiremath, Vaibhav @ 2009-05-11 13:56 UTC (permalink / raw)
  To: George.Qiao
  Cc: Syed Mohammed, Khasim, Shah, Hardik, wan_jinxue@visualon.com,
	Bill Lin, shawnofarrell@visualon.com, Chatterjee, Amit,
	Andrews, Gerard, Kridner, Jason, 'Bangfei Jin',
	'Xuejun Dong', 'YangCai',
	linux-omap@vger.kernel.org

Hi George,

Yes I do agree, at-least for me this looks like a small bug in V4L2 driver. But just to make double sure I will discuss this with Hardik and let you know.

Thanks,
Vaibhav Hiremath
Platform Support Products
Texas Instruments Inc
Ph: +91-80-25099927
> -----Original Message-----
> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> Sent: Monday, May 11, 2009 12:26 PM
> To: Hiremath, Vaibhav
> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
> linux-omap@vger.kernel.org
> Subject: Re: Status of Beagle Board
> 
> Hi Hiremath Vaibhav,
> 
> I have fixed this bugs in omap_vout.c :
> 
> vidioc_streamoff()
> {
> ...
> - return ovl->set_overlay_info(ovl, &info);
> + ovl->set_overlay_info(ovl, &info);
> ...
> }
> 
> because it should not return ovl->set_overlay_info() here, in this
> way,
> the below code will not be executed:
> videobuf_streamoff() -> videobuf_queue_cancel()
> {
> ...
> q->streaming = 0
> ...
> }
> 
> so, vidioc_reqbufs->videobuf_reqbufs() will always fail.
> 
> Do you agree with me?
> 
> Thanks & Best Regards,
> George.Qiao
> 
> ===================================
> >> -----Original Message-----
> >> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >> Sent: Friday, May 08, 2009 11:57 AM
> >> To: Hiremath, Vaibhav
> >> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
> >> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
> >> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
> >> linux-omap@vger.kernel.org
> >> Subject: Re: Status of Beagle Board
> >>
> >> Hi Vaibhav Hiremath,
> >>
> >> My application can work in OMAP3 EVM and other v4l2 platform, but
> >> there
> >> is another issue in beagle board. as follow:
> >>
> >>
> > [Hiremath, Vaibhav] Are you saying, same application works on
> OMAP3EVM but fails on beagle board?
> >
> >
> >> 1. NormalSize() -> RequestBuffer() -> mmap()
> >> 2. playing...
> >> 3. FullScreen() -> VIDIOC_STREAMOFF
> >>                           -> munmap()
> >>                           -> VIDIOC_REQBUFS
> >>                           -> VIDIOC_QUERYBUF
> >>                           -> RequestBuffer() -> mmap()
> >>                           -> VIDIOC_S_CROP
> >>                           -> VIDIOC_S_FMT
> >>                           -> VIDIOC_QBUF
> >>                           -> VIDIOC_STREAMON
> >>
> >> When I want to call VIDIOC_REQBUFS in FullScreen(), it always
> fail.
> >>
> >>
> > [Hiremath, Vaibhav] Is it possible for you to share your
> application, so that I can give try here at my end?
> >
> > Thanks,
> > Vaibhav Hiremath
> >
> >
> >> Best Regards,
> >> George.Qiao
> >>
> >> ============================
> >>
> >>> Great, please see my comments in-lined below -
> >>>
> >>>
> >>> Thanks,
> >>> Vaibhav Hiremath
> >>> Platform Support Products
> >>> Texas Instruments Inc
> >>> Ph: +91-80-25099927
> >>>
> >>>
> >>>
> >>>> -----Original Message-----
> >>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >>>> Sent: Thursday, May 07, 2009 3:51 PM
> >>>> To: Hiremath, Vaibhav
> >>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
> wan_jinxue@visualon.com;
> >>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
> Andrews,
> >>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
> 'YangCai';
> >>>> linux-omap-open-source@linux.omap.com
> >>>> Subject: Re: Status of Beagle Board
> >>>>
> >>>> Dear Vaibhav Hiremath,
> >>>>
> >>>> I can play video by v4l2 now!  Thank you!
> >>>>
> >>>> I have add code in board-omap3beagle.c :
> >>>>
> >>>> #ifdef CONFIG_FB_OMAP2
> >>>> static struct resource omap3beagle_vout_resource[3 -
> >>>> CONFIG_FB_OMAP2_NUM_FBS] = {
> >>>> };
> >>>> #else
> >>>> static struct resource omap3beagle_vout_resource[2] = {
> >>>> };
> >>>> #endif
> >>>>
> >>>> static struct platform_device omap3beagle_vout_device = {
> >>>>        .name                   = "omap_vout",
> >>>>        .num_resources  = ARRAY_SIZE(omap3beagle_vout_resource),
> >>>>        .resource               = &omap3beagle_vout_resource[0],
> >>>>        .id             = -1,
> >>>> };
> >>>>
> >>>> static struct platform_device *omap3_beagle_devices[]
> __initdata
> >>>>
> >> = {
> >>
> >>>>     &beagle_dss_device,
> >>>>     &leds_gpio,
> >>>>     &keys_gpio,
> >>>>     &omap3beagle_vout_device,
> >>>> };
> >>>>
> >>>>
> >>>> I have got some omapdss error and voutBuffer Size. as follow:
> >>>>
> >>>> omapdss: Could not find exact pixel clock. Requested 23500 kHz,
> >>>>
> >> got
> >>
> >>>> 24000 kHz
> >>>> omapdss error: display already enabled
> >>>> omap_voutDisplay already enabled
> >>>> omapdss error: display already enabled
> >>>> omap_voutDisplay already enabled
> >>>>
> >>>>
> >>> [Hiremath, Vaibhav] This is not an error as such, it warning
> >>>
> >> message. Actually here we are trying to enable the display which
> has
> >> already been enabled by Fbdev.
> >>
> >>> We can suppress this message, atleast during init.
> >>>
> >>>
> >>>
> >>>> omap_voutBuffer Size = 3686400
> >>>> omap_vout: registered and initialized video device 0 [v4l2]
> >>>> omap_voutBuffer Size = 3686400
> >>>> omap_vout: registered and initialized video device 1 [v4l2]
> >>>>
> >>>>
> >>>>
> >>> [Hiremath, Vaibhav] This is just a debug massage; it is neither
> a
> >>>
> >> error nor a warning. So don't worry.
> >>
> >>> Can you share the code-base or submit the patches to the list,
> so
> >>>
> >> that interested people can use it.
> >>
> >>>
> >>>> Could I change 'voutBuffer Size'?  How to fix it?
> >>>>
> >>>> Best Regards,
> >>>> George.Qiao
> >>>>
> >>>> =======================
> >>>>
> >>>>
> >>>>> Yes Definitely this is the issue. If the platform_device.name
> >>>>>
> >>>>>
> >>>> doesn't match with the platform_driver.driver.name then your
> >>>>
> >> probe
> >>
> >>>> function will not be called at all.
> >>>>
> >>>>
> >>>>> Can you just copy the board-omap3evm.c changes related to
> >>>>>
> >>>>>
> >>>> V4L2/DSS2 and give a shot? I think it should work straight
> away.
> >>>>
> >>>>
> >>>>> Please let me know if you need any further clarification or
> >>>>>
> >> help.
> >>
> >>>>> Thanks,
> >>>>> Vaibhav Hiremath
> >>>>> Platform Support Products
> >>>>> Texas Instruments Inc
> >>>>> Ph: +91-80-25099927
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >>>>>> Sent: Thursday, May 07, 2009 12:55 PM
> >>>>>> To: Hiremath, Vaibhav
> >>>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
> >>>>>>
> >> wan_jinxue@visualon.com;
> >>
> >>>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
> >>>>>>
> >> Andrews,
> >>
> >>>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
> >>>>>>
> >> 'YangCai';
> >>
> >>>>>> linux-omap-open-source@linux.omap.com
> >>>>>> Subject: Re: Status of Beagle Board
> >>>>>>
> >>>>>> Hi Hiremath, Vaibhav,
> >>>>>>
> >>>>>> Thank you very much for your instant response!
> >>>>>>
> >>>>>> I've checked the file 'board-omap3beagle.c' and found nothing
> >>>>>> looking
> >>>>>> like omap_vout in it, no platform_device, either. And I've
> also
> >>>>>> compared
> >>>>>> it with board-omap3evm.c.
> >>>>>>
> >>>>>> Below is some difference between them:
> >>>>>>
> >>>>>> board-omap3evm.c has:
> >>>>>> *+static struct platform_device omap3evm_vout_device = {
> >>>>>> **+       .name                   = "omap_vout",
> >>>>>> ...
> >>>>>> }
> >>>>>> *
> >>>>>> But 'board-omap3beagle.c' does not have anything looking
> like:
> >>>>>>
> >>>>>> *+static struct platform_device omap3beagle_vout_device = {*
> >>>>>> *+       .name                   = "omap_vout",
> >>>>>> ...
> >>>>>> }
> >>>>>> *
> >>>>>> So, I think there's no patch on V4L2 for beagle done and this
> >>>>>>
> >> is
> >>
> >>>> the
> >>>>
> >>>>
> >>>>>> root cause of this issue. Do you agree with me? Thanks a lot.
> >>>>>>
> >>>>>>
> >>>>>> Best Regards,
> >>>>>> George.Qiao
> >>>>>> ===================================
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi George,
> >>>>>>>
> >>>>>>> I have looked into your config file and it looks ok to me.
> >>>>>>>
> >>>>>>> Can you conform that, you have added "platform_device"
> >>>>>>>
> >>>>>>>
> >>>> definitions
> >>>>
> >>>>
> >>>>>> in board-omap3beagle.c?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Can you please create complete patch on top of your baseline
> >>>>>>>
> >> (O-
> >>
> >>>> L
> >>>>
> >>>>
> >>>>>> and Tomi's tree), so that I can review that directly? I will
> be
> >>>>>> seeing complete changes done for beagle.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Thanks,
> >>>>>>> Vaibhav Hiremath
> >>>>>>> Platform Support Products
> >>>>>>> Texas Instruments Inc
> >>>>>>> Ph: +91-80-25099927
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>
> >>>
> >
> >
> >
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Status of Beagle Board
  2009-05-11 13:56                                       ` Hiremath, Vaibhav
@ 2009-05-12  8:05                                         ` George.Qiao
  2009-05-12  8:23                                           ` Hiremath, Vaibhav
  0 siblings, 1 reply; 6+ messages in thread
From: George.Qiao @ 2009-05-12  8:05 UTC (permalink / raw)
  To: Hiremath, Vaibhav
  Cc: Syed Mohammed, Khasim, Shah, Hardik, wan_jinxue@visualon.com,
	Bill Lin, shawnofarrell@visualon.com, Chatterjee, Amit,
	Andrews, Gerard, Kridner, Jason, 'Bangfei Jin',
	'Xuejun Dong', 'YangCai',
	linux-omap@vger.kernel.org

Hi Hiremath Vaibhav,

Thank you very much for v4l2 on beagle!

We want to use your branch to demo our video player,  I can not enable 
sound and usb-mouse in beagle board.

What's the difference between beagle kernel and your branch kernel for 
sound and usb driver?

Thanks & Best Regards,
George.Qiao
==========================================
> Hi George,
>
> Yes I do agree, at-least for me this looks like a small bug in V4L2 driver. But just to make double sure I will discuss this with Hardik and let you know.
>
> Thanks,
> Vaibhav Hiremath
> Platform Support Products
> Texas Instruments Inc
> Ph: +91-80-25099927
>   
>> -----Original Message-----
>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>> Sent: Monday, May 11, 2009 12:26 PM
>> To: Hiremath, Vaibhav
>> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
>> linux-omap@vger.kernel.org
>> Subject: Re: Status of Beagle Board
>>
>> Hi Hiremath Vaibhav,
>>
>> I have fixed this bugs in omap_vout.c :
>>
>> vidioc_streamoff()
>> {
>> ...
>> - return ovl->set_overlay_info(ovl, &info);
>> + ovl->set_overlay_info(ovl, &info);
>> ...
>> }
>>
>> because it should not return ovl->set_overlay_info() here, in this
>> way,
>> the below code will not be executed:
>> videobuf_streamoff() -> videobuf_queue_cancel()
>> {
>> ...
>> q->streaming = 0
>> ...
>> }
>>
>> so, vidioc_reqbufs->videobuf_reqbufs() will always fail.
>>
>> Do you agree with me?
>>
>> Thanks & Best Regards,
>> George.Qiao
>>
>> ===================================
>>     
>>>> -----Original Message-----
>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>>>> Sent: Friday, May 08, 2009 11:57 AM
>>>> To: Hiremath, Vaibhav
>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
>>>> linux-omap@vger.kernel.org
>>>> Subject: Re: Status of Beagle Board
>>>>
>>>> Hi Vaibhav Hiremath,
>>>>
>>>> My application can work in OMAP3 EVM and other v4l2 platform, but
>>>> there
>>>> is another issue in beagle board. as follow:
>>>>
>>>>
>>>>         
>>> [Hiremath, Vaibhav] Are you saying, same application works on
>>>       
>> OMAP3EVM but fails on beagle board?
>>     
>>>       
>>>> 1. NormalSize() -> RequestBuffer() -> mmap()
>>>> 2. playing...
>>>> 3. FullScreen() -> VIDIOC_STREAMOFF
>>>>                           -> munmap()
>>>>                           -> VIDIOC_REQBUFS
>>>>                           -> VIDIOC_QUERYBUF
>>>>                           -> RequestBuffer() -> mmap()
>>>>                           -> VIDIOC_S_CROP
>>>>                           -> VIDIOC_S_FMT
>>>>                           -> VIDIOC_QBUF
>>>>                           -> VIDIOC_STREAMON
>>>>
>>>> When I want to call VIDIOC_REQBUFS in FullScreen(), it always
>>>>         
>> fail.
>>     
>>>>         
>>> [Hiremath, Vaibhav] Is it possible for you to share your
>>>       
>> application, so that I can give try here at my end?
>>     
>>> Thanks,
>>> Vaibhav Hiremath
>>>
>>>
>>>       
>>>> Best Regards,
>>>> George.Qiao
>>>>
>>>> ============================
>>>>
>>>>         
>>>>> Great, please see my comments in-lined below -
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Vaibhav Hiremath
>>>>> Platform Support Products
>>>>> Texas Instruments Inc
>>>>> Ph: +91-80-25099927
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> -----Original Message-----
>>>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>>>>>> Sent: Thursday, May 07, 2009 3:51 PM
>>>>>> To: Hiremath, Vaibhav
>>>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
>>>>>>             
>> wan_jinxue@visualon.com;
>>     
>>>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
>>>>>>             
>> Andrews,
>>     
>>>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
>>>>>>             
>> 'YangCai';
>>     
>>>>>> linux-omap-open-source@linux.omap.com
>>>>>> Subject: Re: Status of Beagle Board
>>>>>>
>>>>>> Dear Vaibhav Hiremath,
>>>>>>
>>>>>> I can play video by v4l2 now!  Thank you!
>>>>>>
>>>>>> I have add code in board-omap3beagle.c :
>>>>>>
>>>>>> #ifdef CONFIG_FB_OMAP2
>>>>>> static struct resource omap3beagle_vout_resource[3 -
>>>>>> CONFIG_FB_OMAP2_NUM_FBS] = {
>>>>>> };
>>>>>> #else
>>>>>> static struct resource omap3beagle_vout_resource[2] = {
>>>>>> };
>>>>>> #endif
>>>>>>
>>>>>> static struct platform_device omap3beagle_vout_device = {
>>>>>>        .name                   = "omap_vout",
>>>>>>        .num_resources  = ARRAY_SIZE(omap3beagle_vout_resource),
>>>>>>        .resource               = &omap3beagle_vout_resource[0],
>>>>>>        .id             = -1,
>>>>>> };
>>>>>>
>>>>>> static struct platform_device *omap3_beagle_devices[]
>>>>>>             
>> __initdata
>>     
>>>> = {
>>>>
>>>>         
>>>>>>     &beagle_dss_device,
>>>>>>     &leds_gpio,
>>>>>>     &keys_gpio,
>>>>>>     &omap3beagle_vout_device,
>>>>>> };
>>>>>>
>>>>>>
>>>>>> I have got some omapdss error and voutBuffer Size. as follow:
>>>>>>
>>>>>> omapdss: Could not find exact pixel clock. Requested 23500 kHz,
>>>>>>
>>>>>>             
>>>> got
>>>>
>>>>         
>>>>>> 24000 kHz
>>>>>> omapdss error: display already enabled
>>>>>> omap_voutDisplay already enabled
>>>>>> omapdss error: display already enabled
>>>>>> omap_voutDisplay already enabled
>>>>>>
>>>>>>
>>>>>>             
>>>>> [Hiremath, Vaibhav] This is not an error as such, it warning
>>>>>
>>>>>           
>>>> message. Actually here we are trying to enable the display which
>>>>         
>> has
>>     
>>>> already been enabled by Fbdev.
>>>>
>>>>         
>>>>> We can suppress this message, atleast during init.
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> omap_voutBuffer Size = 3686400
>>>>>> omap_vout: registered and initialized video device 0 [v4l2]
>>>>>> omap_voutBuffer Size = 3686400
>>>>>> omap_vout: registered and initialized video device 1 [v4l2]
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>> [Hiremath, Vaibhav] This is just a debug massage; it is neither
>>>>>           
>> a
>>     
>>>> error nor a warning. So don't worry.
>>>>
>>>>         
>>>>> Can you share the code-base or submit the patches to the list,
>>>>>           
>> so
>>     
>>>> that interested people can use it.
>>>>
>>>>         
>>>>>> Could I change 'voutBuffer Size'?  How to fix it?
>>>>>>
>>>>>> Best Regards,
>>>>>> George.Qiao
>>>>>>
>>>>>> =======================
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Yes Definitely this is the issue. If the platform_device.name
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> doesn't match with the platform_driver.driver.name then your
>>>>>>
>>>>>>             
>>>> probe
>>>>
>>>>         
>>>>>> function will not be called at all.
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Can you just copy the board-omap3evm.c changes related to
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>> V4L2/DSS2 and give a shot? I think it should work straight
>>>>>>             
>> away.
>>     
>>>>>>             
>>>>>>> Please let me know if you need any further clarification or
>>>>>>>
>>>>>>>               
>>>> help.
>>>>
>>>>         
>>>>>>> Thanks,
>>>>>>> Vaibhav Hiremath
>>>>>>> Platform Support Products
>>>>>>> Texas Instruments Inc
>>>>>>> Ph: +91-80-25099927
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> -----Original Message-----
>>>>>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
>>>>>>>> Sent: Thursday, May 07, 2009 12:55 PM
>>>>>>>> To: Hiremath, Vaibhav
>>>>>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
>>>>>>>>
>>>>>>>>                 
>>>> wan_jinxue@visualon.com;
>>>>
>>>>         
>>>>>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
>>>>>>>>
>>>>>>>>                 
>>>> Andrews,
>>>>
>>>>         
>>>>>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
>>>>>>>>
>>>>>>>>                 
>>>> 'YangCai';
>>>>
>>>>         
>>>>>>>> linux-omap-open-source@linux.omap.com
>>>>>>>> Subject: Re: Status of Beagle Board
>>>>>>>>
>>>>>>>> Hi Hiremath, Vaibhav,
>>>>>>>>
>>>>>>>> Thank you very much for your instant response!
>>>>>>>>
>>>>>>>> I've checked the file 'board-omap3beagle.c' and found nothing
>>>>>>>> looking
>>>>>>>> like omap_vout in it, no platform_device, either. And I've
>>>>>>>>                 
>> also
>>     
>>>>>>>> compared
>>>>>>>> it with board-omap3evm.c.
>>>>>>>>
>>>>>>>> Below is some difference between them:
>>>>>>>>
>>>>>>>> board-omap3evm.c has:
>>>>>>>> *+static struct platform_device omap3evm_vout_device = {
>>>>>>>> **+       .name                   = "omap_vout",
>>>>>>>> ...
>>>>>>>> }
>>>>>>>> *
>>>>>>>> But 'board-omap3beagle.c' does not have anything looking
>>>>>>>>                 
>> like:
>>     
>>>>>>>> *+static struct platform_device omap3beagle_vout_device = {*
>>>>>>>> *+       .name                   = "omap_vout",
>>>>>>>> ...
>>>>>>>> }
>>>>>>>> *
>>>>>>>> So, I think there's no patch on V4L2 for beagle done and this
>>>>>>>>
>>>>>>>>                 
>>>> is
>>>>
>>>>         
>>>>>> the
>>>>>>
>>>>>>
>>>>>>             
>>>>>>>> root cause of this issue. Do you agree with me? Thanks a lot.
>>>>>>>>
>>>>>>>>
>>>>>>>> Best Regards,
>>>>>>>> George.Qiao
>>>>>>>> ===================================
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Hi George,
>>>>>>>>>
>>>>>>>>> I have looked into your config file and it looks ok to me.
>>>>>>>>>
>>>>>>>>> Can you conform that, you have added "platform_device"
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>> definitions
>>>>>>
>>>>>>
>>>>>>             
>>>>>>>> in board-omap3beagle.c?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Can you please create complete patch on top of your baseline
>>>>>>>>>
>>>>>>>>>                   
>>>> (O-
>>>>
>>>>         
>>>>>> L
>>>>>>
>>>>>>
>>>>>>             
>>>>>>>> and Tomi's tree), so that I can review that directly? I will
>>>>>>>>                 
>> be
>>     
>>>>>>>> seeing complete changes done for beagle.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Thanks,
>>>>>>>>> Vaibhav Hiremath
>>>>>>>>> Platform Support Products
>>>>>>>>> Texas Instruments Inc
>>>>>>>>> Ph: +91-80-25099927
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>           
>>>
>>>       
>
>   

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Status of Beagle Board
  2009-05-12  8:05                                         ` George.Qiao
@ 2009-05-12  8:23                                           ` Hiremath, Vaibhav
  0 siblings, 0 replies; 6+ messages in thread
From: Hiremath, Vaibhav @ 2009-05-12  8:23 UTC (permalink / raw)
  To: George.Qiao
  Cc: Syed Mohammed, Khasim, Shah, Hardik, wan_jinxue@visualon.com,
	Bill Lin, shawnofarrell@visualon.com, Chatterjee, Amit,
	Andrews, Gerard, Kridner, Jason, 'Bangfei Jin',
	'Xuejun Dong', 'YangCai',
	linux-omap@vger.kernel.org, Gadiyar, Anand



Thanks,
Vaibhav Hiremath
Platform Support Products
Texas Instruments Inc
Ph: +91-80-25099927

> -----Original Message-----
> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> Sent: Tuesday, May 12, 2009 1:35 PM
> To: Hiremath, Vaibhav
> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
> linux-omap@vger.kernel.org
> Subject: Re: Status of Beagle Board
> 
> Hi Hiremath Vaibhav,
> 
> Thank you very much for v4l2 on beagle!
> 
> We want to use your branch to demo our video player,  I can not
> enable
> sound and usb-mouse in beagle board.
> 
[Hiremath, Vaibhav] I believe you are referring to repository http://arago-project.org/git/people/?p=vaibhav/ti-psp-omap-video.git;a=summary.

This is specific to Video related changes and I am tracking and following Video changes only. I am really not sure about sound and USB related to Beagle board.

> What's the difference between beagle kernel and your branch kernel
> for
> sound and usb driver?
> 
[Hiremath, Vaibhav] Looping Anand Gadiyar, who would be able to answer this.

> Thanks & Best Regards,
> George.Qiao
> ==========================================
> > Hi George,
> >
> > Yes I do agree, at-least for me this looks like a small bug in
> V4L2 driver. But just to make double sure I will discuss this with
> Hardik and let you know.
> >
> > Thanks,
> > Vaibhav Hiremath
> > Platform Support Products
> > Texas Instruments Inc
> > Ph: +91-80-25099927
> >
> >> -----Original Message-----
> >> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >> Sent: Monday, May 11, 2009 12:26 PM
> >> To: Hiremath, Vaibhav
> >> Cc: Syed Mohammed, Khasim; Shah, Hardik; wan_jinxue@visualon.com;
> >> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit; Andrews,
> >> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong'; 'YangCai';
> >> linux-omap@vger.kernel.org
> >> Subject: Re: Status of Beagle Board
> >>
> >> Hi Hiremath Vaibhav,
> >>
> >> I have fixed this bugs in omap_vout.c :
> >>
> >> vidioc_streamoff()
> >> {
> >> ...
> >> - return ovl->set_overlay_info(ovl, &info);
> >> + ovl->set_overlay_info(ovl, &info);
> >> ...
> >> }
> >>
> >> because it should not return ovl->set_overlay_info() here, in
> this
> >> way,
> >> the below code will not be executed:
> >> videobuf_streamoff() -> videobuf_queue_cancel()
> >> {
> >> ...
> >> q->streaming = 0
> >> ...
> >> }
> >>
> >> so, vidioc_reqbufs->videobuf_reqbufs() will always fail.
> >>
> >> Do you agree with me?
> >>
> >> Thanks & Best Regards,
> >> George.Qiao
> >>
> >> ===================================
> >>
> >>>> -----Original Message-----
> >>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >>>> Sent: Friday, May 08, 2009 11:57 AM
> >>>> To: Hiremath, Vaibhav
> >>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
> wan_jinxue@visualon.com;
> >>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
> Andrews,
> >>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
> 'YangCai';
> >>>> linux-omap@vger.kernel.org
> >>>> Subject: Re: Status of Beagle Board
> >>>>
> >>>> Hi Vaibhav Hiremath,
> >>>>
> >>>> My application can work in OMAP3 EVM and other v4l2 platform,
> but
> >>>> there
> >>>> is another issue in beagle board. as follow:
> >>>>
> >>>>
> >>>>
> >>> [Hiremath, Vaibhav] Are you saying, same application works on
> >>>
> >> OMAP3EVM but fails on beagle board?
> >>
> >>>
> >>>> 1. NormalSize() -> RequestBuffer() -> mmap()
> >>>> 2. playing...
> >>>> 3. FullScreen() -> VIDIOC_STREAMOFF
> >>>>                           -> munmap()
> >>>>                           -> VIDIOC_REQBUFS
> >>>>                           -> VIDIOC_QUERYBUF
> >>>>                           -> RequestBuffer() -> mmap()
> >>>>                           -> VIDIOC_S_CROP
> >>>>                           -> VIDIOC_S_FMT
> >>>>                           -> VIDIOC_QBUF
> >>>>                           -> VIDIOC_STREAMON
> >>>>
> >>>> When I want to call VIDIOC_REQBUFS in FullScreen(), it always
> >>>>
> >> fail.
> >>
> >>>>
> >>> [Hiremath, Vaibhav] Is it possible for you to share your
> >>>
> >> application, so that I can give try here at my end?
> >>
> >>> Thanks,
> >>> Vaibhav Hiremath
> >>>
> >>>
> >>>
> >>>> Best Regards,
> >>>> George.Qiao
> >>>>
> >>>> ============================
> >>>>
> >>>>
> >>>>> Great, please see my comments in-lined below -
> >>>>>
> >>>>>
> >>>>> Thanks,
> >>>>> Vaibhav Hiremath
> >>>>> Platform Support Products
> >>>>> Texas Instruments Inc
> >>>>> Ph: +91-80-25099927
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >>>>>> Sent: Thursday, May 07, 2009 3:51 PM
> >>>>>> To: Hiremath, Vaibhav
> >>>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
> >>>>>>
> >> wan_jinxue@visualon.com;
> >>
> >>>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
> >>>>>>
> >> Andrews,
> >>
> >>>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
> >>>>>>
> >> 'YangCai';
> >>
> >>>>>> linux-omap-open-source@linux.omap.com
> >>>>>> Subject: Re: Status of Beagle Board
> >>>>>>
> >>>>>> Dear Vaibhav Hiremath,
> >>>>>>
> >>>>>> I can play video by v4l2 now!  Thank you!
> >>>>>>
> >>>>>> I have add code in board-omap3beagle.c :
> >>>>>>
> >>>>>> #ifdef CONFIG_FB_OMAP2
> >>>>>> static struct resource omap3beagle_vout_resource[3 -
> >>>>>> CONFIG_FB_OMAP2_NUM_FBS] = {
> >>>>>> };
> >>>>>> #else
> >>>>>> static struct resource omap3beagle_vout_resource[2] = {
> >>>>>> };
> >>>>>> #endif
> >>>>>>
> >>>>>> static struct platform_device omap3beagle_vout_device = {
> >>>>>>        .name                   = "omap_vout",
> >>>>>>        .num_resources  =
> ARRAY_SIZE(omap3beagle_vout_resource),
> >>>>>>        .resource               =
> &omap3beagle_vout_resource[0],
> >>>>>>        .id             = -1,
> >>>>>> };
> >>>>>>
> >>>>>> static struct platform_device *omap3_beagle_devices[]
> >>>>>>
> >> __initdata
> >>
> >>>> = {
> >>>>
> >>>>
> >>>>>>     &beagle_dss_device,
> >>>>>>     &leds_gpio,
> >>>>>>     &keys_gpio,
> >>>>>>     &omap3beagle_vout_device,
> >>>>>> };
> >>>>>>
> >>>>>>
> >>>>>> I have got some omapdss error and voutBuffer Size. as follow:
> >>>>>>
> >>>>>> omapdss: Could not find exact pixel clock. Requested 23500
> kHz,
> >>>>>>
> >>>>>>
> >>>> got
> >>>>
> >>>>
> >>>>>> 24000 kHz
> >>>>>> omapdss error: display already enabled
> >>>>>> omap_voutDisplay already enabled
> >>>>>> omapdss error: display already enabled
> >>>>>> omap_voutDisplay already enabled
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> [Hiremath, Vaibhav] This is not an error as such, it warning
> >>>>>
> >>>>>
> >>>> message. Actually here we are trying to enable the display
> which
> >>>>
> >> has
> >>
> >>>> already been enabled by Fbdev.
> >>>>
> >>>>
> >>>>> We can suppress this message, atleast during init.
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> omap_voutBuffer Size = 3686400
> >>>>>> omap_vout: registered and initialized video device 0 [v4l2]
> >>>>>> omap_voutBuffer Size = 3686400
> >>>>>> omap_vout: registered and initialized video device 1 [v4l2]
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> [Hiremath, Vaibhav] This is just a debug massage; it is
> neither
> >>>>>
> >> a
> >>
> >>>> error nor a warning. So don't worry.
> >>>>
> >>>>
> >>>>> Can you share the code-base or submit the patches to the list,
> >>>>>
> >> so
> >>
> >>>> that interested people can use it.
> >>>>
> >>>>
> >>>>>> Could I change 'voutBuffer Size'?  How to fix it?
> >>>>>>
> >>>>>> Best Regards,
> >>>>>> George.Qiao
> >>>>>>
> >>>>>> =======================
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Yes Definitely this is the issue. If the
> platform_device.name
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> doesn't match with the platform_driver.driver.name then your
> >>>>>>
> >>>>>>
> >>>> probe
> >>>>
> >>>>
> >>>>>> function will not be called at all.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Can you just copy the board-omap3evm.c changes related to
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> V4L2/DSS2 and give a shot? I think it should work straight
> >>>>>>
> >> away.
> >>
> >>>>>>
> >>>>>>> Please let me know if you need any further clarification or
> >>>>>>>
> >>>>>>>
> >>>> help.
> >>>>
> >>>>
> >>>>>>> Thanks,
> >>>>>>> Vaibhav Hiremath
> >>>>>>> Platform Support Products
> >>>>>>> Texas Instruments Inc
> >>>>>>> Ph: +91-80-25099927
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: George.Qiao [mailto:qiao_shanshan@visualon.com]
> >>>>>>>> Sent: Thursday, May 07, 2009 12:55 PM
> >>>>>>>> To: Hiremath, Vaibhav
> >>>>>>>> Cc: Syed Mohammed, Khasim; Shah, Hardik;
> >>>>>>>>
> >>>>>>>>
> >>>> wan_jinxue@visualon.com;
> >>>>
> >>>>
> >>>>>>>> Bill Lin; shawnofarrell@visualon.com; Chatterjee, Amit;
> >>>>>>>>
> >>>>>>>>
> >>>> Andrews,
> >>>>
> >>>>
> >>>>>>>> Gerard; Kridner, Jason; 'Bangfei Jin'; 'Xuejun Dong';
> >>>>>>>>
> >>>>>>>>
> >>>> 'YangCai';
> >>>>
> >>>>
> >>>>>>>> linux-omap-open-source@linux.omap.com
> >>>>>>>> Subject: Re: Status of Beagle Board
> >>>>>>>>
> >>>>>>>> Hi Hiremath, Vaibhav,
> >>>>>>>>
> >>>>>>>> Thank you very much for your instant response!
> >>>>>>>>
> >>>>>>>> I've checked the file 'board-omap3beagle.c' and found
> nothing
> >>>>>>>> looking
> >>>>>>>> like omap_vout in it, no platform_device, either. And I've
> >>>>>>>>
> >> also
> >>
> >>>>>>>> compared
> >>>>>>>> it with board-omap3evm.c.
> >>>>>>>>
> >>>>>>>> Below is some difference between them:
> >>>>>>>>
> >>>>>>>> board-omap3evm.c has:
> >>>>>>>> *+static struct platform_device omap3evm_vout_device = {
> >>>>>>>> **+       .name                   = "omap_vout",
> >>>>>>>> ...
> >>>>>>>> }
> >>>>>>>> *
> >>>>>>>> But 'board-omap3beagle.c' does not have anything looking
> >>>>>>>>
> >> like:
> >>
> >>>>>>>> *+static struct platform_device omap3beagle_vout_device =
> {*
> >>>>>>>> *+       .name                   = "omap_vout",
> >>>>>>>> ...
> >>>>>>>> }
> >>>>>>>> *
> >>>>>>>> So, I think there's no patch on V4L2 for beagle done and
> this
> >>>>>>>>
> >>>>>>>>
> >>>> is
> >>>>
> >>>>
> >>>>>> the
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>> root cause of this issue. Do you agree with me? Thanks a
> lot.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Best Regards,
> >>>>>>>> George.Qiao
> >>>>>>>> ===================================
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Hi George,
> >>>>>>>>>
> >>>>>>>>> I have looked into your config file and it looks ok to me.
> >>>>>>>>>
> >>>>>>>>> Can you conform that, you have added "platform_device"
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>> definitions
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>> in board-omap3beagle.c?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Can you please create complete patch on top of your
> baseline
> >>>>>>>>>
> >>>>>>>>>
> >>>> (O-
> >>>>
> >>>>
> >>>>>> L
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>> and Tomi's tree), so that I can review that directly? I
> will
> >>>>>>>>
> >> be
> >>
> >>>>>>>> seeing complete changes done for beagle.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> Thanks,
> >>>>>>>>> Vaibhav Hiremath
> >>>>>>>>> Platform Support Products
> >>>>>>>>> Texas Instruments Inc
> >>>>>>>>> Ph: +91-80-25099927
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>
> >>>
> >>>
> >
> >
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-12  8:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1228470882.25798.23.camel@david-nb.visualon.local>
     [not found] ` <2A3DCF3DA181AD40BDE86A3150B27B6B02D110A3FA@dbde02.ent.ti.com>
     [not found]   ` <0680EC522D0CC943BC586913CF3768C002D97E9BA9@dbde02.ent.ti.com>
     [not found]     ` <1228990380.29333.11.camel@david-nb.visualon.local>
     [not found]       ` <0680EC522D0CC943BC586913CF3768C002DD2C6F5C@dbde02.ent.ti.com>
     [not found]         ` <1241078747.19525.23.camel@localhost.localdomain>
     [not found]           ` <FD6982799649459A93E724A62BF2E64F@LinHPNotebook>
     [not found]             ` <0680EC522D0CC943BC586913CF3768C00378655555@dbde02.ent.ti.com>
     [not found]               ` <1241617391.3362.23.camel@localhost.localdomain>
     [not found]                 ` <0680EC522D0CC943BC586913CF3768C003787AB074@dbde02.ent.ti.com>
     [not found]                   ` <4A0259D5.6090204@visualon.com>
     [not found]                     ` <0680EC522D0CC943BC586913CF3768C003787AB131@dbde02.ent.ti.com>
     [not found]                       ` <19F8576C6E063C45BE387C64729E739404323ED91C@dbde02.ent.ti.com>
     [not found]                         ` <4A028CBF.8030507@visualon.com>
     [not found]                           ` <19F8576C6E063C45BE387C64729E739404323ED97B@dbde02.ent.ti.com>
     [not found]                           ` <19F8576C6E063C45BE387C6 4729E739404323ED97B@dbde02.ent.ti.com>
     [not found]                             ` <4A02B60A.2010006@visualon.com>
     [not found]                               ` <19F8576C6E063C45BE387C64729E739404323ED9F7@dbde02.ent.ti.com>
2009-05-08  6:26                                 ` Status of Beagle Board George.Qiao
2009-05-08  6:31                                   ` Hiremath, Vaibhav
2009-05-11  6:55                                     ` George.Qiao
2009-05-11 13:56                                       ` Hiremath, Vaibhav
2009-05-12  8:05                                         ` George.Qiao
2009-05-12  8:23                                           ` Hiremath, Vaibhav

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.