Re: Does alsa_in reading from SPDIF input inject pops and clicks?
crocket <[email protected]> Sat, 10 Aug 2019 07:44:51 +0900
| Newsgroups | gmane.comp.audio.jackit |
|---|---|
| Message-ID | <CAL0=0H2xqGYVzeAN8fWUB8wRvVKeNx7JG4niH6ei0M4hh3Atbw@mail.gmail.com> |
--===============2552665993296908573== Content-Type: multipart/alternative; boundary="000000000000c822ef058fb6ec59" --000000000000c822ef058fb6ec59 Content-Type: text/plain; charset="UTF-8" I'm trying to share speakers with my desktop computer and Raspberry Pi 3 B+. Both machines should be able to play audio simultaneously. --> is a connection that doesn't cross the boundary of a computer. ==> is a connection that occurs between two computers. Anything that doesn't cross ==> occurs on my desktop computer. Anything that happens after ==> occurs on Raspberry Pi 3 B+. netjack1 runs on my desktop computer. Ethernet cable is the only cable that connects two machines. 1. ALSA dmix --> SPDIF out of Realtek ALC887 onboard soundcard --> SPDIF In of X-Fi HD USB --(alsa_in or zita-a2j)--> netjack1 ==(ethernet cable)==> ALSA jack backend --> I2S Amplifier(HiFiBerry Amp2) --> Speakers 2. netjack1 --(alsa_out or zita-j2a)--> headphone jack of X-Fi HD USB on my desktop computer --> headphones netjack1 can route audio to either headphones or HiFiBerry Amp2. I can control routing via a keyboard shortcut. netjack1 can accept audio from alsa_in, zita-a2j, or just regular JACK clients like mpv. Here are questions. 1. If SPDIF out of Realtek ALC887 onboard soundcard stops emitting clock signals, would the following audio route cause pops and clicks in alsa_out or zita-j2a? mpv --> netjack1 --(alsa_out or zita-j2a)--> headhpone jack of X-Fi HD USB --> headphones I suspect that if SPDIF out doesn't emit clock signals and the clock source for X-Fi HD is SPDIF, alsa_out can misbehave. If SPDIF out may not emit clock signals in the absence of audio signals, everything should be routed via SPDIF out. 2. If SPDIF out stops emitting clock signals in the absence of audio signals and starts emitting them again in the presence of audio signals, can alsa_in or alsa_out be confused and inject pops and clicks into audio? On Fri, Aug 9, 2019 at 11:08 PM Chris Caudle <[email protected]> wrote: > On Thu, August 8, 2019 10:31 pm, crocket wrote: > > If SPDIF Out stops emitting clock signals in the absence of audio > signals, > > would alsa_out working on the headphone jack of the USB soundcard that > > gets its clock signals from SPDIF Out emit pops and clicks? > > The USB audio interface is getting clock from the S/PDIF input, but the > audio is coming from USB, not from the S/PDIF input? > Can that configuration be set with the controls available for the Sound > Blaster device you mentioned? > > > 1. ALSA dmix(period size 512, periods 3) --> SPDIF Out of onboard > > soundcard(Realtek ALC887) --> SPDIF In of Creative Sound Blaster X-Fi HD > > USB --(alsa_in, period_size 512, periods 3)--> netjack1 ==(ethernet)==> > > ALSA jack backend --> Amplifier --> Speakers > > 2. netjack1 --(alsa_out, period_size 512, periods 3)--> headphones > > This description is a little bit confusing regarding where the machine > separations occur. > > So the onboard sound card is on one computer, the Sound Blaster X-Fi is > connected to a second computer? And that second computer drives speakers > via the X-Fi output, and is also connected via Ethernet to a third > computer? > It is not clear where the netjack connection comes in, for the connection > labeled with a "2." it shows netjack to alsa-out, but it is not clear > which physical interface drives the headphones. > > Perhaps a description of the physical connections of which computer is > connected to which interface would help, along with a description again of > what you are trying to achieve. You probably described that before, but > I think it has been some number of weeks, I'm not sure I could find the > original email. > > -- > Chris Caudle > > > > > _______________________________________________ > Jack-Devel mailing list > [email protected] > http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org > --000000000000c822ef058fb6ec59 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I'm trying to share speakers with my desktop comp= uter and Raspberry Pi 3 B+. Both machines should be able to play audio simu= ltaneously.</div><div><br></div><div>--> is a connection that doesn'= t cross the boundary of a computer.</div><div>=3D=3D> is a connection th= at occurs between two computers.</div><div><br></div><div>Anything that doe= sn't cross =3D=3D> occurs on my desktop computer. Anything that happ= ens after =3D=3D> occurs on Raspberry Pi 3 B+.</div><div>netjack1 runs o= n my desktop computer. Ethernet cable is the only cable that connects two m= achines.</div><div><br></div><div>1. ALSA dmix --> SPDIF out of Realtek = ALC887 onboard soundcard --> SPDIF In of X-Fi HD USB --(alsa_in or zita-= a2j)--> netjack1 =3D=3D(ethernet cable)=3D=3D> ALSA jack backend --&g= t; I2S Amplifier(HiFiBerry Amp2) --> Speakers</div><div>2. netjack1 --(a= lsa_out or zita-j2a)--> headphone jack of X-Fi HD USB on my desktop comp= uter --> headphones</div><div><br></div><div>netjack1 can route audio to= either headphones or HiFiBerry Amp2. I can control routing via a keyboard = shortcut.</div><div>netjack1 can accept audio from alsa_in, zita-a2j, or ju= st regular JACK clients like mpv.</div><div><br></div><div>Here are questio= ns.</div><div><br></div><div>1. If SPDIF out of Realtek ALC887 onboard soun= dcard stops emitting clock signals, would the following audio route cause p= ops and clicks in alsa_out or zita-j2a?</div><div>mpv --> netjack1 --(al= sa_out or zita-j2a)--> headhpone jack of X-Fi HD USB --> headphones</= div><div>I suspect that if SPDIF out doesn't emit clock signals and the= clock source for X-Fi HD is SPDIF, alsa_out can misbehave. If SPDIF out ma= y not emit clock signals in the absence of audio signals, everything should= be routed via SPDIF out.</div><div>2. If SPDIF out stops emitting clock si= gnals in the absence of audio signals and starts emitting them again in the= presence of audio signals, can alsa_in or alsa_out be confused and inject = pops and clicks into audio?</div></div><br><div class=3D"gmail_quote"><div = dir=3D"ltr" class=3D"gmail_attr">On Fri, Aug 9, 2019 at 11:08 PM Chris Caud= le <<a href=3D"mailto:[email protected]">[email protected]</a>&g= t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p= x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu= , August 8, 2019 10:31 pm, crocket wrote:<br> > If SPDIF Out stops emitting clock signals in the absence of audio sign= als,<br> > would alsa_out working on the headphone jack of the USB soundcard that= <br> > gets its clock signals from SPDIF Out emit pops and clicks?<br> <br> The USB audio interface is getting clock from the S/PDIF input, but the<br> audio is coming from USB, not from the S/PDIF input?<br> Can that configuration be set with the controls available for the Sound<br> Blaster device you mentioned?<br> <br> > 1. ALSA dmix(period size 512, periods 3) --> SPDIF Out of onboard<b= r> > soundcard(Realtek ALC887) --> SPDIF In of Creative Sound Blaster X-= Fi HD<br> > USB --(alsa_in, period_size 512, periods 3)--> netjack1 =3D=3D(ethe= rnet)=3D=3D><br> > ALSA jack backend --> Amplifier --> Speakers<br> > 2. netjack1 --(alsa_out, period_size 512, periods 3)--> headphones<= br> <br> This description is a little bit confusing regarding where the machine<br> separations occur.<br> <br> So the onboard sound card is on one computer, the Sound Blaster X-Fi is<br> connected to a second computer?=C2=A0 And that second computer drives speak= ers<br> via the X-Fi output, and is also connected via Ethernet to a third<br> computer?<br> It is not clear where the netjack connection comes in, for the connection<b= r> labeled=C2=A0 with a "2." it shows netjack to alsa-out, but it is= not clear<br> which physical interface drives the headphones.<br> <br> Perhaps a description of the physical connections of which computer is<br> connected to which interface would help, along with a description again of<= br> what you are trying to achieve.=C2=A0 =C2=A0You probably described that bef= ore, but<br> I think it has been some number of weeks, I'm not sure I could find the= <br> original email.<br> <br> -- <br> Chris Caudle<br> <br> <br> <br> <br> _______________________________________________<br> Jack-Devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Jack-De= [email protected]</a><br> <a href=3D"http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org= " rel=3D"noreferrer" target=3D"_blank">http://lists.jackaudio.org/listinfo.= cgi/jack-devel-jackaudio.org</a><br> </blockquote></div> --000000000000c822ef058fb6ec59-- --===============2552665993296908573== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Jack-Devel mailing list [email protected] http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org --===============2552665993296908573==--