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 8D9791382C5 for ; Sun, 23 May 2021 17:42:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DAC35E086E; Sun, 23 May 2021 17:42:29 +0000 (UTC) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (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 8EFA0E083B for ; Sun, 23 May 2021 17:42:29 +0000 (UTC) Received: by mail-qt1-x831.google.com with SMTP id h21so19105683qtu.5 for ; Sun, 23 May 2021 10:42:29 -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=bWKY3zVPtEHWFjNd4GqY3P4vucxRWPvhAy3jUkoW4rg=; b=DEP43VsHHHkzx4Tl2M926hhrZdwRdSrsK+FRt1IOrKl1fEi67sI2ZrVcSGZaAWblRO h2pU9rhrrmjKLYIVJonigWs9T59d0ozPb/3cUdYVZnm+K8438NMBPz7O0pS11HiQ+HF9 Uy4coVfdPYEFk0+lIIOgR+ArBNWgSTyD0huKY5oHyBXvnbt+tnMeg836aQNGIdPXG/aN 4d3CFisHcxHuD4IKLyq873d1Gm5pCSxBlU+T3wtKAhTQai1NUUyiok7XN513RldaGBig lpqAERweN1dt2bD5jmDnkgYJuuvnG7Eu2vAUxR1q+GF+2C6Zzjs+9d6ItTWS/74CX/// P3ZA== 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=bWKY3zVPtEHWFjNd4GqY3P4vucxRWPvhAy3jUkoW4rg=; b=bJymqvyaK2s4NTrJnwD+WTaOfZnMfHn2kxkvEWOnkwuWaKg65KkUugnLSOQ19S5qW/ wV4NvNesymnSjL2Q67zX3CMraK9SJ3wwIsu6mGdmjChL5zC/flGoE9OJoVk6TxCKIhnS N3rNzyeFkjYSO9lqLKSoNpiqxbhlVwrUVI8PXHc8paiNu2PC0RDC5tu30XlhH1SqURKJ assdkHxi5Yl3a7jquWanoisreTwHRyQ0+bbKFMqLz8T/sbvo0pBF5ZRcyhtt/8tTKkiW AcPB8DJ0zrZbYZuzPXbA7eUt48jrQkKP+yU1Te3+MkjGAH1DlLEZuQ8o0Vggxxii+36k Ch6w== X-Gm-Message-State: AOAM531solMYVoKr7X0GpDY1YgvPCOaHNCxDMk7Dw4B2rpZUZNuYhpyl d3299q62YsuQhDn5SwPDhRw88eZGAn4WJ5njZY+18IcVsfDU2g== X-Google-Smtp-Source: ABdhPJw8PiItyXhC9AOoahuMMTIYUX+HS1vNyNFAqc2aqHcTu1MurBUbSXuWK1J1XnxNBywdcLloX2peO50GQgP3VcM= X-Received: by 2002:a05:622a:30e:: with SMTP id q14mr22383381qtw.278.1621791748495; Sun, 23 May 2021 10:42:28 -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: <06528823-cd73-4c13-e6de-0ee2e38631df@gmail.com> In-Reply-To: <06528823-cd73-4c13-e6de-0ee2e38631df@gmail.com> From: Mark Knecht Date: Sun, 23 May 2021 10:42:17 -0700 Message-ID: Subject: Re: [gentoo-user] Audio through second HDMI output on GPU? To: Gentoo User Content-Type: multipart/alternative; boundary="000000000000119c9f05c302d1d4" X-Archives-Salt: e5a6303f-7592-4fd5-a74e-248ad56a186b X-Archives-Hash: 1ac4f7c6eec0fc743be6443caa5a8a61 --000000000000119c9f05c302d1d4 Content-Type: text/plain; charset="UTF-8" On Sun, May 23, 2021 at 10:09 AM Dale wrote: > > Arve Barsnes wrote: > > On Sun, 23 May 2021 at 18:22, Dale wrote: > >> If you ever figure it out, please post what did it. I watch TV from my > >> puter too. Right now, I tell Smplayer to send audio to the TV by giving > >> it the device name like you did. Thing is, none of the entries in the > >> drop down menu in settings works. Odd but it is what it is. > > Might be worth checking if the smplayer front-end is messing something > > up, by going straight through mpv. My last steps for playing video > > through the TV, with the audio going there as well: > > > > Get a list of all the audio devices on your system. > > $ mpv --audio-device=help > > > > Use the correct device in your video command. > > DISPLAY=:0.1 mpv --audio-device=alsa/hdmi:CARD=NVidia,DEV=0 -fs video.mkv > > > > Also check what Mark mentioned about muted channels on the output card > > through alsamixer. > > > > Regards, > > Arve > > > > > > > When I set mine up, I just set output driver to user defined and entered > alsa:device=hw=1.7 in settings. I only want Smplayer to output to the > TV. Everything else goes to the speakers hooked to the computer itself. > > The day may come when I use something other than Smplayer to watch TV > tho. If, or when, that day comes I'll have to figure out how to get the > audio to work with it. Right now, I'm still able to use the old gnome > player still. It's going to die one day tho since it is no longer > maintained. > > I do find these audio topics interesting tho. It seems it should be > easy to send sound to any place it can go but it isn't easy to do for > real. It seems it is a problem for a lot of people doing what I think > is at least somewhat common. > > Either way, glad you got it working. It took me days to figure out mine > too. > > Dale > > :-) :-) Dale and Arve, As I do home studio type recording using Linux I always find this topic quite interesting but because of the more complicated setup of my audio environment which makes use of a Hammerfall DSP card driving the speaker but utilizes the internal Intel sound card for general audio, along with cables outside to hook the two together, I'm just not sure what I see on my system is very helpful to you two. Nonetheless I do have an older NVidia GPU and would like to understand what's going on with all of this. A couple of requests: 1) instead of aplay -l please run aplay -L 2) Also provide the output of cat /proc/asound/card2/codec#0 Note: Your card number may well be different than mine card0=Hammerfall, card1=Internal Intel sound, card2=NVidia Also, there is an old (2014) document online from NVidia that provides a lot of info on Alsa device naming and how NVidia GPUs handle audio. It's one of the better ones I've found online making the dangerous assumption that it hasn't all changed. There's lots of info in this document about system config edits for non-pulseaudio users and things that might possibly be of interest to Gentoo users with configuration more like Arve's, but again, that's a guess on my part. https://download.nvidia.com/XFree86/gpu-hdmi-audio-document/ No rush on any of this. Thanks, Mark --000000000000119c9f05c302d1d4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, May 23, 2021 at 10:09 AM Dale <rdalek1967@gmail.com> wrote:
>= ;
> Arve Barsnes wrote:
> > On Sun, 23 May 2021 at 18:22, Da= le <rdalek1967@gmail.com>= wrote:
> >> If you ever figure it out, please post what did it= .=C2=A0 I watch TV from my
> >> puter too.=C2=A0 Right now, I t= ell Smplayer to send audio to the TV by giving
> >> it the devi= ce name like you did.=C2=A0 Thing is, none of the entries in the
> &g= t;> drop down menu in settings works.=C2=A0 Odd but it is what it is.> > Might be worth checking if the smplayer front-end is messing som= ething
> > up, by going straight through mpv. My last steps for pl= aying video
> > through the TV, with the audio going there as well= :
> >
> > Get a list of all the audio devices on your sys= tem.
> > $ mpv --audio-device=3Dhelp
> >
> > Use= the correct device in your video command.
> > DISPLAY=3D:0.1 mpv = --audio-device=3Dalsa/hdmi:CARD=3DNVidia,DEV=3D0 -fs video.mkv
> >=
> > Also check what Mark mentioned about muted channels on the ou= tput card
> > through alsamixer.
> >
> > Regards= ,
> > Arve
> >
> >
>
>
> When = I set mine up, I just set output driver to user defined and entered
>= alsa:device=3Dhw=3D1.7 in settings.=C2=A0 I only want Smplayer to output t= o the
> TV.=C2=A0 Everything else goes to the speakers hooked to the = computer itself.
>
> The day may come when I use something oth= er than Smplayer to watch TV
> tho.=C2=A0 If, or when, that day comes= I'll have to figure out how to get the
> audio to work with it.= =C2=A0 Right now, I'm still able to use the old gnome
> player st= ill.=C2=A0 It's going to die one day tho since it is no longer
> = maintained.
>
> I do find these audio topics interesting tho.= =C2=A0 It seems it should be
> easy to send sound to any place it can= go but it isn't easy to do for
> real.=C2=A0 It seems it is a pr= oblem for a lot of people doing what I think
> is at least somewhat c= ommon.
>
> Either way, glad you got it working.=C2=A0 It took m= e days to figure out mine
> too.
>
> Dale
>
>= ; :-) =C2=A0:-)

