<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I’m into a rather unusual problem, and would like a
pointer towards how to diagnose the issue further.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have 4 soundcards with 8 channels each (drivers are not in
the Alsa tree yet), which are sync’d together to behave as one sound
card.<o:p></o:p></p>
<p class=MsoNormal>The interrupts on all but the master are disabled. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I can clearly play sound with aplay on all 32 channels. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>However, when I play the 4 cards using qjackctl and ardour2,
I get distortion on the first 24 channels, and only static/white noise on the
last 8. The last 8 channels sound like a bad guitar cord that is
being wiggled around.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Has anyone run into anything similar to this? The
driver writes to the /var/log/messages file, and everything looks good there,
and also looks good in Jack (no XRUNS, etc). If you have a clean ‘divide
and conquer’ idea, I’m all ears.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>TIA,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Mike Mazarick<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Here’s and example of the /var/log/messages file (while
setup for 512 frames/period and 4 periods/buffer in qjackctl):<o:p></o:p></p>
<p class=MsoNormal>…<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:04 localhost kernel: pci_gl824_probe
vendor=0x10b5 device=0x2108 subvendor=0x2020 subdevice=0x840<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:04 localhost kernel: pci_gl824_probe
vendor=0x10b5 device=0x2108 subvendor=0x2020 subdevice=0x840<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:04 localhost kernel: ACPI: PCI Interrupt
0000:05:00.0[A] -> GSI 16 (level, low) -> IRQ 16<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:04 localhost kernel: api_gl824_request_card
index 0<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:04 localhost kernel: api_gl824_map_regions<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:04 localhost kernel: uart_gl824_initialize<o:p></o:p></p>
<p class=MsoNormal>…<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:09 localhost kernel:
pld_gl824_disable_audio_interrupts<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:09 localhost kernel:last message repeated 3
times<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:09 localhost kernel:
api_gl824_find_input_clocks 1 ---> 0<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:09 localhost kernel:
api_gl824_find_input_clocks 3 ---> 1<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:09 localhost kernel:
api_gl824_find_input_clocks 2 ---> 3<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:09 localhost kernel:
api_gl824_find_input_clocks card 3 is a master, enabling interrupts for it<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:18:09 localhost kernel:
pld_gl824_enable_audio_interrupts<o:p></o:p></p>
<p class=MsoNormal>…<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:19:34 localhost kernel: pcm_gl824_output_prepare
Attempting to allocate 32 channels GL mode N32<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:19:34 localhost kernel: pcm_gl824_output_prepare
Card channels 0..31 allocated to substream<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:19:34 localhost kernel: pcm_gl824_output_trigger 1<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: pcm_gl824_output_trigger 0<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: api_gl824_stop Master
card's clock position stopped at 1<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: api_gl824_stop Slave
card's clock position stopped at 1<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel:last message repeated 2
times<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: api_gl824_stop ISR took
between 181 and 272 samples<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: api_gl824_stop Buffer
transfers TO CARD within ISR took between 180 and 271 samples<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: api_gl824_stop Buffer
transfers FROM CARD within ISR took between 0 and 1 samples<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: pcm_gl824_output_hw_free<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: pcm_gl824_output_hw_free<o:p></o:p></p>
<p class=MsoNormal>Jan 12 22:22:54 localhost kernel: pcm_gl824_output_close<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>