]> 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>
Mon, 7 Jan 2013 22:16:49 +0000 (14:16 -0800)
commit34b55d8c48f4f76044d8f4d6ec3dc786cf210312
tree8e8f7c614789e04b6ed62430088d54f62aca4fbd
parent9349f8af28ea89639b3c97da583d60631ed10398
staging: comedi: fix minimum AO period for NI 625x and NI 628x

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_pcimio.c