]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: comedi: fix minimum AO period for NI 625x and NI 628x
authorÉric Piel <piel@delmic.com>
Wed, 19 Dec 2012 12:03:13 +0000 (13:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:31 +0000 (08:46 -0800)
commit81b2b4fb16aadd1d161307d7535f619aa3f3b877
tree4cf0f270ceb1d1886abd245e69d4c85a3793b414
parent75ded7cb00915fc666186635b31796f9e06b8fd1
staging: comedi: fix minimum AO period for NI 625x and NI 628x

commit 34b55d8c48f4f76044d8f4d6ec3dc786cf210312 upstream.

The minimum period was set to 357 ns, while the divider for these boards is 50
ns. This prevented to output at maximum speed as ni_ao_cmdtest() would return
357 but would not accept it.

Not sure why it was set to 357 ns (this was done before the git history,
which starts 5 years ago). My guess is that it comes from reading the
specification stating a 2.8 MHz rate (~ 357 ns). The latest
specification states a 2.86 MHz rate (~ 350 ns), which makes a lot
more sense.

Tested on a pci-6251.

Signed-off-by: Éric Piel <piel@delmic.com>
Acked-By: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_pcimio.c