Commit 7f15c6a2 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Takashi Iwai <tiwai@suse.de>

Digigram VX core
- added hw_constraint to align 4bytes.
  this will solve the 24bit problem on vx222.
parent 18a9079f
...@@ -611,6 +611,10 @@ static int vx_pcm_playback_open(snd_pcm_substream_t *subs) ...@@ -611,6 +611,10 @@ static int vx_pcm_playback_open(snd_pcm_substream_t *subs)
runtime->hw.period_bytes_min = chip->ibl.size; runtime->hw.period_bytes_min = chip->ibl.size;
runtime->private_data = pipe; runtime->private_data = pipe;
/* align to 4 bytes (otherwise will be problematic when 24bit is used) */
snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4);
snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4);
return 0; return 0;
} }
...@@ -1015,6 +1019,10 @@ static int vx_pcm_capture_open(snd_pcm_substream_t *subs) ...@@ -1015,6 +1019,10 @@ static int vx_pcm_capture_open(snd_pcm_substream_t *subs)
runtime->hw.period_bytes_min = chip->ibl.size; runtime->hw.period_bytes_min = chip->ibl.size;
runtime->private_data = pipe; runtime->private_data = pipe;
/* align to 4 bytes (otherwise will be problematic when 24bit is used) */
snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 4);
snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 4);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment