linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: remove snd_soc_pcm_set/get_drvdata()
@ 2016-08-01  6:07 Kuninori Morimoto
  2016-08-01  6:09 ` [PATCH 1/3] ASoC: sst-haswell-pcm: don't use snd_soc_pcm_set_drvdata() Kuninori Morimoto
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2016-08-01  6:07 UTC (permalink / raw)
  To: Mark Brown
  Cc: Linux-ALSA, Liam Girdwood, Simon, linux-renesas-soc, Jie Yang,
	Takashi Iwai, Patrick Lai, Banajit Goswami, linux-kernel


Hi Mark

snd_soc_pcm_set_drvdata() will set driver data to rtd->dev,
but driver data of rtd->dev is already used as "rtd" on
soc_post_component_init().

	static int soc_post_component_init(xxx)
	{
		...
		dev_set_drvdata(rtd->dev, rtd);
		...
	}

But, ASoC has snd_soc_pcm_set/get_drvdata() to set rtd->dev.
It will overwrite existing data and will break system.
This patch tries to solve this issue.
Intel haswell and qcom is using these functions.

** Note **

I don't have these boards, thus, I did compile test only.

Kuninori Morimoto (3):
      ASoC: sst-haswell-pcm: don't use snd_soc_pcm_set_drvdata()
      ASoC: lpass-platform: don't use snd_soc_pcm_set_drvdata()
      ASoC: remove snd_soc_pcm_set/get_drvdata()

 include/sound/soc.h                       | 11 -----------
 sound/soc/intel/haswell/sst-haswell-pcm.c |  1 -
 sound/soc/qcom/lpass-platform.c           | 14 +++++++-------
 sound/soc/qcom/lpass.h                    |  2 ++
 4 files changed, 9 insertions(+), 19 deletions(-)

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

end of thread, other threads:[~2016-08-09 12:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-01  6:07 [PATCH 0/3] ASoC: remove snd_soc_pcm_set/get_drvdata() Kuninori Morimoto
2016-08-01  6:09 ` [PATCH 1/3] ASoC: sst-haswell-pcm: don't use snd_soc_pcm_set_drvdata() Kuninori Morimoto
2016-08-08 13:16   ` Mark Brown
2016-08-09  3:26     ` Kuninori Morimoto
2016-08-01  6:10 ` [PATCH 2/3] ASoC: lpass-platform: " Kuninori Morimoto
2016-08-09 12:44   ` Applied "ASoC: lpass-platform: don't use snd_soc_pcm_set_drvdata()" to the asoc tree Mark Brown
2016-08-01  6:11 ` [PATCH 3/3] ASoC: remove snd_soc_pcm_set/get_drvdata() Kuninori Morimoto
2016-08-09 12:44   ` Applied "ASoC: remove snd_soc_pcm_set/get_drvdata()" to the asoc tree Mark Brown

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).