Command line commands for Stereo Soundcard
Moderator: flatmax
Command line commands for Stereo Soundcard
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.
Re: Command line commands for Stereo Soundcard
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 :
In that file, put a command (this is untested) :
To store the mixer settings before you reboot do :
Matt
p.s. Can you please report back with your findings ?
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
Code: Select all
@xterm -e 'sudo alsactl restore'
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
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
Re: Command line commands for Stereo Soundcard
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
amixer set 'Line' cap
To stop capture
amixer set 'Line' uncap
For the mic just substitute 'Mic' for 'Line' in the above
Re: Command line commands for Stereo Soundcard
Also
amixer set 'Input Mux' 'Line In'
or
amixer set 'Input Mux' 'Mic'
amixer set 'Input Mux' 'Line In'
or
amixer set 'Input Mux' 'Mic'
Who is online
Users browsing this forum: No registered users and 4 guests