[alsa-devel] [ISSUE] rtl8192ce appears to interfere with ALSA playback

LANGLOIS Olivier PIS -EXT olivier.pis.langlois at transport.alstom.com
Thu Jan 23 17:36:45 CET 2014


> > As small unrelated sidenote,
> >
> > If I let aplay choose the hw params itself, how comes it ends up with 16
> periods when it calculates the period time to have 4 periods?
>
> How 4 periods come up...?
> period_time = period_size / rate.
>
>
I was referring to this code in aplay.c:set_params():

        if (period_time == 0 && period_frames == 0) {
                if (buffer_time > 0)
                        period_time = buffer_time / 4;
                else
                        period_frames = buffer_frames / 4;
        }

and I think that usually periods_num ~= buffer_time/period_time or buffer_size/period_size

aplay -Dhw:0,0 sine_48000.wav

I have:

  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000

but with the default dmix setup: aplay -v sine_48000.wav:

  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333


________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.


More information about the Alsa-devel mailing list