ALSA: ac97: split out the generic ac97 registers
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 2 Sep 2017 19:54:03 +0000 (21:54 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Sep 2017 17:24:56 +0000 (18:24 +0100)
commit8e4f7d9b8c652b4eb3ceb790e1e9fe433f9e3b58
tree15a83b22cd6caf0659df89e924e36ecd4d5f48fa
parent569dbb88e80deb68974ef6fdd6a13edb9d686261
ALSA: ac97: split out the generic ac97 registers

Split out from the ac97_codec.h the ac97 generic registers, which can be
used by a codec, typically a generic ac97 codec, and by the ac97 bus, to
scan an ac97 AC-Link.

This split encompasses all the AC97 standard registers, but not the
codec specific ones.

In order to have a clean split between former ac97 bus implementation
and the new coming one in sound/ac97, it is safer to not include any
former ac97 includes, excepting in sound/ac97/compat.c.

Amongst the thing to isolate :
 - don't have the struct snd_ac97 in sound/ac97/* (except compat.c) to not
   be "fooled" by a definition which would come with ac97_codec.h by
   "chance".
 - don't have to have snd_a97_*() functions, as they rely on struct
   snd_ac97.
  - don't want the struct snd_ac97_bus_ops, there is a new one

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/ac97/regs.h [new file with mode: 0644]
include/sound/ac97_codec.h