Re: Requiring the same sample rate for playback and record?

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

 



At Wed, 16 Jul 2008 14:19:43 -0500,
Timur Tabi wrote:
> 
> Takashi Iwai wrote:
> 
> > In a simple case, you don't need hw_constraint functions.  Just
> > override the corresponding fields of runtime->hw in open callback.
> 
> It looks like ASoC overwrites runtime->hw in *its* _open callback, so I have to
> use the hw_constraint functions.

Then you can call like:

     snd_pcm_hw_constraint_minmax(substream->runtime,
		SNDRV_PCM_HW_PARAM_RATE, fixed_rate, fixed_rate);


Takashi
_______________________________________________
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