All of lore.kernel.org
 help / color / mirror / Atom feed
* What about symmetric_channels and symmetric_samplebits?
@ 2013-11-04 11:02 Nicolin Chen
  2013-11-04 16:17 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolin Chen @ 2013-11-04 11:02 UTC (permalink / raw)
  To: broonie; +Cc: alsa-devel

Hi all,

As far as I know, some SoCs can only work in mono or stereo mode at
one time. So if we let them capture a mono stream while playing a
stereo stream, there might be a problem occur to one of these two
streams: double-paced or slowed down.

I just want to ask: Is there any existing solution for the case?

In soc-pcm.c, we have soc_pcm_apply_symmetry() to solve unmatched
sample rates situation for simultaneous playback and capture. But
we don't have one for channels. Is that reasonable to add a similar
one for it?

Likewise, we can treat symmetric_rate as a solution for those SoCs
or CODECs which can not handle asymmetrical LRCLK. But it's also
impossible for them to handle asymmetrical BCLK. And accodring to
BCLK = LRCLK * channel number * slot size(fixed or sample bits),
sample bits might also be a problem if they are not using a fixed
slot size.

Thank you,
Nicolin Chen

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What about symmetric_channels and symmetric_samplebits?
  2013-11-04 11:02 What about symmetric_channels and symmetric_samplebits? Nicolin Chen
@ 2013-11-04 16:17 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-11-04 16:17 UTC (permalink / raw)
  To: Nicolin Chen; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 699 bytes --]

On Mon, Nov 04, 2013 at 07:02:51PM +0800, Nicolin Chen wrote:

> In soc-pcm.c, we have soc_pcm_apply_symmetry() to solve unmatched
> sample rates situation for simultaneous playback and capture. But
> we don't have one for channels. Is that reasonable to add a similar
> one for it?

Yes.

> Likewise, we can treat symmetric_rate as a solution for those SoCs
> or CODECs which can not handle asymmetrical LRCLK. But it's also
> impossible for them to handle asymmetrical BCLK. And accodring to
> BCLK = LRCLK * channel number * slot size(fixed or sample bits),
> sample bits might also be a problem if they are not using a fixed
> slot size.

We could add core support for that constraint too, yes.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-04 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04 11:02 What about symmetric_channels and symmetric_samplebits? Nicolin Chen
2013-11-04 16:17 ` Mark Brown

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.