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

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

 



On Wed, 2008-07-16 at 10:11 -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.
> > 
> > For example, pci/via82xx.c sets the current rate value to
> > runtime->hw.rate_min/max if there is another stream.
> 
> Are you talking about this code:
> 
> 	} else {
> 		/* a fixed rate */
> 		runtime->hw.rates = SNDRV_PCM_RATE_KNOT;
> 		runtime->hw.rate_max = runtime->hw.rate_min = ratep->rate;
> 	}
> 
> Last I heard, ASoC doesn't work with SNDRV_PCM_RATE_KNOT.  But I think I can
> still use this method.  I'll just need to use a real SNDRV_PCM_RATE_xxx value.
> 

Supporting KNOT in the core is probably the best solution. It shouldn't
be too hard at add ....

Liam

_______________________________________________
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