From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1DB12138350 for ; Thu, 23 Apr 2020 13:38:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32D26E0B0C; Thu, 23 Apr 2020 13:38:00 +0000 (UTC) Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD7DAE0AF4 for ; Thu, 23 Apr 2020 13:37:59 +0000 (UTC) Received: by mail-qk1-x742.google.com with SMTP id b62so6344231qkf.6 for ; Thu, 23 Apr 2020 06:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=QvrbxsC+W58YKnknIpboe4z9YdKzW+X57B6aFhcQ69Q=; b=DMb9koB0yMlraEPxsoMIvhp4GfzxR5XIafCUPTVF1YTjauaxwEar13lUIRdbvKqGvW Dfff7mKr2wm68/+SWR3FhKt30l+cKQUuFaHcWNWKftLzfJDGR+vDA0U+4swDt1BU6rG/ fIsTyjbfRQyf2As3yC8Kgl2OspRGSqXZNUirOg8dvFlA8qz0mOdv7jMHoDTWbtvTK5SS 19M79YWW615dzP8LCgOTZi6KwbfzJBM/A/96RIVXW3gxxb6aESzYTvBpjm7+H8l8beVB /976WfY5AYj6lh6OpoGroZz+KUzCtK02en1NsK/5/P6OYgoCOO5g9x0xkj7Kdw+3f3r6 /JJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QvrbxsC+W58YKnknIpboe4z9YdKzW+X57B6aFhcQ69Q=; b=KxsXZv7c2pvkPmJEMZewFk57/BG8WUfAbWft96jHhs8lgnWtiJMvtgVcpCZ65orBbi sJKhm6/MyqXvGyfNjM/nf3tQ6W8Y0SO7qBq84MR0EWkp16KMJXG4Se8H3qKGeyzD2tCZ 9WlPoepos8zkx/etf1HjuSbV5M8LLiSRKNm2Ik9z/zAfFuSYddSmJm8AeoBUyuIlS3O4 WGMs9LW/xcsbkXM1DKhwOyed4WVO4bHprrsMgiWyGklKDeYnomGb+cCI2NJqaeAJgh0s 6I7LETfmuQ/YJTAR8LDe4f2c7DrZeeLghcqqHd47X5sEOiwUdOy61GdY22KmZn16gTrO zd4g== X-Gm-Message-State: AGi0Pub+6LlY/21YUbhNNv3X5e7MjqCmBY6l6qNtl7w5V6PE1tLQo2/V rBo6ARklJGCb3uprG2fEskauIeySH30JptI6hT1lwkrBIkg= X-Google-Smtp-Source: APiQypKCdjyrOhMmIUQ9M4uDsM85l/762npqj9AxNONC09KayKLObMao0U03ePXluIpElvWX9mHVCG9F5iaCMWTxXOw= X-Received: by 2002:a37:5903:: with SMTP id n3mr3695637qkb.332.1587649078638; Thu, 23 Apr 2020 06:37:58 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: In-Reply-To: From: Mark Knecht Date: Thu, 23 Apr 2020 06:37:47 -0700 Message-ID: Subject: Re: [gentoo-user] ALSA wizard... To: Gentoo User Content-Type: multipart/alternative; boundary="0000000000005c3dbb05a3f55b2c" X-Archives-Salt: b017d5a1-f2ee-4d5f-8b92-96c8d5f29460 X-Archives-Hash: ca0b11fc62e33bec6baf6c9a3c335504 --0000000000005c3dbb05a3f55b2c Content-Type: text/plain; charset="UTF-8" On Thu, Apr 23, 2020 at 12:04 AM Jorge Almeida wrote: > > On Thu, Apr 23, 2020 at 1:42 AM Mark Knecht wrote: > > > > Jorge, > > Sorry for top posting. I'm at a site with limited capabilities at the moment. Please forgive. > > Forgiving someone for trying to help me? :) > (And, if memory serves, you were one of the first persons to help me, > in a sound related question, many years ago!) > Well, I Can only hope I was nice! ;-) > > > > > I'm slightly confused by the question but before I get into that please provide the output of > > > > cat /proc/asound/cards > $ cat /proc/asound/cards > 0 [PCH ]: HDA-Intel - HDA Intel PCH > HDA Intel PCH at 0xf7340000 irq 137 > 1 [CODEC ]: USB-Audio - USB Audio CODEC > Burr-Brown from TI USB Audio CODEC at > usb-0000:00:14.0-10, full speed > > > cat /proc/asound/modules > $ cat /proc/asound/modules > cat: /proc/asound/modules: No such file or directory > > (No wonder: I have it all in the kernel. But sound playing and > recording are both fine, the problem is how to setup defaults that use > two cards) I don't think any problems are created by building the modules into the kernel. However I don't know if blacklisting (something I now think you won't have to do so it doesn't matter) a module works when it's built into the kernel works when it's built in. > > > > What desktop environment are you using? > I use openbox (it is probably debatable whether it should be considered a DE) > Anyway, this is a low-level setup, no higher-level stuff on top of ALSA. > > > > What kernel are you running? > 5.6.4 (off portage) > > OK, looking at your problem I think you are asking for the audio input to come from the USB device and the audio output to be the built-in audio device. If that's correct then Alsa doesn't, by default, allow you to do that - input from one card, output to another card, but treating it all like a single card to make applications happy. What I _THINK_ you need to do is create a 'virtual' sound card. Google these terms alsa virtual sound card and you will find examples of how to do this. It requires editing .asoundrc. I've never done this myself so I probably cannot help much beyond this. (But I will try to be nice!) ;-) As for my desktop question KDE, which I use, has something like this built in where it will create a virtual device that sends audio to all cards. I've used it (very briefly) sending audio to both USB and the built-in Intel audio device in my laptop, and it does work, but I eventually went a different way. As for my kernel question my Scarlett 2i2 3rd gen USB card didn't work correctly with kernels lower than 5.3. Seems like that shouldn't be a problem for you. Wish I could offer more specific help on coding up .asoundrc but I suspect you'll figure it out pretty quickly. Cood luck, Mark --0000000000005c3dbb05a3f55b2c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Apr 23, 2020 at 12:04 AM Jorge Almeida <= ;jjalmeida@gmail.com> wrote:<= br>>
> On Thu, Apr 23, 2020 at 1:42 AM Mark Knecht <markknecht@gmail.com> wrote:
> &g= t;
> > Jorge,
> > =C2=A0 =C2=A0Sorry for top posting. I&#= 39;m at a site with limited capabilities at the moment. Please forgive.
= >
> Forgiving someone for trying to help me? :)
> (And, if m= emory serves, you were one of the first persons to help me,
> in a so= und related question, many years ago!)
>

Well, I C= an only hope I was nice! ;-)
>
> >
> > =C2=A0 =C2= =A0I'm slightly confused by the question but before I get into that ple= ase provide the output of
> >
> > cat /proc/asound/cards<= br>> $ cat /proc/asound/cards
> =C2=A00 [PCH =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0]: HDA-Intel - HDA Intel PCH
> =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 HDA Intel PCH a= t 0xf7340000 irq 137
> =C2=A01 [CODEC =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0]: USB-Audio - USB Audio CODEC
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Burr-Brown from TI USB Audio = CODEC at
> usb-0000:00:14.0-10, full speed
>
> > cat /= proc/asound/modules
> $ cat /proc/asound/modules
> cat: /proc/a= sound/modules: No such file or directory
>
> (No wonder: I have= it all in the kernel. But sound playing and
> recording are both fin= e, the problem is how to setup defaults that use
> two cards)

I don't think any problems are created by building th= e modules into the kernel. However I don't know if blacklisting (someth= ing I now think you won't have to do so it doesn't matter) a module= works when it's built into the kernel works when it's built in.

> >
> > What desktop environment are you using?<= br>> I use openbox (it is probably debatable whether it should be consid= ered a DE)
> Anyway, this is a low-level setup, no higher-level stuff= on top of ALSA.
> >
> > What kernel are you running?
= > 5.6.4 (off portage)
> >

OK, look= ing at your problem I think you are asking for the audio input to come from= the USB device and the audio output to be the built-in audio device. If th= at's correct then Alsa doesn't, by default, allow you to do that - = input from one card, output to another card, but treating it all like a sin= gle card to make applications happy. What I _THINK_ you need to do is creat= e a 'virtual' sound card. Google these terms

alsa virtual sound card

and you will find e= xamples of how to do this. It requires editing .asoundrc. I've never do= ne this myself so I probably cannot help much beyond this. (But I will try = to be nice!) ;-)

As for my desktop question KDE, w= hich I use, has something like this built in where it will create a virtual= device that sends audio to all cards. I've used it (very briefly) send= ing audio to both USB and the built-in Intel audio device in my laptop, and= it does work, but I eventually went a different way.=C2=A0

<= /div>
As for my kernel question my Scarlett 2i2 3rd gen USB card didn&#= 39;t work correctly with kernels lower than 5.3. Seems like that shouldn= 9;t be a problem for you.

Wish I could offer more = specific help on coding up .asoundrc but I suspect you'll figure it out= pretty quickly.

Cood luck,
Mark
--0000000000005c3dbb05a3f55b2c--