提交 1b6fa108 编写于 作者: A Adrian Knoth 提交者: Takashi Iwai

ALSA: hdspm - Set period_bytes_min to 32 * 4 for new RME cards

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: NAdrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 135d1535
...@@ -5703,7 +5703,7 @@ static struct snd_pcm_hardware snd_hdspm_playback_subinfo = { ...@@ -5703,7 +5703,7 @@ static struct snd_pcm_hardware snd_hdspm_playback_subinfo = {
.channels_max = HDSPM_MAX_CHANNELS, .channels_max = HDSPM_MAX_CHANNELS,
.buffer_bytes_max = .buffer_bytes_max =
HDSPM_CHANNEL_BUFFER_BYTES * HDSPM_MAX_CHANNELS, 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, .period_bytes_max = (4096 * 4) * HDSPM_MAX_CHANNELS,
.periods_min = 2, .periods_min = 2,
.periods_max = 512, .periods_max = 512,
...@@ -5728,7 +5728,7 @@ static struct snd_pcm_hardware snd_hdspm_capture_subinfo = { ...@@ -5728,7 +5728,7 @@ static struct snd_pcm_hardware snd_hdspm_capture_subinfo = {
.channels_max = HDSPM_MAX_CHANNELS, .channels_max = HDSPM_MAX_CHANNELS,
.buffer_bytes_max = .buffer_bytes_max =
HDSPM_CHANNEL_BUFFER_BYTES * HDSPM_MAX_CHANNELS, 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, .period_bytes_max = (4096 * 4) * HDSPM_MAX_CHANNELS,
.periods_min = 2, .periods_min = 2,
.periods_max = 512, .periods_max = 512,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册