Read about our upcoming Code of Conduct on this issue

Commit 0e5ae4b8 authored by a1ex's avatar a1ex
Browse files

Experimental mic power control

--HG--
branch : 550d
parent ccf4d7c6c3d9
......@@ -621,7 +621,7 @@ audio_configure( int force )
audio_ic_write( AUDIO_IC_PM1 | 0x6D ); // power up ADC and DAC
//mic_power is forced on if input source is 0, 1 or 3
mic_power = (input_source == 2) ? mic_power : 1;
//~ mic_power = (input_source == 2) ? mic_power : 1;
audio_ic_write( AUDIO_IC_SIG1
| 0x10
......@@ -920,6 +920,18 @@ audio_monitoring_display( void * priv, int x, int y, int selected )
);
}
static void
audio_micpower_display( void * priv, int x, int y, int selected )
{
bmp_printf(
selected ? MENU_FONT_SEL : MENU_FONT,
x, y,
"Mic Power : %s",
mic_power ? "ON " : "OFF"
);
}
PROP_INT(PROP_USBRCA_MONITOR, rca_monitor);
void audio_monitoring_force_display(int x)
......@@ -1013,6 +1025,12 @@ static struct menu_entry audio_menus[] = {
.select = audio_binary_toggle,
.display = audio_loopback_display,
},*/
{
.priv = &mic_power,
.select = audio_binary_toggle,
.display = audio_micpower_display,
.help = "Mic power: Zinp = 30k if OFF else 2k? [AK4646 PDF p.31]"
},
{
.priv = &lovl,
.select = audio_3bit_toggle,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment