Re: selecting line-in (rather than MIC) via API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In article <4E564121.70908@xxxxxxxxx>, Andrew Collier
<collierab@xxxxxxxxx> wrote:
> hi,

>  how do i go about telling ALSA to record from
> LINE-IN rather than MIC?

IIUC You may be able to do this by putting the relevant details like

pcm.!default { 

  capture.pcm "<card details>";

}

into an ~/.asoundrc file.

That should then tell the alsa system that the card input to use as default
is as given by <card details>. The "!default" overrules any existing
default setting (to use the mic input in your case).

This may have a name, but may be something like 'hw:X,Y" where you replace
the X and Y with the card and port (device) numbers you need for your
system.

If you haven't already done so, the commands

arecord -l

and

arecord -L

will give you info on the card and device numbers for each input port.

However I've only tried the equivalent of this method for controlling
replay, and can't be sure it will work for recording. So please let me/us
know if this works (or not!), and what details you need to make it work.

Slainte,

Jim

-- 
Electronics  http://www.st-and.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
Audio Misc  http://www.audiomisc.co.uk/index.html
Armstrong Audio  http://www.audiomisc.co.uk/Armstrong/armstrong.html

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux