aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/oxygen.h
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2008-01-16 02:28:17 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:59 -0500
commit31c77643a06313b3a26f4c38c75ceec2a89ad31a (patch)
treeb38b6be831ebf4ebd20df512b1544938a3cbd224 /sound/pci/oxygen/oxygen.h
parent12b74c80cc20dec27b9f9eeb24ee86170c34e5a1 (diff)
[ALSA] oxygen: make AC97 codec optional
Only initialize and create mixer controls for the first AC97 codec when one has actually been detected. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/oxygen/oxygen.h')
-rw-r--r--sound/pci/oxygen/oxygen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h
index 4a0c6634ac96..66dee9504340 100644
--- a/sound/pci/oxygen/oxygen.h
+++ b/sound/pci/oxygen/oxygen.h
@@ -56,7 +56,8 @@ struct oxygen {
56 u8 spdif_playback_enable; 56 u8 spdif_playback_enable;
57 u8 ak4396_reg1; 57 u8 ak4396_reg1;
58 u8 revision; 58 u8 revision;
59 u8 has_2nd_ac97_codec; 59 u8 has_ac97_0;
60 u8 has_ac97_1;
60 u32 spdif_bits; 61 u32 spdif_bits;
61 u32 spdif_pcm_bits; 62 u32 spdif_pcm_bits;
62 struct snd_pcm_substream *streams[PCM_COUNT]; 63 struct snd_pcm_substream *streams[PCM_COUNT];