[alsa-devel] [PATCH] ASOC: utils: Update dummy codec DAI settings to allow stream creation

Selma Bensaid selma.bensaid at intel.com
Fri Jun 8 10:02:38 CEST 2012


On 06/07/2012 11:30 PM, Mark Brown wrote:
>
> I still don't understand what this is actually supposed to fix - why are
> we trying to set up a stream to something that isn't there?  Though it
> looks like this was added for dynamic PCM which has no mainline users so
> perhaps there's a sensible use for this...
I'm trying to use the dummy codec for BT and Modem device where the 
coded is handled
@ AP side.
Without updating the dummy codec, I fails when opening my devices due to 
the check
performed in soc_pcm_open: No matching rates, No matching formats and No 
matching
channels Errors.
>
> The other question is how we decide that these are sensible values to
> set for the dummy CODEC.
For formats the dummy codec support all formats so it does not impact 
the runtime->hw.formats = codec_dai_drv->playback.formats & 
cpu_dai_drv->playback.formats;

For rates, I 'll submit a new version of the patch since the 
SNDRV_PCM_RATE_CONTINUOUS is not the right value to use.

For channels_min, the value 1 does not impact the 
runtime->hw.channels_min =  max(codec_dai_drv->capture.channels_min, 
cpu_dai_drv->capture.channels_min);

For channels_max, I 'll submit a new version of the patch to set it to 
MAX so does not impact the runtime->hw.channels_max = 
min(codec_dai_drv->playback.channels_max 
cpu_dai_drv->playback.channels_max);
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.



More information about the Alsa-devel mailing list