On Monday 08 February 2010 08:20:14 Dmitri Belimov wrote:
> Hi All.
> 
> I wrote SPI bitbang master over GPIO of saa7134. Speed of writing is much 
> slow then in a Windows systems.
> I make some tests:
> 
> Windows, SPI bitbang 97002 bytes x 2 time of writing is around 1.2 seconds
> Linux, SPI bitbang with call saa7134_set_gpio time of writing is 18 seconds
> Linux, SPI bitbang without call saa7134_set_gpio time of writing is 
> 0.25seconds.
> 
> The overhead of SPI subsystem is 0.25 seconds. Writing speed to registers of 
> the saa7134
> tooooo slooooow.
> 
> What you think about it?

Internally the spi subsystem uses delays based on some nsecs parameter. I see 
some
interesting code in spi_bitbang.h under #ifdef EXPAND_BITBANG_TXRX. My guess is
that you use the default timings from the spi subsystem that are too high for 
this
card.

Try to discover what timings are currently in use and see if they match the
hardware spec. If not, then you should figure out how to optimize that.

Regards,

        Hans

> 
> With my best regards, Dmitry.
> 

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG
--
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

Reply via email to