Command line commands for Stereo Soundcard

Moderator: flatmax

Post Reply
kenski1
Posts: 8
Joined: Tue Oct 10, 2017 2:55 am

Command line commands for Stereo Soundcard

Post by kenski1 » Fri Nov 03, 2017 10:29 am

Are there any command line commands or other commands that can be put in a .sh file for the Stereo Sound card like the two "restore" commands that set either the microphone or the RCA inputs given in the setup posting? The Wolfson audio card had all kinds of these, although they were not well documented.

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: Command line commands for Stereo Soundcard

Post by flatmax » Sat Nov 04, 2017 1:09 pm

Hi there,

If you want to store/restore each boot in a custom way, here is a suggestion ...

Perhaps the best approach is to edit the file ~/.config/lxsession/LXDE-pi/autostart :

Code: Select all

nano ~/.config/lxsession/LXDE-pi/autostart
In that file, put a command (this is untested) :

Code: Select all

@xterm -e 'sudo alsactl restore'
To store the mixer settings before you reboot do :

Code: Select all

sudo alsactl store

Matt
p.s. Can you please report back with your findings ?
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

moggyd
Posts: 22
Joined: Wed Jul 05, 2017 5:09 pm

Re: Command line commands for Stereo Soundcard

Post by moggyd » Sun Nov 05, 2017 1:36 am

To activate RCA input
amixer set 'Line' cap

To stop capture
amixer set 'Line' uncap

For the mic just substitute 'Mic' for 'Line' in the above

moggyd
Posts: 22
Joined: Wed Jul 05, 2017 5:09 pm

Re: Command line commands for Stereo Soundcard

Post by moggyd » Sun Nov 05, 2017 11:48 pm

Also

amixer set 'Input Mux' 'Line In'
or
amixer set 'Input Mux' 'Mic'

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests