1 1
Ugo Riboni

Enable microphone by default on NanoPi M1 Plus

Recommended Posts

In the latest image for NanoPi M1 Plus, I enable the analog audio I/O on the card by adding overlays=analog-codec in /boot/armbianEnv.txt


But the microphone on the card is disabled by default, because the ALSA control "Mic1 Playback Switch" is set to false by default on the card.


Worse still, this mixer control does not appear in the alsamixer GUI, and the only way to set to true is to use the amixer command line utility, for example with:

 amixer cset name="Mixer Capture Switch" on on

I can do this inside a first boot script, and then ALSA will persist the state between reboots.

But does not seem ideal, and took me a very long time to figure out why the microphone was disabled in the first place.


Is there a way to have this control appear in the GUI, and for it to be enabled by default when the overlay is loaded ?


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

1 1