<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/sound/core/ump.c, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-01-14T15:52:07Z</updated>
<entry>
<title>ALSA: rawmidi: Make tied_device=0 as default / unknown</title>
<updated>2025-01-14T15:52:07Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2025-01-14T10:47:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=384669921779806105c56751abff41fa0127f93a'/>
<id>urn:sha1:384669921779806105c56751abff41fa0127f93a</id>
<content type='text'>
In the original change, rawmidi_info.tied_device showed -1 for the
unknown or untied device.  But this would require the user-space to
check the protocol version and judge the value conditionally, which
is rather error-prone.

Instead, set the tied_device = 0 to be default as unknown, and
indicate the real device with the offset 1, for achieving more
backward compatibility.

Suggested-by: Jaroslav Kysela &lt;perex@perex.cz&gt;
Link: https://patch.msgid.link/20250114104711.19197-1-tiwai@suse.de
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: seq: Notify UMP EP and FB changes</title>
<updated>2025-01-12T12:12:21Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2025-01-10T15:59:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3ab4a3199c782eae9b683b952f3ec5a766e4a096'/>
<id>urn:sha1:3ab4a3199c782eae9b683b952f3ec5a766e4a096</id>
<content type='text'>
So far we notify the sequencer client and port changes upon UMP FB
changes, but those aren't really corresponding to the UMP updates.
e.g. when a FB info gets updated, it's not notified but done only when
some of sequencer port attribute is changed.  This is no ideal
behavior.

This patch adds the two new sequencer event types for notifying the
UMP EP and FB changes via the announce port.  The new event takes
snd_seq_ev_ump_notify type data, which is compatible with
snd_seq_addr (where the port number is replaced with the block
number).

The events are sent when the EP and FB info gets updated explicitly
via ioctl, or the backend UMP receives the corresponding UMP
messages.

The sequencer protocol version is bumped to 1.0.5 along with it.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250110155943.31578-9-tiwai@suse.de
</content>
</entry>
<entry>
<title>ALSA: ump: Update rawmidi name per EP name update</title>
<updated>2025-01-12T12:12:21Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2025-01-10T15:59:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aca565359596c5998cab1cc72f61aa83b3ccd152'/>
<id>urn:sha1:aca565359596c5998cab1cc72f61aa83b3ccd152</id>
<content type='text'>
The rawmidi name string should be updated dynamically when the device
receives the UMP EP name update, too.  Both the core and legacy
rawmidi names are updated.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250110155943.31578-7-tiwai@suse.de
</content>
</entry>
<entry>
<title>ALSA: ump: Copy safe string name to rawmidi</title>
<updated>2025-01-12T12:12:20Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2025-01-10T15:59:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=85e8d66f30f967cda91b3ee6dfcb0a0c2391e612'/>
<id>urn:sha1:85e8d66f30f967cda91b3ee6dfcb0a0c2391e612</id>
<content type='text'>
The UMP helper didn't set up the rawmidi name string by itself but
left it to the driver.  But since the only user (USB MIDI2 driver)
picks up the UMP info name string to the rawmidi name as default, it's
better to set up in the UMP core side.

Meanwhile, UMP receives the EP name string from the device, and it
might contain garbage letters.  We should purify the string to be
usable for the kernel as done previously for UMP Group names.

This implements the copy of the UMP info name string into the rawmidi
name at the creation of UMP EP object in a safe way to strip the
non-ASCII or non-printable characters.  Also, change the reference
from the legacy rawmidi and other places to rawmidi name field instead
of ump info; this assures the sane strings.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250110155943.31578-6-tiwai@suse.de
</content>
</entry>
<entry>
<title>ALSA: ump: Copy FB name string more safely</title>
<updated>2025-01-12T12:12:20Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2025-01-10T15:59:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e3f035edadcc1c5901311c03d098bc3dedc5c525'/>
<id>urn:sha1:e3f035edadcc1c5901311c03d098bc3dedc5c525</id>
<content type='text'>
The UMP group names are referred as the corresponding sequencer port
names, hence they should be proper ASCII strings.  OTOH, the UMP group
names are composed from the UMP FB strings that are received from the
device; i.e. a device may give some bogus letters and we can't trust
them fully.

