From: Jorge Almeida <jjalmeida@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] ALSA wizard...
Date: Thu, 23 Apr 2020 20:01:51 +0100 [thread overview]
Message-ID: <CAKpSnpKAxF1JLXYjB3fiyLQzMMRyqM9sJmRX+jeG+d2wKLOAog@mail.gmail.com> (raw)
In-Reply-To: <36087914.10thIPus4b@lenovo.localdomain>
On Thu, Apr 23, 2020 at 5:54 PM Michael <confabulate@kintzios.com> wrote:
>
>
> > > > > The setup:
> > > > > -- a microphone connected to an audio interface, which connects to an
> > > > > USB port in the computer. The interface works like a USB sound card,
> > > > > at least regarding sound capture. It works: I can record my voice with
> >
> > Yes, and the device works for recording; the playing together with the
> > other card (for output) is the problem, which I believe is a matter of
> > having an appropriate .asoundrc (the syntax of which beats me)
>
> OK, have a look at the end of this message for an example.
>
>
> > > If an application like vlc allows you to get audio output by
> > > switching devices, then you know you will have to change the order of your
> > > cards as they are detected by the kernel.
> >
> Not relevant, but if the RCA is detected as a serial modem or what not, you
> may need to also be in dialup group.
I checked the kernel messages, nothing seems relevant.
>
>
> OK, I believe you need to use the "asym" alsa plugin to combine input from one
> card and output through another. I have not used this before - I'd probably
> opt for jackd instead. Some experimentation may be necessary to get the
> manual setup as you want it. Have a look at this page:
>
> https://github.com/opensrc/alsa/blob/master/lib/md/Asym.md
Good link, I didn't knw this one.
>
> Essentially, you define two cards, for two different functions, then use the
> asym plugin to combine them. Something like this?
>
> # Specify the MoBo card as the default
> pcm.!default {
> type hw
> card PCH
> }
>
> # Retain controls on this card for alsamixer and applications
> ctl.!default {
> type hw
> card PCH
> }
>
> # Now the USB device
> ctl.!USB{
> type hw
> card CODEC
> format "S16_LE"
> channels 1
> rate 44100
> #more options here
> }
>
> # Join the I/O devices
> pcm.duplex{
> type asym
> playback.pcm "default"
> capture.pcm "USB"
> }
>
> See how the above works and consult the asym page for further tweakerage.
I need the "virtual" card to be the default, so I did this:
pcm.mbcard{
type hw
card PCH
device 1
}
ctl.mbcard{
type hw
card 0
}
pcm.usbcard{
type hw
card CODEC
device 0
}
pcm.output{
type plug
slave.pcm "mbcard"
}
pcm.input{
type plug
slave {
pcm "usbcard"
channels 1
}
}
pcm.!default{
type asym
playback.pcm "output"
capture.pcm "input"
}
(The microphone is mono, hence the channels entry. I'm not sure it is needed.)
I think this sets the defaults, because:
--I can record with "arecord -fdat test.wav"
--I can playback with "aplay test.wav"
What I cannot do is to coax discord into working. Maybe discord
doesn't expect ALSA's defaults after all?
Anyone familiar with discord? (No gamers?)
Thanks
Jorge
next prev parent reply other threads:[~2020-04-23 19:02 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-22 21:57 [gentoo-user] ALSA wizard Jorge Almeida
2020-04-23 0:42 ` Mark Knecht
2020-04-23 7:03 ` Jorge Almeida
2020-04-23 13:37 ` Mark Knecht
2020-04-23 18:50 ` Jorge Almeida
2020-04-23 8:19 ` Michael
2020-04-23 9:46 ` Jorge Almeida
2020-04-23 16:53 ` Michael
2020-04-23 19:01 ` Jorge Almeida [this message]
2020-04-23 20:10 ` Mark Knecht
2020-04-23 21:01 ` Jorge Almeida
2020-04-23 20:38 ` Matt Connell (Gmail)
2020-04-23 21:07 ` Jorge Almeida
2020-04-23 21:27 ` Matt Connell (Gmail)
2020-04-24 10:38 ` Michael
2020-04-24 11:13 ` Jorge Almeida
2020-04-24 13:05 ` Michael
2020-04-24 13:35 ` Jorge Almeida
2020-04-24 16:26 ` Mark Knecht
2020-04-24 17:03 ` Jorge Almeida
2020-04-24 17:10 ` Mark Knecht
2020-04-24 17:20 ` Jorge Almeida
2020-04-24 18:07 ` Mark Knecht
2020-04-24 22:22 ` Jorge Almeida
2020-04-24 22:46 ` Mark Knecht
2020-04-24 23:16 ` Jorge Almeida
2020-04-25 0:18 ` Mark Knecht
2020-04-25 8:08 ` Jorge Almeida
2020-04-25 13:19 ` Mark Knecht
2020-04-25 21:38 ` Jorge Almeida
2020-04-25 23:15 ` Mark Knecht
2020-04-26 0:07 ` Jorge Almeida
2020-04-26 12:30 ` Jorge Almeida
2020-04-26 16:58 ` Mark Knecht
2020-04-26 19:08 ` Jorge Almeida
2020-04-26 19:28 ` problems with slack and zoom: Was: " Jack
2020-04-26 22:22 ` Jorge Almeida
2020-04-26 23:03 ` Jack
2020-04-26 23:42 ` Jorge Almeida
2020-04-27 15:26 ` Jack
2020-04-27 16:47 ` Jorge Almeida
2020-04-27 18:17 ` Jack
2020-04-28 10:32 ` [gentoo-user] Re: problems with slack and zoom: Was: " Nuno Silva
2020-04-28 11:09 ` Jorge Almeida
2020-04-28 11:56 ` Michael
2020-04-28 12:02 ` Jorge Almeida
2020-04-26 19:34 ` [gentoo-user] " Mark Knecht
2020-04-26 20:05 ` Jorge Almeida
2020-04-26 20:23 ` Mark Knecht
2020-04-26 20:49 ` Jorge Almeida
2020-04-26 21:26 ` Mark Knecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKpSnpKAxF1JLXYjB3fiyLQzMMRyqM9sJmRX+jeG+d2wKLOAog@mail.gmail.com \
--to=jjalmeida@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox