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 0425E138350 for ; Sun, 26 Apr 2020 19:34:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1990AE092E; Sun, 26 Apr 2020 19:34:36 +0000 (UTC) Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) (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 97353E08A8 for ; Sun, 26 Apr 2020 19:34:35 +0000 (UTC) Received: by mail-qk1-x72b.google.com with SMTP id n143so16021485qkn.8 for ; Sun, 26 Apr 2020 12:34:35 -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=YP3LPzvsFNHq12MSxgG1JFm1B3jszBvQqCiyy31NNxo=; b=AUPDL45Vxt+wpBNHuuNtGeb4O+vLHetXuOEcXSUs1Y9m5GFgeMvkXxZAeVNhn2r+RY CB7cYScjZlkQ78wNCn39SpI6tyHJd+Yu5UnmtwiD2MbePcOqUHLYYmisBQhxUKFmWqP5 JwwuOv7UuJvzZ8/QvAJyWh5JUwy7GEn9082S/LM8V3G96245+gM16Cy+9U8hCd/zbzRw 7+3vVkbLqvOcVsbxz/TR33jwgCNeNlehE1x/1V0VNQSTqthd0AkMrobUZmElfUW8AN9G tR5T9XTFDn8e33A+tYJsgeLM8AK8QsGpM/TeOAq3mORbYfKmKavgsKrQYbGVHrPeI668 Qc0A== 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=YP3LPzvsFNHq12MSxgG1JFm1B3jszBvQqCiyy31NNxo=; b=avC9Fzkn5qypS7oXTVXoVJp67Sh6dr6Yu8Dei4LNza3s/DRmuxrQw4RHezyRoHyhse 2id0Uqn8hDXE5PIvX/w/qpmP4Rb4H+BLiMDfX50JixqsVkmDO3tMjNWtVpVt2c3m+3sK 7LGnp6WmVSP13ecZg6wwEzsKOpw6/Y8o8Isi/cQPoy1KzyBau/mVjaZ8cG00t/pAwLZQ H0F4PyAwfu0oCRSg4zhrak0QCOScEup1tXIT5gSUP+qUK1UOhVfuSnujbZF6FbOifZBn gqfPDOnu/LmJMtozRRNFA3tHI9HaUiBTSzmdmbXgjCf5+mXSXJT+FpCwS+2RqoVe81Cv LDMQ== X-Gm-Message-State: AGi0Pub5FFFcW9oSjkHwP8Yp7ikX8w8V+Hii+15vh4ULk0/zLExWYDAN okHSu5SygcLxLWYNLyUkbKimFn8BQuWekqr7+WyhoLy2QlM= X-Google-Smtp-Source: APiQypJW15RsryzFrEJ8u56yzP4PDzgOeYeEPZUTiAKzOfqFSUXXsCEKgzbsY3khG5FMjA5C+iKPb2NM2TuigLFQEmU= X-Received: by 2002:ae9:dfc5:: with SMTP id t188mr18449117qkf.384.1587929674343; Sun, 26 Apr 2020 12:34:34 -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: <3298791.iIbC2pHGDl@lenovo.localdomain> <1840287.usQuhbGJ8B@lenovo.localdomain> In-Reply-To: From: Mark Knecht Date: Sun, 26 Apr 2020 12:34:23 -0700 Message-ID: Subject: Re: [gentoo-user] ALSA wizard... To: Gentoo User Content-Type: multipart/alternative; boundary="0000000000002ae6ac05a436b0e8" X-Archives-Salt: 503aac99-2931-4a35-bab1-2bbfa493f082 X-Archives-Hash: fc7cca8faaa8bd105a74434820f856dd --0000000000002ae6ac05a436b0e8 Content-Type: text/plain; charset="UTF-8" On Sun, Apr 26, 2020 at 12:09 PM Jorge Almeida wrote: > > On Sun, Apr 26, 2020 at 5:58 PM Mark Knecht wrote: > > > > > > > Mark, > > I recompiled the kernel with more stuff as module, but I just had an > idea to make sure the Behringer is the only card in the game: I > disabled HD audio in the firmware settings. So: both Opera and Chrome > play Youtube. aplay plays music files just fine, as it did before. > Audacious also works (it requires modifying the former settings; > that's probably what was missing before). So, I would say everything > works, except stuff like discord. To my shame, I didn't check the logs > with enough attention: it says: > > [000:000] [5256] (audio_device_pulse_linux.cc:1547): failed to load symbol table > [000:000] [5256] (audio_device_pulse_linux.cc:145): failed to > initialize PulseAudio > [000:000] [5256] (audio_device_impl.cc:377): Audio device initialization failed. > > (To my defence: the ebuild does't try to pull pulseaudio; one would > assume that it would be a dependency) > > Hence: no mystery at all, just the usual with linux nowadays. > > I'll keep searching for some audio chat package that works. mumble > seems promising, but it requires an available server. zoom (which most > people @work use) doesn't emerge. slack does emerge and vomits a > totally unresponsive window (well, not *totally* unresponsive: Ctrl+Q > works :)) > > Since you use pulseaudio (per your latest post): can you send the > contents of a wav file to an external DAC via toslink, without > pulseaudio messing with the file? (Most people don't seem to care > whether the signal is first converted to analog, and resampled, and > converted to digital, and whatnot, before leaving the computer...) > > I appreciate the enormous amount of effort you put on this. > Thanks > > Jorge I'll investigate what I can do sending files by hand. However on the USB only machine all the internal sound card hardware is blacklisted so modules aren't loaded. I don't know that I want to upset the environment on that machine very much but a bit more about this at the bottom of this post. A bit of extra info: > First, I have only 1 card, the Focusrite Scarlett. Keep in mind I'm using Kubuntu (KDE) and there is pulseaudio installed. I do not know what role pulseaudio is playing in my sound stack but I assume it's involved. pavucontrol-qt (in KDE) gives me a clear view of what pulseaudio is doing, in case you find out it's installed and running on your system. You probably don't have the qt version on a non-KDE system I suspect. I am tending to trust this link for a description of pulseaudio's purpose. https://superuser.com/questions/144648/how-do-alsa-and-pulseaudio-relate It provides a horizontal VU meter corresponding to what an application is producing. The description seems consistent with Matt's earlier post. Essentially in the old days Alsa itself could only handle one application's audio on each (logical) channel of a given card. This meant you couldn't run two audio apps at the same time unless you mixed the audio in a mixer outside of the machine. The original solution for this problem - say you're playing a CD but want to hear system sounds also - was (I believe) dmix but it was difficult to use for the average desktop user. Anyway, after some time pulseaudio came along as a means of automatically combining lots of software sound sources into a single stream that goes to whatever card you want it to go to. On paper anyway it supports Alsa, Jack and OSS as the underlying audio hardware target and mixes any sound sources that know how to talk to pulseaudio. On my big machine I have a lot more audio hardware enabled: (base) mark@science:~$ cat /proc/asound/cards 0 [DSP ]: H-DSP - Hammerfall DSP RME Hammerfall HDSP 9652 at 0xfbef0000, irq 16 1 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xf9ff8000 irq 37 2 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xfb9fc000 irq 38 (base) mark@science:~$ On this machine all KDE audio (notifications, youtube, vlc, whatever) goes to card 1, the HDA Intel motherboard device. card 0 is 'disabled' in KDE but has Alsa drivers loaded (obviously - it's in the list above) so I can talk to it directly with Mixbus. Essentially KDE and pulseaudio don't even know it's there. My outboard DAC is attached to the HDSP spdif port. KDE audio goes out the headphone port and back into the machine through an 8 channel outboard ADC and is 'mixed' in the HDSP with audio created in my 'creative' environment. There's a bit of extra latency (50ms) doing it this way but it works great. On this machine I'm pretty much free to play with virtual cards and the like which I might do. Anyway, last thing for now would be that I'm still willing and slightly interested in looking at discord/zoom/whatever for my own needs. If I make some headway, or if you want to collaborate in that area let me know, either through gentoo-user of privately. Cheers, Mark --0000000000002ae6ac05a436b0e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Apr 26, 2020 at 12:09 PM Jorge Almeida <= ;jjalmeida@gmail.com> wrote:<= br>>
> On Sun, Apr 26, 2020 at 5:58 PM Mark Knecht <markknecht@gmail.com> wrote:
> &g= t;
> >
> >
> Mark,
>
> I recompiled the= kernel with more stuff as module, but I just had an
> idea to make s= ure the Behringer is the only card in the game: I
> disabled HD audio= in the firmware settings. So: both Opera and Chrome
> play Youtube. = aplay plays music files just fine, as it did before.
> Audacious also= works (it requires modifying the former settings;
> that's proba= bly what was missing before). So, I would say everything
> works, exc= ept stuff like discord. To my shame, I didn't check the logs
> wi= th enough attention: it says:
>
> [000:000] [5256] (audio_devic= e_pulse_linux.cc:1547): failed to load symbol table
> [000:000] [5256= ] (audio_device_pulse_linux.cc:145): failed to
> initialize PulseAudi= o
> [000:000] [5256] (audio_device_impl.cc:377): Audio device initial= ization failed.
>
> (To my defence: the ebuild does't try t= o pull pulseaudio; one would
> assume that it would be a dependency)<= br>>
> Hence: no mystery at all, just the usual with linux nowaday= s.
>
> I'll keep searching for some audio chat package that= works. mumble
> seems promising, but it requires an available server= . zoom (which most
> people @work use) doesn't emerge. slack does= emerge and vomits a
> totally unresponsive window (well, not *totall= y* unresponsive: Ctrl+Q
> works :))
>
> Since you use pul= seaudio (per your latest post): can you send the
> contents of a wav = file to an external DAC via toslink, without
> pulseaudio messing wit= h the file? (Most people don't seem to care
> whether the signal = is first converted to analog, and resampled, and
> converted to digit= al, and whatnot, before leaving the computer...)
>
> I apprecia= te the enormous amount of effort you put on this.
> Thanks
>> Jorge

I'll investigate what I can do sending f= iles by hand. However on the USB only machine all the internal sound card h= ardware is blacklisted so modules aren't loaded. I don't know that = I want to upset the environment on that machine very much but a bit more ab= out this at the bottom of this post.

A bit of extr= a info:

<SNIP>
> First, I have only 1 = card, the Focusrite Scarlett. Keep in mind I'm using Kubuntu (KDE) and = there is pulseaudio installed. I do not know what role pulseaudio is playin= g in my sound stack but I assume it's involved.
<SNIP>
pavucontrol-qt (in KDE) gives me a clear view of what pulseaudi= o is doing, in case you find out it's installed and running on your sys= tem. You probably don't have the qt version on a non-KDE system I suspe= ct.

I am tending to trust this link for a de= scription of pulseaudio's=C2=A0purpose.=C2=A0


It provides a horizontal VU meter = corresponding to what an application is producing.

The=C2=A0description seems consistent with Matt's earlier post. Essent= ially in the old days Alsa itself could only handle one application's a= udio on each (logical) channel of a given card. This meant you couldn't= run two audio apps at the same time unless you mixed the audio in a mixer = outside of the machine. The original solution for this problem - say you= 9;re playing a CD but want to hear system sounds also - was (I believe) dmi= x but it was difficult to use for the average desktop user. Anyway, after s= ome time pulseaudio came along as a means of automatically combining lots o= f software sound sources into a single stream that goes to whatever card yo= u want it to go to. On paper anyway it supports Alsa, Jack and OSS as the u= nderlying audio hardware target and mixes any sound sources that know how t= o talk to pulseaudio.=C2=A0

On my big machine I ha= ve a lot more audio hardware enabled:

(base) <= span style=3D"font-weight:bold;color:rgb(84,255,84)">mark@science:~$ cat /proc/asoun= d/cards
0 [DSP =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0]: H-DSP - Hammerfall DSP
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0RME Hammerfall HDS= P 9652 at 0xfbef0000, irq 16
1 [Intel =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0]: HDA-= Intel - HDA Intel
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0HDA Intel at 0xf9f= f8000 irq 37
2 [NVidia =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0]: HDA-Intel= - HDA NVidia
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0HDA NVidia at 0xfb= 9fc000 irq 38
(base) mark@scien= ce:~$


On this machine all KDE audio= (notifications, youtube, vlc, whatever) goes to card 1, the HDA Intel moth= erboard device. card 0 is 'disabled' in KDE but has Alsa drivers lo= aded (obviously - it's in the list above) so I can talk to it directly = with Mixbus. Essentially KDE and pulseaudio don't even know it's th= ere. My outboard DAC is attached to the HDSP spdif port. KDE audio goes out= the headphone port and back into the machine through an 8 channel outboard= ADC and is 'mixed' in the HDSP with audio created in my 'creat= ive' environment. There's a bit of extra latency (50ms) doing it th= is way but it works great. On this machine I'm pretty much free to play= with virtual cards and the like which I might do.

Anywa= y, last thing for now would be that I'm still willing and slightly inte= rested in looking at discord/zoom/whatever for my own needs. If I make some= headway, or if you want to collaborate in that area let me know, either th= rough gentoo-user of privately.

Cheers,
= Mark=C2=A0

--0000000000002ae6ac05a436b0e8--