All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] ASoC: Cleanup AC'97 reset handling
@ 2015-07-21 19:52 Lars-Peter Clausen
  2015-07-21 19:53 ` [PATCH 1/7] ALSA: ac97: Add helper function to reset the AC97 device Lars-Peter Clausen
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Lars-Peter Clausen @ 2015-07-21 19:52 UTC (permalink / raw)
  To: Takashi Iwai, Mark Brown, Liam Girdwood
  Cc: Manuel Lauss, Charles Keepax, patches, alsa-devel,
	Lars-Peter Clausen

AC'97 devices require that they are properly reset before they can be used.
Currently ASoC drivers do this by hand each on its own. This lead to many
similar but slightly different implementations. E.g. Some supporting warm
reset, some don't. And even though AC'97 do have a device ID which uniquely
identifies a device most drivers only use the content of register 0 for
device verification.

This patch series introduces a new generic helper function in the ALSA
AC'97 core that can be used to reset a device and verify its ID if
required. And then converts drivers to use this new helper function instead
of custom code.

snd_soc_new_ac97_codec() is extended to be able to perform a reset between
the allocation and registration of the AC'97 device, this will allow more
drivers to use it.

- Lars

Lars-Peter Clausen (7):
  ALSA: ac97: Add helper function to reset the AC97 device
  ASoC: ac97: Add support for resetting device before registration
  ASoC: ad1980: Use core AC'97 reset helper
  ASoC: stac9766: Use core reset helper
  ASoC: wm9705: Use core AC'97 reset helper
  ASoC: wm9712: Use core AC'97 reset helper
  ASoC: wm9713: Use core AC'97 reset helper

 include/sound/ac97_codec.h  |  2 ++
 include/sound/soc.h         |  3 ++-
 sound/ac97_bus.c            | 62 +++++++++++++++++++++++++++++++++++++++++++++
 sound/soc/codecs/ad1980.c   | 36 +++++++++-----------------
 sound/soc/codecs/stac9766.c | 57 +++++------------------------------------
 sound/soc/codecs/wm9705.c   | 40 ++++++-----------------------
 sound/soc/codecs/wm9712.c   | 45 ++++++--------------------------
 sound/soc/codecs/wm9713.c   | 48 ++++++-----------------------------
 sound/soc/codecs/wm9713.h   |  2 --
 sound/soc/soc-ac97.c        | 30 ++++++++++++++++++----
 10 files changed, 134 insertions(+), 191 deletions(-)

-- 
2.1.4

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

end of thread, other threads:[~2015-07-27 20:01 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-21 19:52 [PATCH 0/7] ASoC: Cleanup AC'97 reset handling Lars-Peter Clausen
2015-07-21 19:53 ` [PATCH 1/7] ALSA: ac97: Add helper function to reset the AC97 device Lars-Peter Clausen
2015-07-22  8:44   ` Takashi Iwai
2015-07-23 16:34   ` Applied "ALSA: ac97: Add helper function to reset the AC97 device" to the asoc tree Mark Brown
2015-07-21 19:53 ` [PATCH 2/7] ASoC: ac97: Add support for resetting device before registration Lars-Peter Clausen
2015-07-23 16:34   ` Applied "ASoC: ac97: Add support for resetting device before registration" to the asoc tree Mark Brown
2015-07-21 19:53 ` [PATCH 3/7] ASoC: ad1980: Use core AC'97 reset helper Lars-Peter Clausen
2015-07-23 16:34   ` Applied "ASoC: ad1980: Use core AC'97 reset helper" to the asoc tree Mark Brown
2015-07-21 19:53 ` [PATCH 4/7] ASoC: stac9766: Use core reset helper Lars-Peter Clausen
2015-07-23 16:34   ` Applied "ASoC: stac9766: Use core reset helper" to the asoc tree Mark Brown
2015-07-21 19:53 ` [PATCH 5/7] ASoC: wm9705: Use core AC'97 reset helper Lars-Peter Clausen
2015-07-23 16:34   ` Applied "ASoC: wm9705: Use core AC'97 reset helper" to the asoc tree Mark Brown
2015-07-27 19:58   ` [PATCH 5/7] ASoC: wm9705: Use core AC'97 reset helper Charles Keepax
2015-07-21 19:53 ` [PATCH 6/7] ASoC: wm9712: " Lars-Peter Clausen
2015-07-23 16:34   ` Applied "ASoC: wm9712: Use core AC'97 reset helper" to the asoc tree Mark Brown
2015-07-27 19:59   ` [PATCH 6/7] ASoC: wm9712: Use core AC'97 reset helper Charles Keepax
2015-07-21 19:53 ` [PATCH 7/7] ASoC: wm9713: " Lars-Peter Clausen
2015-07-22  8:46   ` Takashi Iwai
2015-07-23 16:34   ` Applied "ASoC: wm9713: Use core AC'97 reset helper" to the asoc tree Mark Brown
2015-07-27 20:01   ` [PATCH 7/7] ASoC: wm9713: Use core AC'97 reset helper Charles Keepax
2015-07-22  8:48 ` [PATCH 0/7] ASoC: Cleanup AC'97 reset handling Takashi Iwai

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.