Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1714532

[PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming

From Jeffy Chen <jeffy.chen@rock-chips.com>
Newsgroups linux.kernel
Subject [PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming
Date 2017-08-18 05:20 +0200
Message-ID <ufFZf-5Vo-5@gated-at.bofh.it> (permalink)
References <ufFZf-5Vo-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Currently we are using devm_snd_soc_register_component, which would
use legacy dai naming when dai drv id is zero.

Set a non-zero dai drv id to use dai drv name for dai name.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---

Changes in v4:
Use non-zero drv id to avoid legacy dai naming instead of switching to
snd_soc_register_codec.

Changes in v3: None
Changes in v2: None

 sound/soc/codecs/rt5514-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c
index 640193d845be..4eb08f636f93 100644
--- a/sound/soc/codecs/rt5514-spi.c
+++ b/sound/soc/codecs/rt5514-spi.c
@@ -62,7 +62,7 @@ static const struct snd_pcm_hardware rt5514_spi_pcm_hardware = {
 
 static struct snd_soc_dai_driver rt5514_spi_dai = {
 	.name = "rt5514-dsp-cpu-dai",
-	.id = 0,
+	.id = 1, /* Set a non-zero drv id to avoid legacy dai naming */
 	.capture = {
 		.stream_name = "DSP Capture",
 		.channels_min = 1,
-- 
2.11.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming Jeffy Chen <jeffy.chen@rock-chips.com> - 2017-08-18 05:20 +0200
  Re: [PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming Mark Brown <broonie@kernel.org> - 2017-08-18 13:50 +0200
    Re: [PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming jeffy <jeffy.chen@rock-chips.com> - 2017-08-18 17:10 +0200
      Re: [PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming Mark Brown <broonie@kernel.org> - 2017-08-21 19:40 +0200
        Re: [PATCH v4 1/9] ASoC: rt5514: Avoid legacy dai naming jeffy <jeffy.chen@rock-chips.com> - 2017-08-22 06:30 +0200

csiph-web