]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] ac97_codec - fix duplicate control creation in AC97
authorJaya Kumar <jayakumar.alsa@gmail.com>
Mon, 12 Jun 2006 08:08:02 +0000 (10:08 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 22 Jun 2006 19:34:20 +0000 (21:34 +0200)
commit26b66c1d006da3eeecd68053c687419234a0f451
tree534753139efe08d6abbf4140063a6b0a74f227e7
parent10136873c9189d10034e0c6dd6c0e9bbd9a23e86
[ALSA] ac97_codec - fix duplicate control creation in AC97

This patch conditions AC97 control creation by whether or not the
codec is an AD18xx codec. This fixes the case where the default control
would get created and then snd_ac97_mixer_build fails out when creation
of ad18xx specific control would get attempted. This problem was found
and debuged by Marcelo Tosatti.

Signed-off-by: Jaya Kumar <jayakumar.alsa@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/ac97/ac97_codec.c