From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: alsa-devel@alsa-project.org
Cc: ext Takashi Iwai <tiwai@suse.de>,
"Aaltonen Matti.J (Nokia-MS/Tampere)"
<matti.j.aaltonen@nokia.com>,
ext Mark Brown <broonie@opensource.wolfsonmicro.com>,
"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>
Subject: Re: [PATCH v2 0/1] *** SUBJECT HERE ***
Date: Thu, 22 Jul 2010 14:07:18 +0300 [thread overview]
Message-ID: <201007221407.18882.peter.ujfalusi@nokia.com> (raw)
In-Reply-To: <201007221357.16840.peter.ujfalusi@nokia.com>
Hi,
to give Takashi the context ;)
On Thursday 22 July 2010 13:57:16 Ujfalusi Peter (Nokia-MS/Tampere) wrote:
> So let's ask Takashi:
> Is it possible to use the constraint API for placing HALF_DUPLEX on a
> stream (modifying bits in the info_flags)?
Is there a clean way to do:
+ switch (wl1273->mode) {
+ case WL1273_MODE_BT:
+ pcm->info_flags &= ~SNDRV_PCM_INFO_HALF_DUPLEX;
+ break;
+ case WL1273_MODE_FM_RX:
+ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
+ pr_err("Cannot play in RX mode.\n");
+ return -EINVAL;
+ }
+ pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX;
^
This
+ break;
+ case WL1273_MODE_FM_TX:
+ if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
+ pr_err("Cannot capture in TX mode.\n");
+ return -EINVAL;
+ }
+ pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX;
^
and this
+ break;
+ default:
with for example the ALSA constraint API?
The info_flags are modified at stream open time.
Thanks,
Péter
next prev parent reply other threads:[~2010-07-22 11:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-22 9:38 [PATCH v2 0/1] *** SUBJECT HERE *** Matti J. Aaltonen
2010-07-22 9:38 ` [PATCH v2 1/1] ASoC: TI WL1273 FM Radio Codec Matti J. Aaltonen
2010-07-22 9:48 ` [PATCH v2 0/1] *** SUBJECT HERE *** Mark Brown
2010-07-22 10:57 ` Peter Ujfalusi
2010-07-22 11:02 ` Mark Brown
2010-07-22 11:07 ` Peter Ujfalusi [this message]
2010-07-22 11:30 ` Takashi Iwai
2010-07-22 12:04 ` Mark Brown
2010-07-22 11:18 ` matti.j.aaltonen
2010-07-22 11:25 ` Peter Ujfalusi
2010-07-22 11:37 ` matti.j.aaltonen
2010-07-22 12:02 ` Mark Brown
2010-07-22 12:11 ` matti.j.aaltonen
2010-07-22 13:05 ` Mark Brown
2010-07-22 14:13 ` Matti J. Aaltonen
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=201007221407.18882.peter.ujfalusi@nokia.com \
--to=peter.ujfalusi@nokia.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
--cc=matti.j.aaltonen@nokia.com \
--cc=tiwai@suse.de \
/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.