Skip to contentSkip to conversation

: MIDI fails with "cmd: 0xff failed at 0x300 (status = 0xff, data = 0xff)"

ALSA - driver 0000156 [email protected] 1 participant 1 message Mar 28, 2005

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=156>
======================================================================
Reported By: gwittenburg
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   156
Category:                   PCI - intel8x0
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               Debian testing/unstable
Kernel Version:             2.6.4
======================================================================
Date Submitted:             03-24-2004 06:07 CET
Last Modified:              03-28-2005 04:10 CEST

======================================================================
Summary: MIDI fails with "cmd: 0xff failed at 0x300 (status =
0xff, data = 0xff)"
Description:
MIDI playback with aplaymidi doesn't produce any output with all channels turned on in alsamixer. While aplaymidi is running a quiet, high-pitched sound is comming from some part in the laptop. The following two lines appear in dmesg:

cmd: 0xff failed at 0x300 (status = 0xff, data = 0xff)
cmd: 0x3f failed at 0x300 (status = 0xff, data = 0xff)

The same happens if the snd-intel8x0 module was inserted with mpu_port=0x330. (btw, usually I would have expected one of these two to fail...) snd_rawmidi is loaded with midi_map=0.
======================================================================

----------------------------------------------------------------------
gwittenburg - 03-25-04 02:32
----------------------------------------------------------------------
Thanks for the clarification and the time you're spending on this.

I've sat down and read the code. In drivers/mpu401/mpu401_uart.c, snd_mpu401_uart_new() actually does probe the hardware and returns an error which would cause snd_intel8x0_probe() in pci/intel8x0.c to print something like "intel8x0: no UART401 device at 0x%x, sk ipping.\n" If my hardware doesn't support mpu401, I'd definately expect that line to appear in the syslog.

In my humble and ad-hoc opinion, the problem is that snd_mpu401_uart_new() doesn't really try to access the hardware. If a snd_mpu401_uart_cmd(mpu, MPU401_RESET, 0); was performed near the end of that function (and if snd_mpu401_uart_cmd() had a return value) it would be easy to tell whether the hardware is actually there or not.

Again, this is of course my very own ad-hoc and uneducated opinion and feedback from your side if very welcome. If you think the proposed solution has any merit, I'll try to come up with a patch that addresses this issue.

----------------------------------------------------------------------
jdthood - 03-28-05 04:10
----------------------------------------------------------------------
Submitter: Does this problem still exist with current ALSA versions?

Issue History
Date Modified Username Field Change
======================================================================
03-24-04 06:07 gwittenburg New Issue
03-24-04 06:07 gwittenburg Distribution => Debian
testing/unstable

03-24-04 06:07 gwittenburg    Kernel Version            => 2.6.4           
03-24-04 06:11 gwittenburg    Issue Monitored: gwittenburg                    
03-24-04 10:02 perex          Note Added: 0000696                          
03-24-04 13:10 gwittenburg    Note Added: 0000700                          
03-24-04 15:04 perex          Note Added: 0000701                          
03-25-04 02:32 gwittenburg    Note Added: 0000704                          
03-28-05 04:10 jdthood        Note Added: 0004231                          

======================================================================

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click