]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[ALSA] cmipci: remove has_dual_dac
authorClemens Ladisch <clemens@ladisch.de>
Mon, 27 Aug 2007 07:21:02 +0000 (09:21 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 16 Oct 2007 13:59:29 +0000 (15:59 +0200)
Remove the has_dual_dac variable because it was always set.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/cmipci.c

index cc0977a8a3d69b1dd80366a1202ee4b237ef86e4..42227012c0bde92f6a27045f01c684bfb6adb440 100644 (file)
@@ -424,7 +424,6 @@ struct cmipci {
 
        int chip_version;
        int max_channels;
-       unsigned int has_dual_dac: 1;
        unsigned int can_ac3_sw: 1;
        unsigned int can_ac3_hw: 1;
        unsigned int can_multi_ch: 1;
@@ -2643,7 +2642,6 @@ static void __devinit query_chip(struct cmipci *cm)
                        break;
                }
                cm->max_channels = 2;
-               cm->has_dual_dac = 1;
        } else {
                if (detect & CM_CHIP_039) {
                        cm->chip_version = 39;
@@ -2659,7 +2657,6 @@ static void __devinit query_chip(struct cmipci *cm)
                        cm->max_channels = 6;
                }
                cm->can_ac3_hw = 1;
-               cm->has_dual_dac = 1;
                cm->can_multi_ch = 1;
        }
 }
@@ -2975,11 +2972,9 @@ static int __devinit snd_cmipci_create(struct snd_card *card, struct pci_dev *pc
        if ((err = snd_cmipci_pcm_new(cm, pcm_index)) < 0)
                return err;
        pcm_index++;
-       if (cm->has_dual_dac) {
-               if ((err = snd_cmipci_pcm2_new(cm, pcm_index)) < 0)
-                       return err;
-               pcm_index++;
-       }
+       if ((err = snd_cmipci_pcm2_new(cm, pcm_index)) < 0)
+               return err;
+       pcm_index++;
        if (cm->can_ac3_hw || cm->can_ac3_sw) {
                pcm_spdif_index = pcm_index;
                if ((err = snd_cmipci_pcm_spdif_new(cm, pcm_index)) < 0)