All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: [ASoC] machine driver and channel configuration
Date: Fri, 08 Jun 2007 10:31:35 -0500	[thread overview]
Message-ID: <46697657.2000302@freescale.com> (raw)
In-Reply-To: <loom.20070608T161908-148@post.gmane.org>

Matthieu CASTET wrote:
> Hi,
> 
> If the platform/cpu_dai driver and codec support capture and playback channels.
> But on the board only the playback link is connected.
> 
> In this configuration, the codec and platform/cpu_dai driver shouldn't try to
> use the capture path (and the resource associated to this).
> 
> 
> Is there a way to do something like that ?

I'm just learning about ASoC myself, but using wm8731.c as an example, wouldn't this work:

struct snd_soc_codec_dai wm8731_dai = {
	.name = "WM8731",
	.playback = {
		.stream_name = "Playback",
		.channels_min = 1,
		.channels_max = 2,
		.rates = WM8731_RATES,
		.formats = WM8731_FORMATS,},
	.capture = {
		.stream_name = "Capture",
		.channels_min = 1,
		.channels_max = 2,
		.rates = WM8731_RATES,
		.formats = WM8731_FORMATS,},

Just change capture.channels_min and channels_max to 0.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

  reply	other threads:[~2007-06-08 15:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-08 14:38 [ASoC] machine driver and channel configuration Matthieu CASTET
2007-06-08 15:31 ` Timur Tabi [this message]
2007-06-08 15:55   ` Matthieu CASTET
2007-06-12  6:01     ` Nobin Mathew

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=46697657.2000302@freescale.com \
    --to=timur@freescale.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=matthieu.castet@parrot.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.