From: Timur Tabi <timur@freescale.com>
To: alsa-devel@alsa-project.org
Subject: How do I use SNDRV_PCM_INFO_JOINT_DUPLEX?
Date: Tue, 18 Dec 2007 13:50:42 -0600 [thread overview]
Message-ID: <47682492.7050500@freescale.com> (raw)
I'm working on an ASoC driver. I have a limitation in my hardware that if I
have an active substream, I cannot re-program the hardware registers that
control the sample size.
This means, for example, if I'm playing 16-bit audio, and I want to start
capture, I cannot program the sample size into the hardware. My only choice is
to have already programmed the capture sample size *before* I started playback.
The easiest way to implement this is to make sure that the second stream has the
same sample size as the first. That way, I won't need to reprogram the
registers, because they'll already be programmed correctly.
I discovered the SNDRV_PCM_INFO_JOINT_DUPLEX option, but I can't figure out how
to use it. I know it needs to be set in my snd_pcm_hardware.info, but then
what? How do I tell ALSA that the "joint" part is just that the sample sizes
must be the same?
--
Timur Tabi
Linux kernel developer at Freescale
next reply other threads:[~2007-12-18 19:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-18 19:50 Timur Tabi [this message]
2007-12-19 8:27 ` How do I use SNDRV_PCM_INFO_JOINT_DUPLEX? Clemens Ladisch
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=47682492.7050500@freescale.com \
--to=timur@freescale.com \
--cc=alsa-devel@alsa-project.org \
/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.