<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Someone on the Ardour forums reported  very strange zita_a2j behavior recently, where the signal level is much higher when using zita_a2j or the zalsa_in internal client than it is when using jackd directly.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I suggested that poster describe the problem on the LAU list, but he was still not able to get a list join confirmation from attempting to add his address to the list yet.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><br />I have also managed to duplicate the problem, so I will link to the original problem description, then describe my setup and observed behavior.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Originally posted as "Zita-a2j is way too hot!" here:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><a href="https://discourse.ardour.org/t/zita-a2j-is-way-too-hot/108040/6">https://discourse.ardour.org/t/zita-a2j-is-way-too-hot/108040/6</a></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">My setup:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">My setup:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Lexicon USB interface as primary</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Focusrite Solo (also USB) as second interface</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">My typical settings for primary interface:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">48k sample rate, 1024 frames/period, 3 periods/buffer</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Process to duplicate:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Started Lexicon interface with qjackctl, 48k/1024/3 settings.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Using JK meter to measure levels, K20 scale.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Connected both channels of Lexicon to JK meter, set level so that</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">average from synth note was around 0, peaking around +10.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Stopped jackd on Lexixon, started jackd on Focusrite, and set level so</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">that single channel of synth connected to Focusrite input  was</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">approximately the same.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">After stopping jackd on Focusrite, starting jackd on Lexicon again,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">verified that left channel was still at same amplitude as previously verified.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Loaded zalsa_in for Focusrite Solo interface with:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">jack_load Solo zalsa_in -i "-d hw:USB -r 48000"</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Connecting Focusrite input from zalsa_in to JK Meter showed just idle output</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">noise level at around -5dB, with peaks around +8 dB. Synth note is still</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">around 0dB on Lexicon channel, but is now at least +18 dB in zalsa channel.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I verified the same behavior when explicitly giving a period size with:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#000000;"><span style="background-color:#ffffff;"><span style="font-family:monospace;">jack_load Solo zalsa_in -i "-d hw:USB -r 48000 -p 512 -n 3"</span></span></span><br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I see exactly the same behavior when using zita-a2j as the client with:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#000000;"><span style="background-color:#ffffff;">zita-a2j -d hw:USB -r 48000 -p 512 -n 3</span></span><br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I have the latest released jackd version:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#000000;"><span style="background-color:#ffffff;">$ jackd --version </span></span><br />jackdmp version 1.9.21</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">The jackd build is from the Fedora repository, although they usually do a pretty good job not breaking anything in the build.  The original report was using Ubuntu 22.04.  I think that release of Ubuntu has jackd 1.9.20, which seems to indicate this is not a distribution specific problem.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">My previous experience with Fons's software is that it is pretty bullet proof, so I'm surprised to see the same strange behavior out of zita-a2j.  </p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I don't see anything unusual in the way the devices are opened, looks like standard format S243LE for the older Lexicon device and S32LE for the newer Focusrite device:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#000000;"><span style="background-color:#ffffff;">Card 0 (Lambda): </span></span><br /> * Playback Device 0 (USB Audio): <br />   - Subdevice 0 (hw:Lambda,0,0): <br />     used by: jackdbus (PID 121752) <br />     access: MMAP_INTERLEAVED <br />     format: S24_3LE <br />     subformat: STD <br />     channels: 2 <br />     rate: 48000 (48000/1) <br />     period_size: 1024 <br />     buffer_size: 3072 <br /><br /> * Recording Device 0 (USB Audio): <br />   - Subdevice 0 (hw:Lambda,0,0): <br />     used by: jackdbus (PID 121752) <br />     access: MMAP_INTERLEAVED <br />     format: S24_3LE <br />     subformat: STD <br />     channels: 2 <br />     rate: 48000 (48000/1) <br />     period_size: 1024 <br />     buffer_size: 3072<br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#000000;"><span style="background-color:#ffffff;">Card 2 (USB): </span></span><br /> * Playback Device 0 (USB Audio): <br />   - Subdevice 0 (hw:USB,0,0): <br />     closed <br /><br /> * Recording Device 0 (USB Audio): <br />   - Subdevice 0 (hw:USB,0,0): <br />     used by: zita-a2j (PID 130423) <br />     access: MMAP_INTERLEAVED <br />     format: S32_LE <br />     subformat: STD <br />     channels: 2 <br />     rate: 48000 (48000/1) <br />     period_size: 512 <br />     buffer_size: 1536<br /></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Any thoughts on what is going on, or how to debug?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Chris Caudle</p>
<br /></body>
</html>