Dale and Arve,
=C2=A0 =C2=A0As= I do home studio type recording using Linux I always find this topic quite= interesting but because of the more complicated setup of my audio environm= ent which makes use of a Hammerfall DSP card driving the speaker but utiliz= es the internal Intel sound card for general audio, along with cables outsi= de to hook the two together, I'm just not sure what I see on my system = is very helpful to you two. Nonetheless=C2=A0I do have an older NVidia GPU = and would like to understand what's going on with all of this.

=C2=A0 =C2=A0A couple of requests:

1) instead of aplay -l please run aplay -L

2) Al= so provide the output of=C2=A0

cat /proc/asound/ca= rd2/codec#0

Note: Your card number may well be dif= ferent than mine card0=3DHammerfall, card1=3DInternal Intel sound, card2=3D= NVidia

=C2=A0 =C2=A0Also, there is an old (2014) d= ocument online from NVidia that provides a lot of info on Alsa device namin= g and how NVidia GPUs handle audio. It's one of the better ones I'v= e found online making the dangerous assumption that it hasn't all chang= ed. There's lots of info in this document about system config edits for= non-pulseaudio users and things that might possibly be of interest to Gent= oo users with configuration more like Arve's, but again, that's a g= uess on my part.


=C2=A0 =C2=A0No = rush on any of this.

Thanks,
Mark
<= /div> --000000000000119c9f05c302d1d4--