Revert "ALSA: ump: Don't enumeration invalid groups for legacy rawmidi"

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

 



From: Takashi Iwai <tiwai@xxxxxxx>

commit abbff41b6932cde359589fd51f4024b7c85f366b upstream.

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@xxxxxxx
Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 sound/core/ump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/core/ump.c b/sound/core/ump.c
index fe4d39ae1159..9198bff4768c 100644
--- a/sound/core/ump.c
+++ b/sound/core/ump.c
@@ -1244,7 +1244,7 @@ static int fill_legacy_mapping(struct snd_ump_endpoint *ump)
 
 	num = 0;
 	for (i = 0; i < SNDRV_UMP_MAX_GROUPS; i++)
-		if ((group_maps & (1U << i)) && ump->groups[i].valid)
+		if (group_maps & (1U << i))
 			ump->legacy_mapping[num++] = i;
 
 	return num;
-- 
2.47.1



Patches currently in stable-queue which might be from tiwai@xxxxxxx are

queue-6.12/alsa-hda-realtek-add-support-for-asus-zen-aio-27-z27.patch
queue-6.12/sound-usb-format-don-t-warn-that-raw-dsd-is-unsuppor.patch
queue-6.12/alsa-hda-realtek-add-quirk-for-framework-f111-000c.patch
queue-6.12/revert-alsa-ump-don-t-enumeration-invalid-groups-for-legacy-rawmidi.patch
queue-6.12/alsa-hda-cs35l56-remove-calls-to-cs35l56_force_sync_.patch
queue-6.12/alsa-hda-ca0132-use-standard-hd-audio-quirk-matching.patch
queue-6.12/alsa-hda-realtek-add-new-alc2xx-fixup-headset-mic-mo.patch
queue-6.12/alsa-seq-oss-fix-races-at-processing-sysex-messages.patch
queue-6.12/alsa-seq-check-ump-support-for-midi_version-change.patch
queue-6.12/alsa-usb-audio-us16x08-initialize-array-before-use.patch
queue-6.12/sound-usb-enable-dsd-output-for-ddhifi-tc44c.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux