From nobody Mon Feb 26 23:22:52 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TkGqx1n3wz5BtYT; Mon, 26 Feb 2024 23:22:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TkGqx10jzz4V9b; Mon, 26 Feb 2024 23:22:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708989773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c1PzHn7GXy6RrjHq33tJ/uM2NNAHgd57zGSUT/1a2HY=; b=vC6usnNkrPWTLQ45K8uAnDr24ZCzEAztfufPq6MWJG5xQmMLWIFhICBkI8lLbD3s7ArJJW UzXaZp2g0+0qHdusrfICEtzZ1rYmz049UTpaPe8LG6UmenMsZ/cMrekt6HI3R5Y0yFofu/ GAPYwVfIUpu1vQaxf26GwDXJz2pNQR+7DCwXhVs/Po+7EqzsOc3zcnRFVYLvMv7E4B1Ft4 P3KlinwUgeaLzsr1b+0zqXQ7F/NRxHcAbfNfiM/KgMNZYwg7q23dLdreHUI7zAhk1eDbNB 1hHDBP+qhWpk/RU72R1zAPBHnwjokUT7H/l6NL0cq0VDAojjaUlodIt3FJgLAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708989773; a=rsa-sha256; cv=none; b=Q4VDmw394P4P1BK8pw8VjGURm6ZqYSJSfV8eWTLRheG5pxsDrT7BV2LSLO11uX8p9w2hTS 623vpQZFa7Y6bM2E8AKWnR+Ctt61StlIeNj9ML8hcxMGISv6Ugkl6M6wrM2kf3uUOIEpGR sujCeWpS7ZCIrMV2KCZmo52n86EOrD+t8dJbvIUtwPaxZ6Dcp86hc3tLw+JIss7vld6KAb 19PfEsUzXpzo1KM9TTeKzfQtnetFUiiTOy/Wq5sonFbYIBzhb3E3hhpNjdGtJb8HzLwcmV LDEVwQOvUcJHsMbovHU6lilAcjaN+yZaH3njs50LsS0wXwY9FTPBtYPZ+oSdIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708989773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=c1PzHn7GXy6RrjHq33tJ/uM2NNAHgd57zGSUT/1a2HY=; b=JTwRW11LO+BwuMq7WLHQdhhBkstjn/2vKWdKLgeNbtuNyYBtaPiN+vroihWB1QvSvhbG6U jiJxa1hCbWrT3nV4VWDgQK27Xows4mz1sShAf6O/u97hUwOFaBlRzphzETcgJMbb6HfNpj KtL5fNP6nlssrMxd0erPIx0L0GcR6Yvxs8AbfMUKnl4QbWNEI82IwoC11WVnD+AIC+ubgW lFpoT66zGV33jCiuxvKAGB4wywvhij7qc5Ud6W7PL2jlwgrK4nS7uOVDj2O5Vlv3bLLnO2 g56qQmzuJpfe1VucCTMb8Pi8UErvJsKLawiIL42lEZfL4FsdDnrZro8UaT3/yw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TkGqx06NmzpK0; Mon, 26 Feb 2024 23:22:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41QNMqWP028708; Mon, 26 Feb 2024 23:22:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41QNMqlg028705; Mon, 26 Feb 2024 23:22:52 GMT (envelope-from git) Date: Mon, 26 Feb 2024 23:22:52 GMT Message-Id: <202402262322.41QNMqlg028705@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 6f2d6237fe98 - stable/14 - sound: remove snddev_info->inprog and pcm_inprog() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 6f2d6237fe98f6741bfab9284dd0244a35d77011 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=6f2d6237fe98f6741bfab9284dd0244a35d77011 commit 6f2d6237fe98f6741bfab9284dd0244a35d77011 Author: Christos Margiolis AuthorDate: 2024-02-12 11:05:33 +0000 Commit: Christos Margiolis CommitDate: 2024-02-26 23:22:31 +0000 sound: remove snddev_info->inprog and pcm_inprog() No longer used. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D43737 (cherry picked from commit 883b8ed582eb3e9e98c62c471228ff3c3a25377d) --- sys/dev/sound/pcm/sound.c | 17 ----------------- sys/dev/sound/pcm/sound.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index b23a28d3af08..186e7b194f27 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -392,16 +392,6 @@ pcm_chnref(struct pcm_channel *c, int ref) return (c->refcount); } -int -pcm_inprog(struct snddev_info *d, int delta) -{ - PCM_LOCKASSERT(d); - - d->inprog += delta; - - return (d->inprog); -} - static void pcm_setmaxautovchans(struct snddev_info *d, int num) { @@ -1127,7 +1117,6 @@ pcm_register(device_t dev, void *devinfo, int numplay, int numrec) d->pvchanformat = 0; d->rvchanrate = 0; d->rvchanformat = 0; - d->inprog = 0; /* * Create clone manager, disabled by default. Cloning will be @@ -1182,12 +1171,6 @@ pcm_unregister(device_t dev) d->flags |= SD_F_DETACHING; - if (d->inprog != 0) { - device_printf(dev, "unregister: operation in progress\n"); - PCM_UNLOCK(d); - return (EBUSY); - } - PCM_ACQUIRE(d); PCM_UNLOCK(d); diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index 5b366a62630c..4af56a2c411a 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -320,7 +320,6 @@ int pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction, pid_t pid, char *comm, int devunit); int pcm_chnrelease(struct pcm_channel *c); int pcm_chnref(struct pcm_channel *c, int ref); -int pcm_inprog(struct snddev_info *d, int delta); struct pcm_channel *pcm_chn_create(struct snddev_info *d, struct pcm_channel *parent, kobj_class_t cls, int dir, int num, void *devinfo); int pcm_chn_destroy(struct pcm_channel *ch); @@ -379,7 +378,6 @@ struct snddev_info { struct snd_clone *clones; unsigned devcount, playcount, reccount, pvchancount, rvchancount ; unsigned flags; - int inprog; unsigned int bufsz; void *devinfo; device_t dev;