LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot open port "default": Inappropriate ioctl for device (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-open-port-default-inappropriate-ioctl-for-device-4175418617/)

hitsware 07-25-2012 11:00 AM

cannot open port "default": Inappropriate ioctl for device
 
How does one resolve this ?

kauuttt 07-26-2012 05:39 AM

Please explain in details about the issue you are seeing.

hitsware 07-26-2012 07:54 AM

tc@box:~$ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0x90320000 irq 46

tc@box:~$ cat /proc/asound/devices
1: : sequencer
2: [ 0- 1]: digital audio playback
3: [ 0- 0]: digital audio playback
4: [ 0- 0]: digital audio capture
5: [ 0- 2]: hardware dependent
6: [ 0] : control
33: : timer

tc@box:~$ cat /proc/asound/seq/clients
Client info
cur clients : 3
peak clients : 3
max clients : 192

Client 0 : "System" [Kernel]
Port 0 : "Timer" (Rwe-)
Port 1 : "Announce" (R-e-)
Connecting To: 15:0
Client 14 : "Midi Through" [Kernel]
Port 0 : "Midi Through Port-0" (RWe-)
Client 15 : "OSS sequencer" [Kernel]
Port 0 : "Receiver" (-we-)
Connected From: 0:1

tc@box:~$ # seems hooked up ?

tc@box:~$ amidi -S "90 3C 7F"
cannot open port "default": Inappropriate ioctl for device

Sydney 07-26-2012 08:47 AM

I really don't know anything about this, but docs say default port is set in the configs and -p can be used to feed a port in.

Quote:

-p, --port=name
Sets the name of the ALSA RawMIDI port to use. If this is not
specified, amidi uses the default port defined in the configura‐
tion file (the default for this is port 0 on card 0, which may
not exist).

Quote:

EXAMPLES
amidi -p hw:0 -s my_settings.syx
will send the MIDI commands in my_settings.syx to port hw:0.

amidi -S F0 43 10 4C 00 00 7E 00 F7
sends an XG Reset to the default port.

amidi -p hw:1,2 -S F0411042110C000000000074F7 -r dump.syx -t 1
sends a “Parameter Dump Request” to a GS device, saves the
received parameter data to the file dump.syx, and stops after
the device has finished sending data (when no data has been
received for one second).

amidi -p virtual -d
creates a virtual RawMIDI port and prints all data sent to this
port.


pulled these off of http://manpages.ubuntu.com/manpages/...1/amidi.1.html


All times are GMT -5. The time now is 05:48 AM.