On Sat, 30 Jan 2010 17:41:30 +0100 (CET) Guennadi Liakhovetski <g.liakhovetski@xxxxxx> wrote: > On Sat, 30 Jan 2010, Giuliano Pochini wrote: > > > On Sat, 30 Jan 2010 16:59:48 +0100 (CET) > > Guennadi Liakhovetski <g.liakhovetski@xxxxxx> wrote: > > > > > On Sat, 30 Jan 2010, Giuliano Pochini wrote: > > > > > > > On Fri, 29 Jan 2010 11:44:43 +0100 (CET) > > > > Guennadi Liakhovetski <g.liakhovetski@xxxxxx> wrote: > > > > > > > > > > Try something simpler: > > > > > > > > > > > > arecord -v -Dplughw:0 -c1 -r44100 -fS16_LE out.wav > > > > > > > > > > > > It prints the given parameters and, if the format is not supported by the > > > > > > card, it also prints the choosen settings. In that case audio data is > > > > > > transparently converted to the format you requested. > > > > > > You shouldn't have to specify plughw: because it's the default. > > > > > > > > > > Unfortunately, didn't work: > > > > > > > > Did you try with "-Dplughw:0" ? > > > > > > Yes, I did, doesn't help. > > > > Does the driver uses rules to set hw params constraints ? If so, there may > > be an error there. If -for example- rule_format_given_channels() and > > rule_channels_given_format() are not perfectly symmetrical then the plughw > > plugin does not work. > > This is an ASoC driver (sound/soc), here's the code: > > http://mailman.alsa-project.org/pipermail/alsa-devel/2010-January/024701.html > > it is also already in the for-2.6.34 branch of this git tree: > > http://git.kernel.org/?p=linux/kernel/git/broonie/sound-2.6.git;a=summary > > BTW, I do not find any hits for rule_channels_given_format or > rule_format_given_channels - not even on Google, what did you mean? No, it was just an example in case sample format and number of channels are not independent. The function to add a rule is snd_pcm_hw_rule_add(). I guess your driver do not use that feature. I'm out of ideas on that plughw: issue at the moment. I suggest you to write on the alsa-devel mailing list. -- Giuliano. ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user