[alsa-devel] [PATCH 0/3] ALSA: pcm:

Takashi Sakamoto o-takashi at sakamocchi.jp
Fri Jun 9 03:45:01 CEST 2017


Oops, I sent this patchset with cover-letter without good subject line, 
sorry...

On Jun 9 2017 09:34, Takashi Sakamoto wrote:
> This is a part of layout of the structure.
> 
> struct snd_pcm_hw_params {
>      ...
>      unsigned int info;
>      unsigned int msbits;
>      unsigned int rate_num;
>      unsigned int rate_den;
>      snd_pcm_uframes_t fifo_size;
>      ...
> };
> 
> For example, although the 'msbits', 'rate_num' and 'rate_den' fields are
> filled in a result of HW_REFINE command conditionally, they're never
> filled in a result of HW_PARAMS command. This seems a bug.

I note that there's a case for HW_PARAMS that the result includes proper 
values to these parameters. When drivers register constrain rules 
relevant to them, the members are filled.


Regards

Takashi Sakamoto


More information about the Alsa-devel mailing list