]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ALSA: hdspm - Set period_bytes_min to 32 * 4 for new RME cards
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Sun, 14 Aug 2011 22:22:51 +0000 (00:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Aug 2011 08:24:42 +0000 (10:24 +0200)
On newer RME cards like RayDAT and AIO, the lower bound is 32 samples
per period in contrast to 64 samples as seen on older cards.

We hence lower period_bytes_min to 32 * 4. Four bytes per sample.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme9652/hdspm.c

index 204e1ced16a778af78609e98a660893689eeb46e..8dc2a894f6f7e6f4e62514c8797e26f7ae33c481 100644 (file)
@@ -5703,7 +5703,7 @@ static struct snd_pcm_hardware snd_hdspm_playback_subinfo = {
        .channels_max = HDSPM_MAX_CHANNELS,
        .buffer_bytes_max =
            HDSPM_CHANNEL_BUFFER_BYTES * HDSPM_MAX_CHANNELS,
-       .period_bytes_min = (64 * 4),
+       .period_bytes_min = (32 * 4),
        .period_bytes_max = (4096 * 4) * HDSPM_MAX_CHANNELS,
        .periods_min = 2,
        .periods_max = 512,
@@ -5728,7 +5728,7 @@ static struct snd_pcm_hardware snd_hdspm_capture_subinfo = {
        .channels_max = HDSPM_MAX_CHANNELS,
        .buffer_bytes_max =
            HDSPM_CHANNEL_BUFFER_BYTES * HDSPM_MAX_CHANNELS,
-       .period_bytes_min = (64 * 4),
+       .period_bytes_min = (32 * 4),
        .period_bytes_max = (4096 * 4) * HDSPM_MAX_CHANNELS,
        .periods_min = 2,
        .periods_max = 512,