Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Zidan Wang <zidan.wang@freescale.com>
To: Mark Brown <broonie@kernel.org>
Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org,
	timur@tabi.org, Xiubo.Lee@gmail.com
Subject: Re: [PATCH 1/2] ASoC: imx-wm8958: add imx-wm8958 machine driver
Date: Wed, 9 Dec 2015 11:34:52 +0800	[thread overview]
Message-ID: <20151209033449.GA30401@shlinux2> (raw)
In-Reply-To: <20151208124713.GQ5727@sirena.org.uk>

On Tue, Dec 08, 2015 at 12:47:13PM +0000, Mark Brown wrote:
> On Tue, Dec 08, 2015 at 05:40:13PM +0800, Zidan Wang wrote:
> 
> > + - aifx-format             : set format for aifx, such as "i2s", "left_j",
> > +			     "dsp_a", "dsp_b".
> 
> > + - aifx-bitclock-master    : If present, aifx wroks as bit clock master.
> > +			     Otherwise, aifx works as bit clock slave.
> 
> > + - aifx-frame-master	   : If present, aifx wroks as frame clock master.
> > +			     Otherwise, aifx works as frame clock slave.
> 
> > + - aifx-bitclock-inversion : If present, bit clock will invert polarity.
> 
> > + - aifx-frame-inversion	   : If present, frame clock will invert polarity.
> 
> > + - aifx-continuous-clock   : If present, bit clock will be continuous.
> > +			     Otherwise, dai bit clocks can be be gated
> > +			     (disabled) when the dai is not sending or
> > +			     receiving PCM data in a frame.
> 
> Why are these selectable in the machine driver?
I have tested and found that sai<->aif1 can support "i2s" "left_j"
"dsp_a" "dsp_b" format, and can support cpu dai master and slave
mode. But I haven't tested voice dai and bt dai because of hardware
limitation. I just using sai<->aif2 to test aif2.

So I want to configure the dai format from device tree. And there is
a help function snd_soc_of_parse_daifmt for me to do this, so I add
these selectable to the machine driver.

> 
> > +		model = "wm8960-audio";
> 
> Cut'n'paste error here.

it should be "wm8958-audio", i will modify it.


Best Regards,
Zidan Wang

  reply	other threads:[~2015-12-09  3:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08  9:40 [PATCH 1/2] ASoC: imx-wm8958: add imx-wm8958 machine driver Zidan Wang
2015-12-08  9:40 ` [PATCH 2/2] ASoC: imx-wm8958: add headphone detected gpio support Zidan Wang
2015-12-08 12:47 ` [PATCH 1/2] ASoC: imx-wm8958: add imx-wm8958 machine driver Mark Brown
2015-12-09  3:34   ` Zidan Wang [this message]
2016-01-05 17:21     ` 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=20151209033449.GA30401@shlinux2 \
    --to=zidan.wang@freescale.com \
    --cc=Xiubo.Lee@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=nicoleotsuka@gmail.com \
    --cc=timur@tabi.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