All of lore.kernel.org
 help / color / mirror / Atom feed
From: Troy Kisky <troy.kisky@boundarydevices.com>
To: alsa-devel@alsa-project.org
Subject: soc-core: Question about cpu_dai and codec_dai conversions
Date: Tue, 30 Sep 2008 09:10:57 -0700	[thread overview]
Message-ID: <48E24F91.1020201@boundarydevices.com> (raw)


Currently, we have the line

runtime->hw.formats =
	codec_dai->playback.formats & cpu_dai->playback.formats;

in soc-core.c

This seems to force the two to support a common subset.
For example some codec support only big-endian or little-endian

My codec expects the most significant bit to be shifted 1st. I would
call that big-endian. But the codec marks itself as only doing little
endian, because the cpu_dai converts from little-endian to big-endian.
Do all codecs expect the msb 1st? If so, then endianness would seem irrelevant
to codecs and both should be set.


The same goes with number of channels. The davinci dma engine can convert
a playback stream from mono to stereo, or a capture stream from stereo
to mono. The davinci McBsp can also be more efficient if allowed to swap
left and right channels. Is there a method to let the codec know to swap
them back?

Thanks
Troy

             reply	other threads:[~2008-09-30 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-30 16:10 Troy Kisky [this message]
2008-09-30 19:09 ` soc-core: Question about cpu_dai and codec_dai conversions 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=48E24F91.1020201@boundarydevices.com \
    --to=troy.kisky@boundarydevices.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.