Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Sverdlin <subaparts@yandex.ru>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, linaro-kernel@lists.linaro.org,
	Mark Brown <broonie@linaro.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Daniel Mack <zonque@gmail.com>
Subject: Re: [PATCH 2/2] ASoC: cs4271: Add DAPM support
Date: Sun, 11 Aug 2013 14:34:19 +0200	[thread overview]
Message-ID: <1376224459.11976.1.camel@r60e> (raw)
In-Reply-To: <1376223377-23047-2-git-send-email-broonie@kernel.org>

Hello!

On Sun, 2013-08-11 at 13:16 +0100, Mark Brown wrote: 
> From: Mark Brown <broonie@linaro.org>
> 
> This makes it possible to hook the device into a more complex board and
> ensures it will continue to work with non-DAPM support removed from the
> core.
> 
> Signed-off-by: Mark Brown <broonie@linaro.org>

Acked-by: Alexander Sverdlin <subaparts@yandex.ru>

> ---
>  sound/soc/codecs/cs4271.c | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c
> index 65ad56c..35a6a67 100644
> --- a/sound/soc/codecs/cs4271.c
> +++ b/sound/soc/codecs/cs4271.c
> @@ -173,6 +173,26 @@ struct cs4271_private {
>  	bool				enable_soft_reset;
>  };
>  
> +static const struct snd_soc_dapm_widget cs4271_dapm_widgets[] = {
> +SND_SOC_DAPM_INPUT("AINA"),
> +SND_SOC_DAPM_INPUT("AINB"),
> +
> +SND_SOC_DAPM_OUTPUT("AOUTA+"),
> +SND_SOC_DAPM_OUTPUT("AOUTA-"),
> +SND_SOC_DAPM_OUTPUT("AOUTB+"),
> +SND_SOC_DAPM_OUTPUT("AOUTB-"),
> +};
> +
> +static const struct snd_soc_dapm_route cs4271_dapm_routes[] = {
> +	{ "Capture", NULL, "AINL" },
> +	{ "Capture", NULL, "AINR" },
> +
> +	{ "AOUTA+", NULL, "Playback" },
> +	{ "AOUTA-", NULL, "Playback" },
> +	{ "AOUTB+", NULL, "Playback" },
> +	{ "AOUTB-", NULL, "Playback" },
> +};
> +
>  /*
>   * @freq is the desired MCLK rate
>   * MCLK rate should (c) be the sample rate, multiplied by one of the
> @@ -598,6 +618,10 @@ static struct snd_soc_codec_driver soc_codec_dev_cs4271 = {
>  
>  	.controls		= cs4271_snd_controls,
>  	.num_controls		= ARRAY_SIZE(cs4271_snd_controls),
> +	.dapm_widgets		= cs4271_dapm_widgets,
> +	.num_dapm_widgets	= ARRAY_SIZE(cs4271_dapm_widgets),
> +	.dapm_routes		= cs4271_dapm_routes,
> +	.num_dapm_routes	= ARRAY_SIZE(cs4271_dapm_routes),
>  };
>  
>  #if defined(CONFIG_SPI_MASTER)

  reply	other threads:[~2013-08-11 12:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-11 12:16 [PATCH 1/2] ASoC: cs4271: Convert to table based control init Mark Brown
2013-08-11 12:16 ` [PATCH 2/2] ASoC: cs4271: Add DAPM support Mark Brown
2013-08-11 12:34   ` Alexander Sverdlin [this message]
2013-08-11 16:02   ` Daniel Mack
2013-08-11 17:41     ` Mark Brown
2013-08-11 12:33 ` [PATCH 1/2] ASoC: cs4271: Convert to table based control init Alexander Sverdlin

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=1376224459.11976.1.camel@r60e \
    --to=subaparts@yandex.ru \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=broonie@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=zonque@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox