]> git.karo-electronics.de Git - mv-sheeva.git/commit
V4L/DVB (13089): cx25840: Separate set_audclk_freq functionality for the different...
authorAndy Walls <awalls@radix.net>
Sun, 27 Sep 2009 02:54:20 +0000 (23:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:40:18 +0000 (18:40 -0200)
commit9eef550a9a98c1e3d15aaf490812949fdeb01c7c
treef038947a4560dec1f56a103a9d2e124834766bff
parent2a03f03471d3232037e656570ccaf3ff2ffd01e8
V4L/DVB (13089): cx25840: Separate set_audclk_freq functionality for the different chips

Separate out the set_audclk_freq() function into separate functions for the
four families of cores.  These cores all use slightly different sample clock
schemes and may be assuming slightly (+/- 3 Hz) different reference frequencies.
The code resuse was not worth the maintenance and testing headache of have all
chips use the same function peppered with conditional logic.

Added comments on how PLL and SRC parameters values are computed.  Fixed a few
bugs related to the shared code having a large number of conditional statements.
Noted inconsistencies with FIXME in the comments.

This is done in preparation for getting the CX2388[578] PLL/clock setting logic
cleaned up for CX23888 analog video and IR (which need the VID PLL set right).

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx25840/cx25840-audio.c