Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: imx-sgtl5000: use of_node to match cpu dai
@ 2013-03-25  3:19 Shawn Guo
  2013-03-25 10:22 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Shawn Guo @ 2013-03-25  3:19 UTC (permalink / raw)
  To: alsa-devel; +Cc: Mark Brown, Shawn Guo

Since imx-sgtl5000 is only used on DT platform, it makes more sense to
use cpu_of_node rather than cpu_dai_name to match cpu dai.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
 sound/soc/fsl/imx-sgtl5000.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c
index 424347e..9584e78 100644
--- a/sound/soc/fsl/imx-sgtl5000.c
+++ b/sound/soc/fsl/imx-sgtl5000.c
@@ -148,7 +148,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
 	data->dai.stream_name = "HiFi";
 	data->dai.codec_dai_name = "sgtl5000";
 	data->dai.codec_of_node = codec_np;
-	data->dai.cpu_dai_name = dev_name(&ssi_pdev->dev);
+	data->dai.cpu_of_node = ssi_np;
 	data->dai.platform_name = "imx-pcm-audio";
 	data->dai.init = &imx_sgtl5000_dai_init;
 	data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: imx-sgtl5000: use of_node to match cpu dai
  2013-03-25  3:19 [PATCH] ASoC: imx-sgtl5000: use of_node to match cpu dai Shawn Guo
@ 2013-03-25 10:22 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-03-25 10:22 UTC (permalink / raw)
  To: Shawn Guo; +Cc: alsa-devel


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

On Mon, Mar 25, 2013 at 11:19:12AM +0800, Shawn Guo wrote:
> Since imx-sgtl5000 is only used on DT platform, it makes more sense to
> use cpu_of_node rather than cpu_dai_name to match cpu dai.

Applied, thanks.

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

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-25 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-25  3:19 [PATCH] ASoC: imx-sgtl5000: use of_node to match cpu dai Shawn Guo
2013-03-25 10:22 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox