Comment 73 for bug 996906

Revision history for this message
In , Raymond (superquad-vortex2) wrote :

(In reply to rkfg from comment #35)
> When I start PA without tsched=0, it's ALSA setup is weird:
>

> Apr 10 09:46:52 work pulseaudio[5161]: [pulseaudio] alsa-util.c: rate
> : 44100
> Apr 10 09:46:52 work pulseaudio[5161]: [pulseaudio] alsa-util.c: exact
> rate : 44100 (44100/1)
> Apr 10 09:46:52 work pulseaudio[5161]: [pulseaudio] alsa-util.c: msbits
> : 16
> Apr 10 09:46:52 work pulseaudio[5161]: [pulseaudio] alsa-util.c:
> buffer_size : 88192
> Apr 10 09:46:52 work pulseaudio[5161]: [pulseaudio] alsa-util.c:
> period_size : 44096
> Apr 10 09:46:52 work pulseaudio[5161]: [pulseaudio] alsa-util.c:
> period_time : 999909
> Apr 10 09:46:52 work pulseaudio[5161]: [pulseaudio] alsa-util.c:
>
>
> Why does period size lack 4 bytes to be exactly 1 second long?

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/hda_intel.c?id=5f1545bc45a33361d6bb2fb44af7c35bcd733b9d

snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
+ 128);
+ snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
+ 128);

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/hda_intel.c?id=103884a351a221553095c509a1dbbbf7d4fd9b05