[alsa-devel] [PATCH v2] add channel order map interface in asoc core

Barry Song 21cnbao at gmail.com
Sat Sep 12 14:55:03 CEST 2009


On Sat, Sep 12, 2009 at 8:49 PM, Mark Brown
<broonie at opensource.wolfsonmicro.com> wrote:
> On Sat, Sep 12, 2009 at 01:16:29AM +0800, Barry Song wrote:
>> The patch adds an interface to set the relationship between audio
>> channel number and slot number. The interface should be really useful
>> because audio channel n doesn't always use slot n in all platforms. And
>> for some devices, the relationship even can change with sound mode
>> switch in 2.1,3.1,4.1,5.1,6.1,7.1 etc.
>
>> Signed-off-by: Barry Song <21cnbao at gmail.com>
>
> Applied, thanks.  I'll probably add another patch shortly clarifying the
> documentation a little.
>
I am just sending v3 patch to fix a typo existing in v1/v2 version
patch before you apply it:
+       if (dai->ops && dai->ops->set_tdm_slot)
should be:
 if (dai->ops && dai->ops->set_channel_map)
I am really sorry for that.
+               return dai->ops->set_channel_map(dai, tx_num, tx_slot,
+                       rx_num, rx_slot);
+       else
+               return -EINVAL;

-Barry


More information about the Alsa-devel mailing list