diff options
Diffstat (limited to 'sound/isa/sb/sb16_main.c')
-rw-r--r-- | sound/isa/sb/sb16_main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/isa/sb/sb16_main.c b/sound/isa/sb/sb16_main.c index 383911b9e74d..5d4d3aafe2d5 100644 --- a/sound/isa/sb/sb16_main.c +++ b/sound/isa/sb/sb16_main.c | |||
@@ -563,6 +563,11 @@ static int snd_sb16_playback_open(struct snd_pcm_substream *substream) | |||
563 | __open_ok: | 563 | __open_ok: |
564 | if (chip->hardware == SB_HW_ALS100) | 564 | if (chip->hardware == SB_HW_ALS100) |
565 | runtime->hw.rate_max = 48000; | 565 | runtime->hw.rate_max = 48000; |
566 | if (chip->hardware == SB_HW_CS5530) { | ||
567 | runtime->hw.buffer_bytes_max = 32 * 1024; | ||
568 | runtime->hw.periods_min = 2; | ||
569 | runtime->hw.rate_min = 44100; | ||
570 | } | ||
566 | if (chip->mode & SB_RATE_LOCK) | 571 | if (chip->mode & SB_RATE_LOCK) |
567 | runtime->hw.rate_min = runtime->hw.rate_max = chip->locked_rate; | 572 | runtime->hw.rate_min = runtime->hw.rate_max = chip->locked_rate; |
568 | chip->playback_substream = substream; | 573 | chip->playback_substream = substream; |
@@ -633,6 +638,11 @@ static int snd_sb16_capture_open(struct snd_pcm_substream *substream) | |||
633 | __open_ok: | 638 | __open_ok: |
634 | if (chip->hardware == SB_HW_ALS100) | 639 | if (chip->hardware == SB_HW_ALS100) |
635 | runtime->hw.rate_max = 48000; | 640 | runtime->hw.rate_max = 48000; |
641 | if (chip->hardware == SB_HW_CS5530) { | ||
642 | runtime->hw.buffer_bytes_max = 32 * 1024; | ||
643 | runtime->hw.periods_min = 2; | ||
644 | runtime->hw.rate_min = 44100; | ||
645 | } | ||
636 | if (chip->mode & SB_RATE_LOCK) | 646 | if (chip->mode & SB_RATE_LOCK) |
637 | runtime->hw.rate_min = runtime->hw.rate_max = chip->locked_rate; | 647 | runtime->hw.rate_min = runtime->hw.rate_max = chip->locked_rate; |
638 | chip->capture_substream = substream; | 648 | chip->capture_substream = substream; |