diff options
| -rw-r--r-- | sound/drivers/dummy.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c index 96d207051628..14e1a671b5cf 100644 --- a/sound/drivers/dummy.c +++ b/sound/drivers/dummy.c | |||
| @@ -92,11 +92,27 @@ static int emu10k1_playback_constraints(struct snd_pcm_runtime *runtime) | |||
| 92 | #define USE_RATE_MAX 48000 | 92 | #define USE_RATE_MAX 48000 |
| 93 | #endif | 93 | #endif |
| 94 | 94 | ||
| 95 | #if 0 /* CA0106 */ | ||
| 96 | #define USE_FORMATS SNDRV_PCM_FMTBIT_S16_LE | ||
| 97 | #define USE_CHANNELS_MIN 2 | ||
| 98 | #define USE_CHANNELS_MAX 2 | ||
| 99 | #define USE_RATE (SNDRV_PCM_RATE_48000|SNDRV_PCM_RATE_96000|SNDRV_PCM_RATE_192000) | ||
| 100 | #define USE_RATE_MIN 48000 | ||
| 101 | #define USE_RATE_MAX 192000 | ||
| 102 | #define MAX_BUFFER_SIZE ((65536-64)*8) | ||
| 103 | #define MAX_PERIOD_SIZE (65536-64) | ||
| 104 | #define USE_PERIODS_MIN 2 | ||
| 105 | #define USE_PERIODS_MAX 8 | ||
| 106 | #endif | ||
| 107 | |||
| 95 | 108 | ||
| 96 | /* defaults */ | 109 | /* defaults */ |
| 97 | #ifndef MAX_BUFFER_SIZE | 110 | #ifndef MAX_BUFFER_SIZE |
| 98 | #define MAX_BUFFER_SIZE (64*1024) | 111 | #define MAX_BUFFER_SIZE (64*1024) |
| 99 | #endif | 112 | #endif |
| 113 | #ifndef MAX_PERIOD_SIZE | ||
| 114 | #define MAX_PERIOD_SIZE MAX_BUFFER_SIZE | ||
| 115 | #endif | ||
| 100 | #ifndef USE_FORMATS | 116 | #ifndef USE_FORMATS |
| 101 | #define USE_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE) | 117 | #define USE_FORMATS (SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE) |
| 102 | #endif | 118 | #endif |
| @@ -287,7 +303,7 @@ static struct snd_pcm_hardware snd_card_dummy_capture = | |||
| 287 | .channels_max = USE_CHANNELS_MAX, | 303 | .channels_max = USE_CHANNELS_MAX, |
| 288 | .buffer_bytes_max = MAX_BUFFER_SIZE, | 304 | .buffer_bytes_max = MAX_BUFFER_SIZE, |
| 289 | .period_bytes_min = 64, | 305 | .period_bytes_min = 64, |
| 290 | .period_bytes_max = MAX_BUFFER_SIZE, | 306 | .period_bytes_max = MAX_PERIOD_SIZE, |
| 291 | .periods_min = USE_PERIODS_MIN, | 307 | .periods_min = USE_PERIODS_MIN, |
| 292 | .periods_max = USE_PERIODS_MAX, | 308 | .periods_max = USE_PERIODS_MAX, |
| 293 | .fifo_size = 0, | 309 | .fifo_size = 0, |
