From: Michal Bachraty <michal.bachraty@streamunlimited.com>
To: Daniel Mack <zonque@gmail.com>
Cc: alsa-devel@alsa-project.org, tiwai@suse.de,
broonie@opensource.wolfsonmicro.com, lgirdwood@gmail.com,
Vaibhav Bedia <vaibhav.bedia@ti.com>,
linux-kernel@vger.kernel.org, "Hebbar,
Gururaja" <gururaja.hebbar@ti.com>
Subject: Re: [PATCH v3] davinci-mcasp: Add support for multichannel playback
Date: Fri, 01 Mar 2013 15:42:07 +0100 [thread overview]
Message-ID: <1751937.m7T84ofGdH@ganymedes> (raw)
In-Reply-To: <5130AFA1.7000808@gmail.com>
Hi Daniel,
Thanks for testing.
> One thing that has to be considered by users of the driver is that the
> 'serial-dir' DT property has to contain enough '1' entries for
> multichannel playback (or enough '2's for multichannel record). So this
> information is not actually something that describes the hardware, but
> rather some resource that can be and should be allocated dynamically by
> the driver at run-time. Should we consider dropping this property?
Not really, ' serial-dir' also configures specific serializer binded with
certain AXR pin . That means, when you have harware, which do not have aviable
AXR0, you can enable other ARX pin.
example:
serial-dir = < 1 0 0 0 >; /* 0: INACTIVE, 1: TX, 2: RX */
// activate serializer 0, active pin ARX0 in Transmit mode, first audio
// channels are played on ARX0 pin
serial-dir = < 0 1 1 2 >; /* 0: INACTIVE, 1: TX, 2: RX */
// activate serializer 1,2,3 active pin ARX1 in TX mode, ARX2, in TX mode,
// ARX3 in RX mode
In this case, if you are using TDM mode with 2 slots, first two channels will
be played on ARX1 and second two on ARX2.
McAsp fills data for serializers in loop (receive and playback has separate
loop), so if you have configuration:
serial-dir = < 1 2 0 1 >; /* 0: INACTIVE, 1: TX, 2: RX */
// first two channels are played on ARX0 pin, and second two on ARX3
Best,
Michal
next prev parent reply other threads:[~2013-03-01 14:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-28 15:07 [PATCH v3] davinci-mcasp: Add support for multichannel playback Michal Bachraty
2013-03-01 13:39 ` [alsa-devel] " Daniel Mack
2013-03-01 14:42 ` Michal Bachraty [this message]
2013-03-01 14:21 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1751937.m7T84ofGdH@ganymedes \
--to=michal.bachraty@streamunlimited.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=gururaja.hebbar@ti.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tiwai@suse.de \
--cc=vaibhav.bedia@ti.com \
--cc=zonque@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).