title: ALSA: Relation between period size of speaker and mic
body: <p>I have audio conferencing device which has a mic and speaker. Both mic and speaker having same sampling rate set by <code>snd_pcm_hw_params_set_rate_near()</code> say 8000 Hz. Do I need to set period size and number of periods to be same for both (for two such devices communicate each other) ?</p>
  
  <p>Or can I choose a different period/period size for speaker than the one configured for mic ?
  How do I decide on which period and period size to use ?</p>
  
  <p>I am using <code>snd_pcm_hw_params_set_period_size_near()</code> and <code>snd_pcm_hw_params_set_periods_near()</code> APIs to set period size and period for both speaker and mic.</p>
  
  <p>(I am new to ALSA).</p>