[alsa-devel] Exporting playback and capture capability to user space

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Nov 22 14:08:23 CET 2011

On Tue, Nov 22, 2011 at 09:57:51AM +0530, Rajeev kumar wrote:

> static struct snd_soc_dai_driver sta529_dai = {

> 		.rates = SPEAR_PCM_RATES,
> 		.formats = SPEAR_PCM_FORMAT,

This looks wrong...

> cpu dai: In case of cpu dai, we are passing the playback and capture
> capability from the platform code and depending on the capability we
> are filling the cpu dai structure in probe function, like

Why are you doing this?  Your driver should export the capabilities of
the hardware and let the machine driver pick any specific configuration
that's needed.

More information about the Alsa-devel mailing list