Skip to content
Snippets Groups Projects
Commit 395e3b17 authored by Jared Boone's avatar Jared Boone
Browse files

Audio: Add input namespace and functions.

parent bec626e2
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,20 @@ void unmute() {
} /* namespace output */
namespace input {
void start() {
audio_codec->microphone_enable();
i2s::i2s0::rx_start();
}
void stop() {
i2s::i2s0::rx_stop();
audio_codec->microphone_disable();
}
} /* namespace input */
namespace headphone {
volume_range_t volume_range() {
......
......@@ -63,6 +63,13 @@ void unmute();
} /* namespace output */
namespace input {
void start();
void stop();
} /* namespace input */
namespace headphone {
volume_range_t volume_range();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment