#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/hrtimer.h>
#include <linux/math64.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/tlv.h>
#include <sound/pcm.h>
#include <sound/rawmidi.h>
#include <sound/info.h>
#include <sound/initval.h>
Go to the source code of this file.
|
| MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>") |
|
| MODULE_DESCRIPTION ("Dummy soundcard (/dev/null)") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_SUPPORTED_DEVICE ("{{ALSA,Dummy soundcard}}") |
|
| module_param_array (index, int, NULL, 0444) |
|
| MODULE_PARM_DESC (index,"Index value for dummy soundcard.") |
|
| module_param_array (id, charp, NULL, 0444) |
|
| MODULE_PARM_DESC (id,"ID string for dummy soundcard.") |
|
| module_param_array (enable, bool, NULL, 0444) |
|
| MODULE_PARM_DESC (enable,"Enable this dummy soundcard.") |
|
| module_param_array (model, charp, NULL, 0444) |
|
| MODULE_PARM_DESC (model,"Soundcard model.") |
|
| module_param_array (pcm_devs, int, NULL, 0444) |
|
| MODULE_PARM_DESC (pcm_devs,"PCM devices # (0-4) for dummy driver.") |
|
| module_param_array (pcm_substreams, int, NULL, 0444) |
|
| MODULE_PARM_DESC (pcm_substreams,"PCM substreams # (1-128) for dummy driver.") |
|
| module_param (fake_buffer, bool, 0444) |
|
| MODULE_PARM_DESC (fake_buffer,"Fake buffer allocations.") |
|
#define DUMMY_CAPSRC |
( |
|
xname, |
|
|
|
xindex, |
|
|
|
addr |
|
) |
| |
Value:
.get = snd_dummy_capsrc_get, .put = snd_dummy_capsrc_put, \
Definition at line 782 of file dummy.c.
#define dummy_proc_init |
( |
|
x | ) |
|
#define DUMMY_VOLUME |
( |
|
xname, |
|
|
|
xindex, |
|
|
|
addr |
|
) |
| |
Value:
.name = xname, .index = xindex, \
.info = snd_dummy_volume_info, \
.get = snd_dummy_volume_get, .put = snd_dummy_volume_put, \
.tlv = { .p = db_scale_dummy } }
Definition at line 722 of file dummy.c.
#define MAX_BUFFER_SIZE (64*1024) |
#define MAX_MIDI_DEVICES 2 |
#define MAX_PCM_DEVICES 4 |
#define MAX_PCM_SUBSTREAMS 128 |
#define MIN_PERIOD_SIZE 64 |
#define MIXER_ADDR_LAST 4 |
#define MIXER_ADDR_LINE 1 |
#define MIXER_ADDR_MASTER 0 |
#define MIXER_ADDR_SYNTH 3 |
#define SND_DUMMY_DRIVER "snd_dummy" |
#define SND_DUMMY_PM_OPS NULL |
#define USE_CHANNELS_MAX 2 |
#define USE_CHANNELS_MIN 1 |
#define USE_PERIODS_MAX 1024 |
#define USE_PERIODS_MIN 1 |
#define USE_RATE_MAX 48000 |
#define USE_RATE_MIN 5500 |
MODULE_DESCRIPTION |
( |
"Dummy soundcard (/dev/null)" |
| ) |
|
module_param |
( |
fake_buffer |
, |
|
|
bool |
, |
|
|
0444 |
|
|
) |
| |
module_param_array |
( |
id |
, |
|
|
charp |
, |
|
|
NULL |
, |
|
|
0444 |
|
|
) |
| |
module_param_array |
( |
model |
, |
|
|
charp |
, |
|
|
NULL |
, |
|
|
0444 |
|
|
) |
| |
module_param_array |
( |
pcm_devs |
, |
|
|
int |
, |
|
|
NULL |
, |
|
|
0444 |
|
|
) |
| |
module_param_array |
( |
pcm_substreams |
, |
|
|
int |
, |
|
|
NULL |
, |
|
|
0444 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
enable |
, |
|
|
"Enable this dummy soundcard." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
model |
, |
|
|
"Soundcard model." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
pcm_substreams |
, |
|
|
"PCM substreams # (1-128) for dummy driver." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
fake_buffer |
, |
|
|
"Fake buffer allocations." |
|
|
) |
| |
MODULE_SUPPORTED_DEVICE |
( |
"{{ALSA,Dummy soundcard}}" |
| ) |
|
Initial value:
Definition at line 216 of file dummy.c.
Initial value:= {
.name = "ac97",
.channels_min = 2,
.channels_max = 2,
.rate_min = 48000,
.rate_max = 48000,
}
Definition at line 192 of file dummy.c.
Initial value:= {
.name = "ca0106",
.buffer_bytes_max = ((65536-64)*8),
.period_bytes_max = (65536-64),
.periods_min = 2,
.periods_max = 8,
.channels_min = 2,
.channels_max = 2,
.rate_min = 48000,
.rate_max = 192000,
}
Definition at line 202 of file dummy.c.
Initial value:= {
.name = "emu10k1",
.playback_constraints = emu10k1_playback_constraints,
.buffer_bytes_max = 128 * 1024,
}
Definition at line 156 of file dummy.c.
Initial value:= {
.name = "ice1712",
.buffer_bytes_max = 256 * 1024,
.channels_min = 10,
.channels_max = 10,
.periods_min = 1,
.periods_max = 1024,
}
Definition at line 172 of file dummy.c.
Initial value:= {
.name = "rme9652",
.buffer_bytes_max = 26 * 64 * 1024,
.channels_min = 26,
.channels_max = 26,
.periods_min = 2,
.periods_max = 2,
}
Definition at line 162 of file dummy.c.
Initial value:= {
.name = "uda1341",
.buffer_bytes_max = 16380,
.channels_min = 2,
.channels_max = 2,
.periods_min = 2,
.periods_max = 255,
}
Definition at line 182 of file dummy.c.