linux/include/sound/minors.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef __SOUND_MINORS_H
#define __SOUND_MINORS_H

/*
 *  MINOR numbers
 */

#define SNDRV_OS_MINORS

#define SNDRV_MINOR_DEVICES
#define SNDRV_MINOR_CARD(minor)
#define SNDRV_MINOR_DEVICE(minor)
#define SNDRV_MINOR(card, dev)

/* these minors can still be used for autoloading devices (/dev/aload*) */
#define SNDRV_MINOR_CONTROL
#define SNDRV_MINOR_GLOBAL
#define SNDRV_MINOR_SEQUENCER
#define SNDRV_MINOR_TIMER

#ifndef CONFIG_SND_DYNAMIC_MINORS
#define SNDRV_MINOR_COMPRESS
#define SNDRV_MINOR_HWDEP
#define SNDRV_MINOR_RAWMIDI
#define SNDRV_MINOR_PCM_PLAYBACK
#define SNDRV_MINOR_PCM_CAPTURE

/* same as first respective minor number to make minor allocation easier */
#define SNDRV_DEVICE_TYPE_CONTROL
#define SNDRV_DEVICE_TYPE_HWDEP
#define SNDRV_DEVICE_TYPE_RAWMIDI
#define SNDRV_DEVICE_TYPE_PCM_PLAYBACK
#define SNDRV_DEVICE_TYPE_PCM_CAPTURE
#define SNDRV_DEVICE_TYPE_SEQUENCER
#define SNDRV_DEVICE_TYPE_TIMER
#define SNDRV_DEVICE_TYPE_COMPRESS

#else /* CONFIG_SND_DYNAMIC_MINORS */

enum {};

#endif /* CONFIG_SND_DYNAMIC_MINORS */

#define SNDRV_MINOR_HWDEPS
#define SNDRV_MINOR_RAWMIDIS
#define SNDRV_MINOR_PCMS


#ifdef CONFIG_SND_OSSEMUL

#define SNDRV_MINOR_OSS_DEVICES
#define SNDRV_MINOR_OSS_CARD(minor)
#define SNDRV_MINOR_OSS_DEVICE(minor)
#define SNDRV_MINOR_OSS(card, dev)

#define SNDRV_MINOR_OSS_MIXER
#define SNDRV_MINOR_OSS_SEQUENCER
#define SNDRV_MINOR_OSS_MIDI
#define SNDRV_MINOR_OSS_PCM
#define SNDRV_MINOR_OSS_PCM_8
#define SNDRV_MINOR_OSS_AUDIO
#define SNDRV_MINOR_OSS_PCM_16
#define SNDRV_MINOR_OSS_SNDSTAT
#define SNDRV_MINOR_OSS_RESERVED7
#define SNDRV_MINOR_OSS_MUSIC
#define SNDRV_MINOR_OSS_DMMIDI
#define SNDRV_MINOR_OSS_DMFM
#define SNDRV_MINOR_OSS_MIXER1
#define SNDRV_MINOR_OSS_PCM1
#define SNDRV_MINOR_OSS_MIDI1
#define SNDRV_MINOR_OSS_DMMIDI1
#define SNDRV_MINOR_OSS_RESERVED15

#define SNDRV_OSS_DEVICE_TYPE_MIXER
#define SNDRV_OSS_DEVICE_TYPE_SEQUENCER
#define SNDRV_OSS_DEVICE_TYPE_PCM
#define SNDRV_OSS_DEVICE_TYPE_MIDI
#define SNDRV_OSS_DEVICE_TYPE_DMFM
#define SNDRV_OSS_DEVICE_TYPE_SNDSTAT
#define SNDRV_OSS_DEVICE_TYPE_MUSIC

#define MODULE_ALIAS_SNDRV_MINOR(type)

#endif

#endif /* __SOUND_MINORS_H */