linux/sound/firewire/motu
Takashi Sakamoto 814952c1b1 ALSA: firewire-motu: drop EPOLLOUT from poll return values as write is not supported
[ Upstream commit aea3493246 ]

The ALSA HwDep character device of the firewire-motu driver incorrectly
returns EPOLLOUT in poll(2), even though the driver implements no operation
for write(2). This misleads userspace applications to believe write() is
allowed, potentially resulting in unnecessarily wakeups.

This issue dates back to the driver's initial code added by a commit
71c3797779 ("ALSA: firewire-motu: add hwdep interface"), and persisted
when POLLOUT was updated to EPOLLOUT by a commit a9a08845e9 ('vfs: do
bulk POLL* -> EPOLL* replacement("").').

This commit fixes the bug.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://patch.msgid.link/20250829233749.366222-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-09-25 11:13:41 +02:00
..
amdtp-motu-trace.h ASoC: Updates for v5.3 2019-07-08 14:45:34 +02:00
amdtp-motu.c ALSA: firewire-lib: obsolete return value from context payload processing layer 2023-01-12 12:14:50 +01:00
Makefile ALSA: firewire: Use *-y instead of *-objs in Makefile 2024-05-08 18:18:03 +02:00
motu-command-dsp-message-parser.c ALSA: firewire-lib: use circular linked list for context payload processing layer 2023-01-09 17:04:44 +01:00
motu-hwdep.c ALSA: firewire-motu: drop EPOLLOUT from poll return values as write is not supported 2025-09-25 11:13:41 +02:00
motu-midi.c ALSA: firewire: Fix -Wformat-truncation warning for MIDI stream names 2023-09-15 13:22:06 +02:00
motu-pcm.c ALSA: firewire: use nonatomic PCM operation 2024-09-04 21:51:54 +09:00
motu-proc.c ALSA: firewire-motu: use table-based calculation of packet formats for proc 2020-05-22 16:52:16 +02:00
motu-protocol-v1.c ALSA: firewire: Remove some left-over license text in sound/firewire 2022-09-27 08:42:18 +02:00
motu-protocol-v2.c ALSA: firewire-motu: add message parser to gather meter information in register DSP model 2021-10-15 17:52:05 +02:00
motu-protocol-v3.c ALSA: firewire-motu: add support for MOTU 896 mk3 FireWire and Hybrid 2024-01-29 09:04:30 +01:00
motu-register-dsp-message-parser.c ALSA: firewire-lib: use circular linked list for context payload processing layer 2023-01-09 17:04:44 +01:00
motu-stream.c ALSA: firewire-motu: add message parser for meter information in command DSP model 2021-10-15 17:52:07 +02:00
motu-transaction.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 345 2019-06-05 17:37:08 +02:00
motu.c ALSA: firewire-motu: add support for MOTU 896 mk3 FireWire and Hybrid 2024-01-29 09:04:30 +01:00
motu.h ALSA: firewire-motu: add support for MOTU 896 mk3 FireWire and Hybrid 2024-01-29 09:04:30 +01:00