From: broonie@kernel.org (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/7] sound: soc: add ASoC board driver for Armada 370 DB
Date: Tue, 11 Feb 2014 12:48:44 +0000 [thread overview]
Message-ID: <20140211124844.GO13533@sirena.org.uk> (raw)
In-Reply-To: <1391102051-5319-4-git-send-email-thomas.petazzoni@free-electrons.com>
On Thu, Jan 30, 2014 at 06:14:07PM +0100, Thomas Petazzoni wrote:
> + fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS;
> + ret = snd_soc_dai_set_fmt(cpu_dai, fmt);
> + if (ret < 0)
> + return ret;
> +
> + ret = snd_soc_dai_set_fmt(codec_dai, fmt);
> + if (ret < 0)
> + return ret;
Set .dai_fmt in the DAI link.
> +static int a370db_dai_init(struct snd_soc_pcm_runtime *rtd)
> +{
> + struct snd_soc_codec *codec = rtd->codec;
> + struct snd_soc_dapm_context *dapm = &codec->dapm;
> +
> + snd_soc_dapm_enable_pin(dapm, "Out Jack");
> + snd_soc_dapm_enable_pin(dapm, "In Jack");
No need to do this, everything defaults to enabled.
> +
> + card->dev = &pdev->dev;
> +
> + return snd_soc_register_card(card);
> +}
devm_snd_soc_register_card().
> +static const struct of_device_id a370db_dt_ids[] = {
> + { .compatible = "marvell,a370db-audio" },
> + { },
> +};
No binding document for this, and you should be using DT to look up the
controller and CODEC rather than hard coding their names (which may
change in future when instantiated from DT, especially the platform
device).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140211/3e85d280/attachment.sig>
next prev parent reply other threads:[~2014-02-11 12:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 17:14 [PATCH 0/7] Audio support for Armada 370 DB Thomas Petazzoni
2014-01-30 17:14 ` [PATCH 1/7] sound: codec: add Device Tree binding to cs42l51 Thomas Petazzoni
2014-02-11 12:35 ` Mark Brown
2014-01-30 17:14 ` [PATCH 2/7] sound: soc: enable Kirkwood driver for mvebu platforms Thomas Petazzoni
2014-02-11 12:38 ` Mark Brown
2014-01-30 17:14 ` [PATCH 3/7] sound: soc: add ASoC board driver for Armada 370 DB Thomas Petazzoni
2014-02-11 12:48 ` Mark Brown [this message]
2014-01-30 17:14 ` [PATCH 4/7] ARM: mvebu: add audio I2S controller to Armada 370 Device Tree Thomas Petazzoni
2014-01-30 17:14 ` [PATCH 5/7] ARM: mvebu: add I2C0 muxing option for Armada 370 SoC Thomas Petazzoni
2014-01-30 17:14 ` [PATCH 6/7] ARM: mvebu: add audio support to Armada 370 DB Thomas Petazzoni
2014-01-30 17:14 ` [PATCH 7/7] ARM: mvebu: enable audio options in mvebu_defconfig Thomas Petazzoni
2014-01-30 21:07 ` Jason Cooper
2014-02-10 14:21 ` [alsa-devel] [PATCH 0/7] Audio support for Armada 370 DB Thomas Petazzoni
2014-02-10 14:57 ` Mark Brown
2014-02-10 15:04 ` Thomas Petazzoni
2014-02-10 18:25 ` 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=20140211124844.GO13533@sirena.org.uk \
--to=broonie@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).