diff options
Diffstat (limited to 'sound/pci/via82xx.c')
-rw-r--r-- | sound/pci/via82xx.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 6ea09df0c73a..cf62d2ab8d7c 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * VT82C686A/B/C, VT8233A/C, VT8235 | 4 | * VT82C686A/B/C, VT8233A/C, VT8235 |
5 | * | 5 | * |
6 | * Copyright (c) 2000 Jaroslav Kysela <perex@suse.cz> | 6 | * Copyright (c) 2000 Jaroslav Kysela <perex@perex.cz> |
7 | * Tjeerd.Mulder <Tjeerd.Mulder@fujitsu-siemens.com> | 7 | * Tjeerd.Mulder <Tjeerd.Mulder@fujitsu-siemens.com> |
8 | * 2002 Takashi Iwai <tiwai@suse.de> | 8 | * 2002 Takashi Iwai <tiwai@suse.de> |
9 | * | 9 | * |
@@ -68,7 +68,7 @@ | |||
68 | #define POINTER_DEBUG | 68 | #define POINTER_DEBUG |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 71 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
72 | MODULE_DESCRIPTION("VIA VT82xx audio"); | 72 | MODULE_DESCRIPTION("VIA VT82xx audio"); |
73 | MODULE_LICENSE("GPL"); | 73 | MODULE_LICENSE("GPL"); |
74 | MODULE_SUPPORTED_DEVICE("{{VIA,VT82C686A/B/C,pci},{VIA,VT8233A/C,8235}}"); | 74 | MODULE_SUPPORTED_DEVICE("{{VIA,VT82C686A/B/C,pci},{VIA,VT8233A/C,8235}}"); |
@@ -1572,15 +1572,7 @@ static struct snd_kcontrol_new snd_via8233_capture_source __devinitdata = { | |||
1572 | .put = snd_via8233_capture_source_put, | 1572 | .put = snd_via8233_capture_source_put, |
1573 | }; | 1573 | }; |
1574 | 1574 | ||
1575 | static int snd_via8233_dxs3_spdif_info(struct snd_kcontrol *kcontrol, | 1575 | #define snd_via8233_dxs3_spdif_info snd_ctl_boolean_mono_info |
1576 | struct snd_ctl_elem_info *uinfo) | ||
1577 | { | ||
1578 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | ||
1579 | uinfo->count = 1; | ||
1580 | uinfo->value.integer.min = 0; | ||
1581 | uinfo->value.integer.max = 1; | ||
1582 | return 0; | ||
1583 | } | ||
1584 | 1576 | ||
1585 | static int snd_via8233_dxs3_spdif_get(struct snd_kcontrol *kcontrol, | 1577 | static int snd_via8233_dxs3_spdif_get(struct snd_kcontrol *kcontrol, |
1586 | struct snd_ctl_elem_value *ucontrol) | 1578 | struct snd_ctl_elem_value *ucontrol) |
@@ -2098,7 +2090,7 @@ static int snd_via82xx_chip_init(struct via82xx *chip) | |||
2098 | pci_read_config_byte(chip->pci, VIA_ACLINK_STAT, &pval); | 2090 | pci_read_config_byte(chip->pci, VIA_ACLINK_STAT, &pval); |
2099 | if (pval & VIA_ACLINK_C00_READY) /* primary codec ready */ | 2091 | if (pval & VIA_ACLINK_C00_READY) /* primary codec ready */ |
2100 | break; | 2092 | break; |
2101 | schedule_timeout(1); | 2093 | schedule_timeout_uninterruptible(1); |
2102 | } while (time_before(jiffies, end_time)); | 2094 | } while (time_before(jiffies, end_time)); |
2103 | 2095 | ||
2104 | if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY) | 2096 | if ((val = snd_via82xx_codec_xread(chip)) & VIA_REG_AC97_BUSY) |
@@ -2117,7 +2109,7 @@ static int snd_via82xx_chip_init(struct via82xx *chip) | |||
2117 | chip->ac97_secondary = 1; | 2109 | chip->ac97_secondary = 1; |
2118 | goto __ac97_ok2; | 2110 | goto __ac97_ok2; |
2119 | } | 2111 | } |
2120 | schedule_timeout(1); | 2112 | schedule_timeout_uninterruptible(1); |
2121 | } while (time_before(jiffies, end_time)); | 2113 | } while (time_before(jiffies, end_time)); |
2122 | /* This is ok, the most of motherboards have only one codec */ | 2114 | /* This is ok, the most of motherboards have only one codec */ |
2123 | 2115 | ||
@@ -2371,6 +2363,7 @@ static struct snd_pci_quirk dxs_whitelist[] __devinitdata = { | |||
2371 | SND_PCI_QUIRK(0x1071, 0, "Diverse Notebook", VIA_DXS_NO_VRA), | 2363 | SND_PCI_QUIRK(0x1071, 0, "Diverse Notebook", VIA_DXS_NO_VRA), |
2372 | SND_PCI_QUIRK(0x10cf, 0x118e, "FSC Laptop", VIA_DXS_ENABLE), | 2364 | SND_PCI_QUIRK(0x10cf, 0x118e, "FSC Laptop", VIA_DXS_ENABLE), |
2373 | SND_PCI_QUIRK(0x1106, 0, "ASRock", VIA_DXS_SRC), | 2365 | SND_PCI_QUIRK(0x1106, 0, "ASRock", VIA_DXS_SRC), |
2366 | SND_PCI_QUIRK(0x1297, 0xa231, "Shuttle AK31v2", VIA_DXS_SRC), | ||
2374 | SND_PCI_QUIRK(0x1297, 0xa232, "Shuttle", VIA_DXS_ENABLE), | 2367 | SND_PCI_QUIRK(0x1297, 0xa232, "Shuttle", VIA_DXS_ENABLE), |
2375 | SND_PCI_QUIRK(0x1297, 0xc160, "Shuttle Sk41G", VIA_DXS_ENABLE), | 2368 | SND_PCI_QUIRK(0x1297, 0xc160, "Shuttle Sk41G", VIA_DXS_ENABLE), |
2376 | SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte GA-7VAXP", VIA_DXS_ENABLE), | 2369 | SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte GA-7VAXP", VIA_DXS_ENABLE), |