From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guido Trentalancia Subject: Re: Hercules P32 DJ: severe sound distortion during MIDI transfers Date: Fri, 22 Mar 2019 17:54:15 +0100 (CET) Message-ID: <1403135277.60450.1553273655446@pim.register.it> References: <1553114844.12865.6.camel@trentalancia.com> <1335514032.30698.1553207267014@pim.register.it> <53EC51B6-618E-47B4-95E8-B24BECEEBC98@trentalancia.com> <1553262288.26146.4.camel@trentalancia.com> <30e9cb6f-2bd5-292e-beb4-e49aad2db747@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from webmailsmtp.register.it (webmailsmtp12.register.it [81.88.56.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 87A7AF89670 for ; Fri, 22 Mar 2019 17:54:16 +0100 (CET) In-Reply-To: <30e9cb6f-2bd5-292e-beb4-e49aad2db747@ladisch.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Clemens Ladisch Cc: Takashi Iwai , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org Hello again Clemens. > Il 22 marzo 2019 alle 15.06 Clemens Ladisch ha scritto: > > > Guido Trentalancia wrote: > > Also, the hardware is the same: Hercules P32 DJ (with exactly the same > > firmware version 1.46 which is the latest). > > Are the USB controllers the same (2.0/3.x, OHCI/UHCI/EHCI/xHCI)? > > You wrote that "amidi -p hw:2,0,0 -d" causes the problem. As long as no > MIDI messages are actually received, the kernel or driver cannot affect > what happens on the USB bus; the polling is done entirely by the host > controller. I have double-checked this too and I can now confirm: "amidi -p hw:2,0,0 -d" does not increase the RX/TX (I/O) bytes count in /proc/asound/card2/midi0. So, what kind of operation does amidi trigger in the kernel which causes the problem ? What does it actually do ? I saw you wrote the ALSA USB MIDI driver (sound/usb/midi.c). But the MIDI seems to run fine, I can receive (RX) data from the controller fine. It is the audio part (card.c, pcm.c, clock.c and so on) that is being disturbed by simultaneous MIDI operation ! What do you say ? > Regards, > Clemens