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 883b8ed582)
This commit is contained in:
Christos Margiolis 2024-02-12 13:05:33 +02:00
parent 4c6b20d4b3
commit 6f2d6237fe
2 changed files with 0 additions and 19 deletions

View file

@ -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);

View file

@ -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;