All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	Simon <horms@verge.net.au>, shiiba <naoya.shiiba.nx@renesas.com>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Das Biju <biju.das@bp.renesas.com>
Subject: Re: [PATCH 04/13] ASoC: dapm: add driver prefix matching for snd_soc_dapm_add_route()
Date: Sat, 14 Mar 2015 13:19:56 +0100	[thread overview]
Message-ID: <5504276C.4050503@metafoo.de> (raw)
In-Reply-To: <87wq2lr8s8.wl%kuninori.morimoto.gx@renesas.com>

On 03/13/2015 02:22 AM, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Current DAPM will lost correct route settings if some CPU/Codec was using
> same stream name, and it will be problem when DPCM case.
> For example, stream name of Renesas sound drver / ak4642 / dummy for DPCM
> have same name as "Playback", like below
>
> FE CPU   (rsnd):   "DAI0 Playback"
>     Codec (dummy):  "Playback"
>
> BE CPU   (dummy):  "Playback"
>     Codec (ak4642): "Playback"
>
> Then, "Playback" - "DAI0 Playback" can't match correctly. This patch adds
> "driver name" prefix for this case.
> We can use "ak4642-hifi Playback" - "DAI0 Playback" here.

Hi,

There is already a prefix mechanism to handle this. If you have widgets with 
the same name in different contexts you can use the snd_soc_codec_conf 
struct and set the name_prefix field to assign a unique prefix to each context.

- Lars

  reply	other threads:[~2015-03-14 12:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13  1:20 [PATCH 0/13] ASoC: Renesas adds DPCM based sampling rate convert Kuninori Morimoto
2015-03-13  1:21 ` [PATCH 01/13] ASoC: core: remove of_xlate_dai_name from snd_soc_component_driver Kuninori Morimoto, Kuninori Morimoto
2015-03-13  1:21 ` [PATCH 02/13] ASoC: core: add snd_soc_get_dai_info() to get driver infomation Kuninori Morimoto, Kuninori Morimoto
2015-03-13  1:21 ` Kuninori Morimoto
2015-03-13  1:22 ` [PATCH 03/13] ASoC: dapm: add snd_soc_dapm_route_scan macro for DAPM route Kuninori Morimoto
2015-03-13  1:22 ` [PATCH 04/13] ASoC: dapm: add driver prefix matching for snd_soc_dapm_add_route() Kuninori Morimoto
2015-03-14 12:19   ` Lars-Peter Clausen [this message]
2015-03-16  2:44     ` Kuninori Morimoto
     [not found] ` <874mppsngc.wl%kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
2015-03-13  1:23   ` [PATCH 05/13] ASoC: rsnd-dpcm-card: add Renesas sound card support for DPCM Kuninori Morimoto
2015-03-13  1:24   ` [PATCH 06/13] ASoC: rsnd-dpcm-card: add .be_hw_params_fixup support for convert rate Kuninori Morimoto
2015-03-13  1:24 ` [PATCH 07/13] ASoC: rsnd: no more SSI restart when unusual situation Kuninori Morimoto
2015-03-13  1:24 ` [PATCH 08/13] ASoC: rsnd: no more SRC " Kuninori Morimoto
2015-03-13  1:25 ` [PATCH 09/13] ASoC: rsnd: tidyup error message format Kuninori Morimoto
2015-03-13  1:25 ` [PATCH 10/13] ASoC: rsnd: show debug info for sampling rate convert Kuninori Morimoto
2015-03-13  1:26 ` [PATCH 11/13] ASoC: rsnd: don't call clk_prepare_enable/unprepare() from inside spin lock Kuninori Morimoto
2015-03-13  1:26 ` [PATCH 12/13] ASoC: rsnd: add dai_link stream name Kuninori Morimoto
2015-03-13  1:27 ` [PATCH 13/13] ASoC: rsnd: add DPCM based sampling rate convert Kuninori Morimoto

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=5504276C.4050503@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=biju.das@bp.renesas.com \
    --cc=broonie@kernel.org \
    --cc=horms@verge.net.au \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=lgirdwood@gmail.com \
    --cc=naoya.shiiba.nx@renesas.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.