Re: What is the meaning of the mask values in the pcm hw constraints struct ?

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

 



On Tue, Oct 20, 2009 at 04:54:32PM +0100, Neil Jones wrote:

> I get the error "aplay: set_params:1022: Unable to install hw params:"
> I have traced the problem to a failing ioctl call
> (snd_pcm_playback_ioctl) the error occurs in snd_pcm_hw_refine when
> refining the mask for the SNDRV_PCM_HW_PARAM_ACCESS mask, all the bit
> fields in my runtime->hw_constraints are zero for this field, but the

You should set these up with snd_soc_set_runtime_hwparams() with the
flags in the info field.

> requested params have the value 7, Im not sure what this means, the
> SNDRV_PCM_ACCESS_xxx defines in asound.h only go upto 4 ?

It's a bitmask at this point, treat those values as shifts.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux