diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/pcm-pp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/firmware/target/arm/pcm-pp.c b/firmware/target/arm/pcm-pp.c index 38fd49165e..e37ee9aaad 100644 --- a/firmware/target/arm/pcm-pp.c +++ b/firmware/target/arm/pcm-pp.c | |||
@@ -94,9 +94,13 @@ static int sr_ctrl = MROBE100_44100HZ; | |||
94 | #endif | 94 | #endif |
95 | 95 | ||
96 | void pcm_set_frequency(unsigned int frequency) | 96 | void pcm_set_frequency(unsigned int frequency) |
97 | { | 97 | { |
98 | (void)frequency; | 98 | #ifdef HAVE_WM8731 |
99 | pcm_freq = frequency; | ||
100 | #else | ||
101 | (void)frequency; | ||
99 | pcm_freq = HW_SAMPR_DEFAULT; | 102 | pcm_freq = HW_SAMPR_DEFAULT; |
103 | #endif | ||
100 | #ifdef HAVE_WM8751 | 104 | #ifdef HAVE_WM8751 |
101 | sr_ctrl = MROBE100_44100HZ; | 105 | sr_ctrl = MROBE100_44100HZ; |
102 | #endif | 106 | #endif |
@@ -107,6 +111,10 @@ void pcm_apply_settings(void) | |||
107 | #ifdef HAVE_WM8751 | 111 | #ifdef HAVE_WM8751 |
108 | audiohw_set_frequency(sr_ctrl); | 112 | audiohw_set_frequency(sr_ctrl); |
109 | #endif | 113 | #endif |
114 | |||
115 | #ifdef HAVE_WM8731 | ||
116 | audiohw_set_sample_rate(pcm_freq); | ||
117 | #endif | ||
110 | pcm_curr_sampr = pcm_freq; | 118 | pcm_curr_sampr = pcm_freq; |
111 | } | 119 | } |
112 | 120 | ||