mixer.h (e4e61333ffa4e90360de2dd1e4e0146f7cbf0afb) mixer.h (eabe30fc9c3f2d6a3bc2fdcce18a0b9543b6c96e)
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 42 unchanged lines hidden (view full) ---

51void mix_setrecdevs(struct snd_mixer *m, u_int32_t v);
52u_int32_t mix_getdevs(struct snd_mixer *m);
53u_int32_t mix_getrecdevs(struct snd_mixer *m);
54void mix_setparentchild(struct snd_mixer *m, u_int32_t parent, u_int32_t childs);
55void mix_setrealdev(struct snd_mixer *m, u_int32_t dev, u_int32_t realdev);
56u_int32_t mix_getparent(struct snd_mixer *m, u_int32_t dev);
57u_int32_t mix_getchild(struct snd_mixer *m, u_int32_t dev);
58void *mix_getdevinfo(struct snd_mixer *m);
1/*-
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 42 unchanged lines hidden (view full) ---

51void mix_setrecdevs(struct snd_mixer *m, u_int32_t v);
52u_int32_t mix_getdevs(struct snd_mixer *m);
53u_int32_t mix_getrecdevs(struct snd_mixer *m);
54void mix_setparentchild(struct snd_mixer *m, u_int32_t parent, u_int32_t childs);
55void mix_setrealdev(struct snd_mixer *m, u_int32_t dev, u_int32_t realdev);
56u_int32_t mix_getparent(struct snd_mixer *m, u_int32_t dev);
57u_int32_t mix_getchild(struct snd_mixer *m, u_int32_t dev);
58void *mix_getdevinfo(struct snd_mixer *m);
59struct mtx *mixer_get_lock(struct snd_mixer *m);
59
60extern int mixer_count;
61
62#define MIXER_CMD_DIRECT 0 /* send command within driver */
63#define MIXER_CMD_CDEV 1 /* send command from cdev/ioctl */
64
65#define MIXER_TYPE_PRIMARY 0 /* mixer_init() */
66#define MIXER_TYPE_SECONDARY 1 /* mixer_create() */
67
68/*
69 * this is a kludge to allow hiding of the struct snd_mixer definition
70 * 512 should be enough for all architectures
71 */
72#define MIXER_SIZE (512 + sizeof(struct kobj) + \
73 sizeof(oss_mixer_enuminfo))
74
75#define MIXER_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, MIXER_SIZE)
60
61extern int mixer_count;
62
63#define MIXER_CMD_DIRECT 0 /* send command within driver */
64#define MIXER_CMD_CDEV 1 /* send command from cdev/ioctl */
65
66#define MIXER_TYPE_PRIMARY 0 /* mixer_init() */
67#define MIXER_TYPE_SECONDARY 1 /* mixer_create() */
68
69/*
70 * this is a kludge to allow hiding of the struct snd_mixer definition
71 * 512 should be enough for all architectures
72 */
73#define MIXER_SIZE (512 + sizeof(struct kobj) + \
74 sizeof(oss_mixer_enuminfo))
75
76#define MIXER_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, MIXER_SIZE)