Audio: use ADC right channel for microphone.

AK4951 produces mic data only in right channel. WM8731 places mic samples on both channels.
This commit is contained in:
Jared Boone 2017-07-26 17:38:34 -07:00
parent 2123577795
commit 2de30b9920

View File

@ -36,5 +36,5 @@ void AudioInput::read_audio_buffer(buffer_s16_t& audio) {
auto audio_buffer = audio::dma::rx_empty_buffer(); auto audio_buffer = audio::dma::rx_empty_buffer();
for (size_t i=0; i<audio_buffer.count; i++) for (size_t i=0; i<audio_buffer.count; i++)
audio.p[i] = audio_buffer.p[i].left; audio.p[i] = audio_buffer.p[i].right;
} }