]> git.neil.brown.name Git - history.git/commitdiff
ALSA CVS update
authorJaroslav Kysela <perex@suse.cz>
Thu, 25 Sep 2003 17:29:31 +0000 (19:29 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 25 Sep 2003 17:29:31 +0000 (19:29 +0200)
D:2003/09/23 15:31:44
C:Intel8x0 driver,VIA82xx driver,AC97 Codec Core,CS46xx driver
A:Takashi Iwai <tiwai@suse.de>
F:pci/intel8x0.c:1.91->1.92
F:pci/via82xx.c:1.51->1.52
F:pci/ac97/ac97_patch.c:1.22->1.23
F:pci/cs46xx/cs46xx_lib.c:1.63->1.64
F:pci/cs46xx/dsp_spos.c:1.21->1.22
L:added ac97 quirks:
L:
L:- Dell Precision 530 and Dimension 8300 (by Simon Munton <simon-alsa@munton.demon.co.uk>)
L:- HP onboard

sound/pci/ac97/ac97_patch.c
sound/pci/cs46xx/cs46xx_lib.c
sound/pci/cs46xx/dsp_spos.c
sound/pci/intel8x0.c
sound/pci/via82xx.c

index 839648833cb0170f23ee5f8653034c4b94a127b4..af81810afc6cca60d75dd3f285e6e63788ab1b9f 100644 (file)
@@ -897,7 +897,7 @@ static struct snd_ac97_build_ops patch_alc650_ops = {
 
 int patch_alc650(ac97_t * ac97)
 {
-       unsigned short val, reg;
+       unsigned short val;
        int spdif = 0;
 
        ac97->build_ops = &patch_alc650_ops;
index f48464c28de3a9b73627f590185276b156af2877..db0a73f95621d11bcc317b13781217133cbf790c 100644 (file)
@@ -2111,9 +2111,9 @@ static int snd_cs46xx_spdif_default_put(snd_kcontrol_t * kcontrol,
        int change;
 
        down (&chip->spos_mutex);
-       val = _wrap_all_bits(((u32)ucontrol->value.iec958.status[0] << 24)) |
-             _wrap_all_bits(((u32)ucontrol->value.iec958.status[2] << 16)) |
-             _wrap_all_bits( (u32)ucontrol->value.iec958.status[3])  |
+       val = ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[0]) << 24) |
+               ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[2]) << 16) |
+               ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[3]))  |
                /* left and right validity bit */
                (1 << 13) | (1 << 12);
 
@@ -2164,9 +2164,9 @@ static int snd_cs46xx_spdif_stream_put(snd_kcontrol_t * kcontrol,
        int change;
 
        down (&chip->spos_mutex);
-       val = _wrap_all_bits(((u32)ucontrol->value.iec958.status[0] << 24)) |
-             _wrap_all_bits(((u32)ucontrol->value.iec958.status[1] << 16)) |
-             _wrap_all_bits( (u32)ucontrol->value.iec958.status[3]) |
+       val = ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[0]) << 24) |
+               ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[1]) << 16) |
+               ((unsigned int)_wrap_all_bits(ucontrol->value.iec958.status[3])) |
                /* left and right validity bit */
                (1 << 13) | (1 << 12);
 
index d58e6eeb10687100508fe291e15c46e30e4b079f..e2092c13bc7ac679f3a13367e213ebe67c0e1dad 100644 (file)
@@ -267,9 +267,9 @@ dsp_spos_instance_t *  cs46xx_dsp_spos_create (cs46xx_t * chip)
           default channel status */
        ins->spdif_csuv_default = 
                ins->spdif_csuv_stream =  
-        /* byte 0 */  (_wrap_all_bits(  (SNDRV_PCM_DEFAULT_CON_SPDIF        & 0xff)) << 24) |
-        /* byte 1 */  (_wrap_all_bits( ((SNDRV_PCM_DEFAULT_CON_SPDIF >> 16) & 0xff)) << 16) |
-        /* byte 3 */   _wrap_all_bits(  (SNDRV_PCM_DEFAULT_CON_SPDIF >> 24) & 0xff) |
+        /* byte 0 */  ((unsigned int)_wrap_all_bits(  (SNDRV_PCM_DEFAULT_CON_SPDIF        & 0xff)) << 24) |
+        /* byte 1 */  ((unsigned int)_wrap_all_bits( ((SNDRV_PCM_DEFAULT_CON_SPDIF >> 8) & 0xff)) << 16) |
+        /* byte 3 */   (unsigned int)_wrap_all_bits(  (SNDRV_PCM_DEFAULT_CON_SPDIF >> 24) & 0xff) |
         /* left and right validity bits */ (1 << 13) | (1 << 12);
 
        return ins;
index 0a4033b94e696255d8c4f2a670ff3c12e7dfe8fd..e0226de635d1671155fa4f22006b3ec6b7adace1 100644 (file)
@@ -1578,12 +1578,24 @@ static struct _ac97_rate_regs ali_ac97_rate_regs[] __devinitdata = {
 };
 
 static struct ac97_quirk ac97_quirks[] __devinitdata = {
+       {
+               .vendor = 0x1028,
+               .device = 0x00d8,
+               .name = "Dell Precision 530",
+               .type = AC97_TUNE_HP_ONLY
+       },
        {
                .vendor = 0x1028,
                .device = 0x0126,
                .name = "Dell Optiplex GX260",
                .type = AC97_TUNE_HP_ONLY
        },
+       {
+               .vendor = 0x1028,
+               .device = 0x0157,
+               .name = "Dell Dimension 8300",
+               .type = AC97_TUNE_SWAP_SURROUND
+       },
        {
                .vendor = 0x1043,
                .device =0x80b0,
@@ -1670,6 +1682,12 @@ static struct ac97_quirk ac97_quirks[] __devinitdata = {
                .name = "Intel ICH5/AD1985 (discrete)",
                .type = AC97_TUNE_HP_ONLY
        },
+       {
+               .vendor = 0x103c,
+               .device = 0x00c3,
+               .name = "Hewlett-Packard onboard",
+               .type = AC97_TUNE_HP_ONLY
+       },
        { } /* terminator */
 };
 
index 98e040a4b505d7ac74e0303480624a7872a517f0..13f4ee0a68b8fd16602f610224d2eb5f81d210ff 100644 (file)
@@ -1968,6 +1968,7 @@ static int __devinit check_dxs_list(struct pci_dev *pci)
 {
        static struct dxs_whitelist whitelist[] = {
                { .vendor = 0x1019, .device = 0x0996, .action = VIA_DXS_48K },
+               { .vendor = 0x1297, .device = 0xc160, .action = VIA_DXS_ENABLE }, /* Shuttle SK41G */
                { } /* terminator */
        };
        struct dxs_whitelist *w;