Re: [PATCH 1/8] ALSA: rawmidi: Expose the tied device number in info ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 14 Jan 2025 11:25:05 +0100,
Jaroslav Kysela wrote:
> 
> On 10. 01. 25 16:59, Takashi Iwai wrote:
> > The UMP legacy rawmidi is derived from the UMP rawmidi, but currently
> > there is no way to know which device is involved in other side.
> > 
> > This patch extends the rawmidi info ioctl to show the tied device
> > number.  As default it stores -1, indicating that no tied device.
> 
> Seeing the alsa-lib changes, it may be probably better to keep zero as
> unknown and define this field as (device number + 1) to avoid bad
> interpretation for older kernels without protocol version checks.

It might be safer, yes, although it'd need an extra interpretation.
But maybe the safety should win.

OK, I'll submit the patch to update it before 6.14.


thanks,

Takashi




[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux