Re: How do I tell ALSA that my driver supports every possible sample rate?

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

 



Takashi Iwai wrote:

>> #define SNDRV_PCM_RATE_ALL (SNDRV_PCM_RATE_8000_192000 | SNDRV_PCM_RATES_5512)
> 
> I'd prefer 5512_19200.  The word "ALL" may vary in future.

That's the point.  It's supposed to indicate all sample rates no matter what they are or 
will be.  However, that may be a moot point ...

> Anyway, the bits SND_PCM_RATES_[0-9]* are ignored when _CONTINUOUS or
> _KNOT is passed.  Only the values in rate_min/rate_max fields are
> referred as actual min/max rates.

Ah!  I wish this stuff were documented in the source files.

So can I do this?

static const struct snd_pcm_hardware mpc86xx_pcm_hardware = {

	.rates			= SNDRV_PCM_RATE_CONTINUOUS,
	.rate_min		= 1,
	.rate_max		= (unsigned int) -1,


-- 
Timur Tabi
Linux Kernel Developer @ Freescale
_______________________________________________
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