I developed a small application that records audio using the ALSA driver into the embedded system.
Now I have a problem with choosing the device that I want to record from MIC / Line IN.
The application is configured to start at system startup, but my recorder is set to MIC by default. For my application to work, I have to go to amixer and install the recorder from MIC to Line IN, and then run my application.
You guys know a way to make this change from the application command or amixer, which will change this recorder, and I can put it in a script, run it at startup.
I said that this application works in the embedded system, and I need to configure the system before running the application.
EDIT1:
here is my amixer output:
root@freescale ~$ amixer Simple mixer control 'Headphone',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 127 Front Left: 103 [81%] Front Right: 103 [81%] Simple mixer control 'Playback',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 192 Front Left: 192 [100%] Front Right: 192 [100%] Simple mixer control 'Capture',0 Capabilities: cvolume Capture channels: Front Left - Front Right Limits: Capture 0 - 15 Front Left: Capture 15 [100%] Front Right: Capture 15 [100%] Simple mixer control 'Capture Vol Reduction',0 Capabilities: enum Items: 'No Change' 'Reduced by 6dB' Item0: 'No Change' Simple mixer control 'ADC Mux',0 Capabilities: enum Items: 'MIC_IN' 'LINE_IN' Item0: 'MIC_IN' Simple mixer control 'DAC Mux',0 Capabilities: enum Items: 'DAC' 'LINE_IN' Item0: 'DAC' Simple mixer control 'MIC GAIN',0 Capabilities: enum Items: '0dB' '20dB' '30dB' '40dB' Item0: '0dB'
Thanks a lot, Gabriel
source share