To assure that the group names consist of the proper ASCII strings,
replace the normal string copy and append operations with special ones
that strip the non-printable letters.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250110155943.31578-5-tiwai@suse.de
</content>
</entry>
<entry>
<title>ALSA: rawmidi: Show substream activity in info ioctl</title>
<updated>2025-01-12T12:12:20Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2025-01-10T15:59:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b8fefed73a952a33521ad416fb39683abd87454b'/>
<id>urn:sha1:b8fefed73a952a33521ad416fb39683abd87454b</id>
<content type='text'>
The UMP legacy rawmidi may turn on/off the substream dynamically
depending on the UMP Function Block information.  So far, there was no
direct way to know whether the substream is disabled (inactive) or
not; at most one can take a look at the substream name string or try
to open and get -ENODEV.

This patch extends the rawmidi info ioctl to show the current inactive
state of the given substream.  When the selected substream is
inactive, info flags field contains the new bit flag
SNDRV_RAWMIDI_INFO_STREAM_INACTIVE.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250110155943.31578-3-tiwai@suse.de
</content>
</entry>
<entry>
<title>ALSA: rawmidi: Expose the tied device number in info ioctl</title>
<updated>2025-01-12T12:12:20Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2025-01-10T15:59:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bdf46443f350dd5d226fd528a5a5954ff762f591'/>
<id>urn:sha1:bdf46443f350dd5d226fd528a5a5954ff762f591</id>
<content type='text'>
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.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250110155943.31578-2-tiwai@suse.de
</content>
</entry>
<entry>
<title>Revert "ALSA: ump: Don't enumeration invalid groups for legacy rawmidi"</title>
<updated>2024-12-30T11:40:53Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2024-12-30T11:40:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=abbff41b6932cde359589fd51f4024b7c85f366b'/>
<id>urn:sha1:abbff41b6932cde359589fd51f4024b7c85f366b</id>
<content type='text'>
This reverts commit c2d188e137e77294323132a760a4608321a36a70.

Although it's fine to filter the invalid UMP groups at the first probe
time, this will become a problem when UMP groups are updated and
(re-)activated.  Then there is no way to re-add the substreams
properly for the legacy rawmidi, and the new active groups will be
still invisible.

So let's revert the change.  This will move back to showing the full
16 groups, but it's better than forever lost.

Link: https://patch.msgid.link/20241230114023.3787-1-tiwai@suse.de
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: ump: Shut up truncated string warning</title>
<updated>2024-11-30T09:02:44Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2024-11-30T09:00:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ed990c07af70d286f5736021c6e25d8df6f2f7b0'/>
<id>urn:sha1:ed990c07af70d286f5736021c6e25d8df6f2f7b0</id>
<content type='text'>
The recent change for the legacy substream name update brought a
compile warning for some compilers due to the nature of snprintf().
Use scnprintf() to shut up the warning since the truncation is
intentional.

Fixes: e29e504e7890 ("ALSA: ump: Indicate the inactive group in legacy substream names")
Reported-by: kernel test robot &lt;lkp@intel.com&gt;
Closes: https://lore.kernel.org/oe-kbuild-all/202411300103.FrGuTAYp-lkp@intel.com/
Link: https://patch.msgid.link/20241130090009.19849-1-tiwai@suse.de
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: ump: Update legacy substream names upon FB info update</title>
<updated>2024-11-29T10:07:37Z</updated>
<author>
<name>Takashi Iwai</name>
</author>
<published>2024-11-29T09:45:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=edad3f9519fcacb926d0e3f3217aecaf628a593f'/>
<id>urn:sha1:edad3f9519fcacb926d0e3f3217aecaf628a593f</id>
<content type='text'>
The legacy rawmidi substreams should be updated when UMP FB Info or
UMP FB Name are received, too.

Link: https://patch.msgid.link/20241129094546.32119-4-tiwai@suse.de
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
</feed>
