diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-01-16 02:28:17 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:59 -0500 |
commit | 31c77643a06313b3a26f4c38c75ceec2a89ad31a (patch) | |
tree | b38b6be831ebf4ebd20df512b1544938a3cbd224 /sound/pci/oxygen/oxygen_pcm.c | |
parent | 12b74c80cc20dec27b9f9eeb24ee86170c34e5a1 (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_pcm.c')
-rw-r--r-- | sound/pci/oxygen/oxygen_pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen_pcm.c b/sound/pci/oxygen/oxygen_pcm.c index 5f67a799a034..0f67defc2b2d 100644 --- a/sound/pci/oxygen/oxygen_pcm.c +++ b/sound/pci/oxygen/oxygen_pcm.c | |||
@@ -714,7 +714,7 @@ int __devinit oxygen_pcm_init(struct oxygen *chip) | |||
714 | snd_dma_pci_data(chip->pci), | 714 | snd_dma_pci_data(chip->pci), |
715 | 128 * 1024, 256 * 1024); | 715 | 128 * 1024, 256 * 1024); |
716 | 716 | ||
717 | if (chip->has_2nd_ac97_codec) { | 717 | if (chip->has_ac97_1) { |
718 | err = snd_pcm_new(chip->card, "AC97", 2, 1, 0, &pcm); | 718 | err = snd_pcm_new(chip->card, "AC97", 2, 1, 0, &pcm); |
719 | if (err < 0) | 719 | if (err < 0) |
720 | return err; | 720 | return err; |