From: Mark Brown Date: Fri, 13 Aug 2010 18:05:04 +0000 (+0100) Subject: ASoC: Automatically calculate clock ratio for WM8580 X-Git-Tag: v2.6.37-rc1~126^2~1^2~164 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5607d8e7a4c30d2ff62b8eefe3f977d5c71d2fe;p=pandora-kernel.git ASoC: Automatically calculate clock ratio for WM8580 Implement set_sysclk() and then rather than assuming 256fs use the supplied value to calculate and configure the clock ratio for the currently used sample rate. As a side effect we also end up implementing clock selection for the ADC path. In order to avoid confusion remove the existing set_clkdiv() based configuration of the clock source for the DAC and update the SMDK64xx driver (which is the only in-tree user of the CODEC). Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- Reading git-diff-tree failed