All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: RongJun Ying <rjying@gmail.com>
Cc: alsa-devel@alsa-project.org, Takashi Iwai <tiwai@suse.de>,
	Liam Girdwood <lgirdwood@gmail.com>,
	workgroup.linux@csr.com, Rongjun Ying <rongjun.ying@csr.com>
Subject: Re: [PATCH v5-resend 5/7] ASoC: sirf: Add hdmi card
Date: Fri, 7 Mar 2014 14:06:33 +0800	[thread overview]
Message-ID: <20140307060633.GF13126@sirena.org.uk> (raw)
In-Reply-To: <1394008480-29135-6-git-send-email-rongjun.ying@csr.com>


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

On Wed, Mar 05, 2014 at 04:34:38PM +0800, RongJun Ying wrote:
> From: Rongjun Ying <rongjun.ying@csr.com>
> 
> This connects platform DAI, hdmi audio  codec DAI  and
> SiRF I2S DAI together and works as a mach driver.

This looks like it should be able to use simple-card?

> +static int sirf_hdmi_hw_params(struct snd_pcm_substream *substream,
> +	struct snd_pcm_hw_params *params)
> +{
> +	struct snd_soc_pcm_runtime *rtd = substream->private_data;
> +	struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
> +	struct snd_soc_codec *codec = rtd->codec;
> +	struct snd_soc_card *card = codec->card;
> +	unsigned int fmt;
> +	int ret;
> +
> +	fmt = card->dai_link[0].dai_fmt;
> +
> +	ret = snd_soc_dai_set_fmt(cpu_dai, fmt);

The whole point with dai_fmt is that the framework will do this for you.

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

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



  reply	other threads:[~2014-03-07  6:22 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05  8:34 [PATCH v5-resend 0/7] ASoC: add CSR SiRFSoC sound drivers RongJun Ying
2014-03-05  8:34 ` [PATCH v5-resend 1/7] ASoC: sirf: Add SiRF internal audio codec driver RongJun Ying
2014-03-05  8:34 ` [PATCH v5-resend 2/7] ASoC: sirf: Add SiRF audio port driver is used by SiRF internal audio codec RongJun Ying
2014-03-06  9:20   ` Mark Brown
2014-03-06  9:51     ` RongJun Ying
2014-03-07  1:49       ` Mark Brown
2014-03-12  9:56         ` RongJun Ying
2014-03-12 12:00           ` Mark Brown
2014-03-05  8:34 ` [PATCH v5-resend 3/7] ASoC: sirf: Add SiRF audio card RongJun Ying
2014-03-06  9:22   ` Mark Brown
2014-03-05  8:34 ` [PATCH v5-resend 4/7] ASoC: sirf: Add SiRF I2S driver RongJun Ying
2014-03-07  6:05   ` Mark Brown
2014-03-07  7:13     ` RongJun Ying
2014-03-07  8:38     ` RongJun Ying
2014-03-05  8:34 ` [PATCH v5-resend 5/7] ASoC: sirf: Add hdmi card RongJun Ying
2014-03-07  6:06   ` Mark Brown [this message]
2014-03-05  8:34 ` [PATCH v5-resend 6/7] ASoC: sirf: Add usp driver which is used by dsp mode RongJun Ying
2014-03-07  6:15   ` Mark Brown
2014-03-05  8:34 ` [PATCH v5-resend 7/7] ASoC: sirf: Add bt-sco card RongJun Ying
2014-03-07  6:12   ` 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=20140307060633.GF13126@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=lgirdwood@gmail.com \
    --cc=rjying@gmail.com \
    --cc=rongjun.ying@csr.com \
    --cc=tiwai@suse.de \
    --cc=workgroup.linux@csr.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.