Re: Problem reading back periods

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

 



Paul D. DeRocco wrote:
> If I open my sound output device (Intel HDA on Intel mobo), set its
> parameters as follows:
>
> access = SND_PCM_ACCESS_RW_INTERLEAVED
> format = SND_PCM_FORMAT_S32_LE
> channels = 2
> rate = 48000
> periods = 4
> buffer_size = 1024
>
> it returns no errors. If I use snd_pcm_hw_params_get_periods on the
> parameters data structure, I get 4. But if I use snd_pcm_hw_params_current
> to refill it with the actual values from the device,
> snd_pcm_hw_params_get_periods returns 0.

In theory, this cannot happen.  Show the code.   Did you check for errors
with all function calls?


Regards,
Clemens

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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