alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Liam Girdwood <liam.r.girdwood@intel.com>
To: Vinod Koul <vinod.koul@intel.com>
Cc: Jarkko Nikula <jarkko.nikula@linux.jf.intel.com>,
	linux-acpi@vger.kernel.org, alsa-devel@alsa-project.org,
	Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mika Westerberg <mika.westerberg@linux.jf.intel.com>
Subject: Re: [alsa-devel] [RFC] ASoC: core: Allow DAI links to be specified by using ACPI names
Date: Thu, 03 Oct 2013 17:56:06 +0100	[thread overview]
Message-ID: <1380819366.2517.6.camel@loki> (raw)
In-Reply-To: <20131003152942.GI16684@intel.com>

On Thu, 2013-10-03 at 20:59 +0530, Vinod Koul wrote:
> On Thu, Oct 03, 2013 at 05:22:45PM +0300, Jarkko Nikula wrote:
> > On 10/03/2013 04:37 PM, Mark Brown wrote:
> > >On Thu, Oct 03, 2013 at 03:33:56PM +0300, Jarkko Nikula wrote:
> > >
> > >>For instance, matchine drivers could specify codec in DAI link by using:
> > >>	.codec_name = "INT33CA:00",
> > >>instead of
> > >>	.codec_name = "rt5640.0-001c",
> > >>Note that ACPI name is used just an alias during bind time and core
> > >>continues to use device name. In fact, machine drivers could use either
> > >>names.
> > >This is making me wonder if we shouldn't be taking the stable names we
> > >get from ACPI as the dev_name() instead of our internal ones on ACPI
> > >systems (and possibly something similar on DT) rather than adding custom
> > >code like this.
> > This is actually somewhat confusing issue. I think it's relatively
> > easy to switch using ACPI names within ASoC core (by modifying
> > fmt_single_name or something like that).
> > 
> > Problem is that for ACPI enumerated client devices the dev_name(dev)
> > still comes from those subsystems as before. So for instance dev_
> > prints in codec driver or ASoC core keeps printing "rt5640 0-001c:"
> > as before and I personally find it a bit more confusing if internal
> > ASoC names don't match as easily with dev_ prints.
> > 
> > But yes, I agree. This alias name in DAI link is not that clear
> > either as it exists only during bind time.
> Sorry am very ignorant about ACPI, but cant resist asking why should ACPI
> allocate some internal name and then we go about figuring the bus, slave and
> codec. Wouldn't it make sense to just get "rt5640.0-001c" as device from ACPI
> and use it.
> 

We have the situation whereby some BIOS settings can alter the I2C bus
number used by the codec. i.e. matching fail on "rt5640.0-001c" but
would succeed on "rt5640.7-001c".

Moving this to also support ACPI names would be a bonus since we would
only need to match on the static ACPI device name.

Liam

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

  reply	other threads:[~2013-10-03 16:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-03 12:33 [RFC] ASoC: core: Allow DAI links to be specified by using ACPI names Jarkko Nikula
2013-10-03 13:37 ` Mark Brown
2013-10-03 14:22   ` Jarkko Nikula
2013-10-03 15:29     ` [alsa-devel] " Vinod Koul
2013-10-03 16:56       ` Liam Girdwood [this message]
2013-10-03 16:19     ` Mark Brown
2013-10-04  6:28       ` Jarkko Nikula
2013-10-04  6:55         ` Rafael J. Wysocki
2013-10-04  7:38           ` Jarkko Nikula
2013-10-04 17:17             ` Rafael J. Wysocki
2013-10-04  6:53 ` Rafael J. Wysocki
2013-10-04  7:22   ` Jarkko Nikula
2013-10-04 17:17     ` Rafael J. Wysocki
2013-10-24  9:51 ` Mark Brown
2013-10-25  6:53   ` Jarkko Nikula
2013-10-25 10:06     ` Mark Brown
2013-10-25 10:42       ` Jarkko Nikula
2013-10-28 11:53         ` [alsa-devel] " Liam Girdwood
2013-10-28 15:06           ` Mark Brown
2013-10-28 15:23             ` Jarkko Nikula
2013-10-28 16:46               ` 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=1380819366.2517.6.camel@loki \
    --to=liam.r.girdwood@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jarkko.nikula@linux.jf.intel.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mika.westerberg@linux.jf.intel.com \
    --cc=vinod.koul@intel.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;
as well as URLs for NNTP newsgroup(s).