Have drivers merged for WM8711/21/31 since they are so similar but respect all register differences between codecs. Change minis to #define the actual codec type. If anything breaks check if OSCPD and CLKOUTPD need to be clear for the target- H10 is fine. A nice naming convention suggestion for WM codec multidrivers would be welcome rather than naming for a specific chip.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19367 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-08 21:09:56 +00:00
parent ed96b2a4dd
commit ea929a3e45
10 changed files with 218 additions and 440 deletions

View file

@ -112,7 +112,8 @@ void pcm_apply_settings(void)
audiohw_set_frequency(sr_ctrl);
#endif
#if defined(HAVE_WM8731) || defined(HAVE_WM8721)
#if defined(HAVE_WM8711) || defined(HAVE_WM8721) \
|| defined(HAVE_WM8731)
audiohw_set_sample_rate(pcm_freq);
#endif
pcm_curr_sampr = pcm_freq;