From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: alsa-devel@alsa-project.org
Cc: ext Mark Brown <broonie@opensource.wolfsonmicro.com>
Subject: Re: [PATCH 5/5] ASoC: tlv320dac33: Safety check for codec slave mode
Date: Mon, 4 Jan 2010 09:03:23 +0200 [thread overview]
Message-ID: <201001040903.23159.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <20091231115218.GA4110@opensource.wolfsonmicro.com>
Hello,
On Thursday 31 December 2009 13:52:19 ext Mark Brown wrote:
> On Thu, Dec 31, 2009 at 10:30:23AM +0200, Peter Ujfalusi wrote:
> > The currently available FIFO modes (mode1 and mode7) require master
> > mode from the codec.
> > Do not allow the slave configuration when the FIFO is in use.
> >
> > Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
>
> Ideally the mode configuration control ought to have a corresponding
> limit in it too, so that these modes can't be enabled when the device
> is configured as a slave and is active.
Well, the FIFO mode can not be changed runtime (while the playback is running)
for various reasons.
The control is protected against changes while the playback is running.
Since at the moment the driver only supports master mode FIFO scenarios (expect
for the FIFO bypass mode, which should work in slave mode as well) I think this
check is sufficient to ensure that the codec/cpu dai is configured correctly.
As far as I know the set_dai_fmt is the place where the machine driver
configures the codec to master/slave, so this must be the correct place for a
safety check.
--
Péter
next prev parent reply other threads:[~2010-01-04 7:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 8:30 [PATCH 0/5] ASoC: tlv320dac33: Adding new FIFO mode Peter Ujfalusi
2009-12-31 8:30 ` [PATCH 1/5] ASoC: tlv320dac33: Change nsample switch to FIFO mode enum Peter Ujfalusi
2009-12-31 8:30 ` [PATCH 2/5] ASoC: tlv320dac33: Introduce prefill and playback state handlers Peter Ujfalusi
2009-12-31 8:30 ` [PATCH 3/5] ASoC: tlv320dac33: Clean up the hardware configuration code Peter Ujfalusi
2009-12-31 8:30 ` [PATCH 4/5] ASoC: tlv320dac33: Add new FIFO mode: mode 7 Peter Ujfalusi
2009-12-31 8:30 ` [PATCH 5/5] ASoC: tlv320dac33: Safety check for codec slave mode Peter Ujfalusi
2009-12-31 11:52 ` Mark Brown
2010-01-04 7:03 ` Peter Ujfalusi [this message]
2009-12-31 11:55 ` [PATCH 0/5] ASoC: tlv320dac33: Adding new FIFO mode 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=201001040903.23159.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.