On Thu, 07 Sep 2023 18:52:40 +0200, Randy Li wrote:
Hello All
I am trying to refresh the ttymidi project, I have sent the merge request to support the midi baudrate.
The problem is the sound card in my PC is too new that it doesn't have a midi input(I think the old hardware does).
amidi -l would report:
"cannot determine device number: Inappropriate ioctl for device"
I think it is SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE won't work here.
Could I still use snd_seq_open() to create a midi client to the system's sound card.
Or I should try something different to make midi input work?
The situation isn't really clear to me, just a wild guess: you're running a sequencer client and want to expose it as a (virtual) MIDI device that is accessed via rawmidi API? If so, you can use snd-virmidi driver and bind a sequencer client:port to a virtual rawmidi device.
Takashi