I can't setup period_size to my desired value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear everybody.

1. Summary

 I have tried to setup hw parameters with hda-intel driver. 
 But I can't setup period_size to 160.
 The return value of snd_pcm_hw_params_set_period_size_near is 170. 
 Is it right ?
 I want to play MU_LAW stream. So, period_size must be 160.

2. Environment
 driver 1.0.21
   hda-intel - HDA-Nvidia
   Sigmatel STAC9200
 
 kernel 2.6.32.6-36.fc12.i686

3. An output of aplay with 8KHz MONO wave file 

   Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
    Converter: linear-interpolation
   Protocol version: 10002
  Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 8000
  exact rate   : 8000 (8000/1)
  msbits       : 16
  buffer_size  : 2730
  period_size  : 170
  period_time  : 21333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 170
  period_event : 0
  start_threshold  : 2730
  stop_threshold   : 2730
  silence_threshold: 0
  silence_size : 0
  boundary     : 178913280
 Slave: Route conversion PCM (sformat=S32_LE)
  Transformation table:
    0 <- 0
    1 <- 0
 Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 1024
  period_time  : 21333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 1024
  period_event : 0
  start_threshold  : 16384
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
Slave: Soft volume PCM
Control: PCM Playback Volume

Regards

---------- 
MASAO TAKAHASHI <masao-takahashi@xxxxxxxxxxx>
KANNO WORKS CO., LTD. JAPAN
TEL 093-436-2330

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux