From: Takashi Iwai <tiwai@suse.de>
To: alsa-devel@alsa-project.org
Subject: [PATCH v2 4/5] ALSA: core: Drop async signal support
Date: Sun, 17 Jul 2022 09:05:48 +0200 [thread overview]
Message-ID: <20220717070549.5993-5-tiwai@suse.de> (raw)
In-Reply-To: <20220717070549.5993-1-tiwai@suse.de>
Now fasync support is dropped from all ALSA interfaces, and we can
drop the fasync workaround at the card disconnection code, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/core/init.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/sound/core/init.c b/sound/core/init.c
index 3ac95c66a4b5..899bfe838a91 100644
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -432,11 +432,8 @@ static int snd_disconnect_release(struct inode *inode, struct file *file)
}
spin_unlock(&shutdown_lock);
- if (likely(df)) {
- if ((file->f_flags & FASYNC) && df->disconnected_f_op->fasync)
- df->disconnected_f_op->fasync(-1, file, 0);
+ if (likely(df))
return df->disconnected_f_op->release(inode, file);
- }
panic("%s(%p, %p) failed!", __func__, inode, file);
}
@@ -457,11 +454,6 @@ static int snd_disconnect_mmap(struct file *file, struct vm_area_struct *vma)
return -ENODEV;
}
-static int snd_disconnect_fasync(int fd, struct file *file, int on)
-{
- return -ENODEV;
-}
-
static const struct file_operations snd_shutdown_f_ops =
{
.owner = THIS_MODULE,
@@ -475,7 +467,6 @@ static const struct file_operations snd_shutdown_f_ops =
.compat_ioctl = snd_disconnect_ioctl,
#endif
.mmap = snd_disconnect_mmap,
- .fasync = snd_disconnect_fasync
};
/**
--
2.35.3
next prev parent reply other threads:[~2022-07-17 7:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-17 7:05 [PATCH v2 0/5] ALSA: Drop async signal support Takashi Iwai
2022-07-17 7:05 ` [PATCH v2 1/5] ALSA: timer: " Takashi Iwai
2022-07-17 7:05 ` [PATCH v2 2/5] ALSA: pcm: " Takashi Iwai
2022-07-17 7:05 ` [PATCH v2 3/5] ALSA: control: " Takashi Iwai
2022-07-17 7:05 ` Takashi Iwai [this message]
2022-07-17 7:05 ` [PATCH v2 5/5] ALSA: doc: Drop stale fasync entry Takashi Iwai
2022-07-17 10:16 ` [PATCH v2 0/5] ALSA: Drop async signal support Jaroslav Kysela
2022-07-25 14:52 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220717070549.5993-5-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.