aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/via82xx.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 14:51:23 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 14:51:23 -0500
commit046e7d685bc370fd4c879ab6635ad3f69e6673d1 (patch)
tree36b981f8d1f2bfd348c1479acbe3a9426d35c377 /sound/pci/via82xx.c
parentfe504c5c745aeb767d978fbedeb94775fd4cb69c (diff)
parent6eb827d23577a4efec2b10a9c4cc9ded268a1d1c (diff)
Merge tag 'sound-3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound updates from Takashi Iwai: "This update contains a fairly wide range of changes all over in sound subdirectory, mainly because of UAPI header moves by David and __dev* annotation removals by Bill. Other highlights are: - Introduced the support for wallclock timestamps in ALSA PCM core - Add the poll loop implementation for HD-audio jack detection - Yet more VGA-switcheroo fixes for HD-audio - New VIA HD-audio codec support - More fixes on resource management in USB audio and MIDI drivers - More quirks for USB-audio ASUS Xonar U3, Reloop Play, Focusrite, Roland VG-99, etc - Add support for FastTrack C400 usb-audio - Clean ups in many drivers regarding firmware loading - Add PSC724 Ultiimate Edge support to ice1712 - A few hdspm driver updates - New Stanton SCS.1d/1m FireWire driver - Standardisation of the logging in ASoC codes - DT and dmaengine support for ASoC Atmel - Support for Wolfson ADSP cores - New drivers for Freescale/iVeia P1022 and Maxim MAX98090 - Lots of other ASoC driver fixes and developments" Fix up trivial conflicts. And go out on a limb and assume the dts file 'status' field of one of the conflicting things was supposed to be "disabled", not "disable" like in pretty much all other cases. * tag 'sound-3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (341 commits) ALSA: hda - Move runtime PM check to runtime_idle callback ALSA: hda - Add stereo-dmic fixup for Acer Aspire One 522 ALSA: hda - Avoid doubly suspend after vga switcheroo ALSA: usb-audio: Enable S/PDIF on the ASUS Xonar U3 ALSA: hda - Check validity of CORB/RIRB WP reads ALSA: hda - use usleep_range in link reset and change timeout check ALSA: HDA: VIA: Add support for codec VT1808. ALSA: HDA: VIA Add support for codec VT1705CF. ASoC: codecs: remove __dev* attributes ASoC: utils: remove __dev* attributes ASoC: ux500: remove __dev* attributes ASoC: txx9: remove __dev* attributes ASoC: tegra: remove __dev* attributes ASoC: spear: remove __dev* attributes ASoC: sh: remove __dev* attributes ASoC: s6000: remove __dev* attributes ASoC: OMAP: remove __dev* attributes ASoC: nuc900: remove __dev* attributes ASoC: mxs: remove __dev* attributes ASoC: kirkwood: remove __dev* attributes ...
Diffstat (limited to 'sound/pci/via82xx.c')
-rw-r--r--sound/pci/via82xx.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c
index f0b4efdb483c..6442f611a07b 100644
--- a/sound/pci/via82xx.c
+++ b/sound/pci/via82xx.c
@@ -1437,7 +1437,7 @@ static void init_viadev(struct via82xx *chip, int idx, unsigned int reg_offset,
1437/* 1437/*
1438 * create pcm instances for VIA8233, 8233C and 8235 (not 8233A) 1438 * create pcm instances for VIA8233, 8233C and 8235 (not 8233A)
1439 */ 1439 */
1440static int __devinit snd_via8233_pcm_new(struct via82xx *chip) 1440static int snd_via8233_pcm_new(struct via82xx *chip)
1441{ 1441{
1442 struct snd_pcm *pcm; 1442 struct snd_pcm *pcm;
1443 struct snd_pcm_chmap *chmap; 1443 struct snd_pcm_chmap *chmap;
@@ -1505,7 +1505,7 @@ static int __devinit snd_via8233_pcm_new(struct via82xx *chip)
1505/* 1505/*
1506 * create pcm instances for VIA8233A 1506 * create pcm instances for VIA8233A
1507 */ 1507 */
1508static int __devinit snd_via8233a_pcm_new(struct via82xx *chip) 1508static int snd_via8233a_pcm_new(struct via82xx *chip)
1509{ 1509{
1510 struct snd_pcm *pcm; 1510 struct snd_pcm *pcm;
1511 struct snd_pcm_chmap *chmap; 1511 struct snd_pcm_chmap *chmap;
@@ -1566,7 +1566,7 @@ static int __devinit snd_via8233a_pcm_new(struct via82xx *chip)
1566/* 1566/*
1567 * create a pcm instance for via686a/b 1567 * create a pcm instance for via686a/b
1568 */ 1568 */
1569static int __devinit snd_via686_pcm_new(struct via82xx *chip) 1569static int snd_via686_pcm_new(struct via82xx *chip)
1570{ 1570{
1571 struct snd_pcm *pcm; 1571 struct snd_pcm *pcm;
1572 int err; 1572 int err;
@@ -1643,7 +1643,7 @@ static int snd_via8233_capture_source_put(struct snd_kcontrol *kcontrol,
1643 return val != oval; 1643 return val != oval;
1644} 1644}
1645 1645
1646static struct snd_kcontrol_new snd_via8233_capture_source __devinitdata = { 1646static struct snd_kcontrol_new snd_via8233_capture_source = {
1647 .name = "Input Source Select", 1647 .name = "Input Source Select",
1648 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1648 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1649 .info = snd_via8233_capture_source_info, 1649 .info = snd_via8233_capture_source_info,
@@ -1683,7 +1683,7 @@ static int snd_via8233_dxs3_spdif_put(struct snd_kcontrol *kcontrol,
1683 return 0; 1683 return 0;
1684} 1684}
1685 1685
1686static struct snd_kcontrol_new snd_via8233_dxs3_spdif_control __devinitdata = { 1686static struct snd_kcontrol_new snd_via8233_dxs3_spdif_control = {
1687 .name = SNDRV_CTL_NAME_IEC958("Output ",NONE,SWITCH), 1687 .name = SNDRV_CTL_NAME_IEC958("Output ",NONE,SWITCH),
1688 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1688 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1689 .info = snd_via8233_dxs3_spdif_info, 1689 .info = snd_via8233_dxs3_spdif_info,
@@ -1772,7 +1772,7 @@ static int snd_via8233_pcmdxs_volume_put(struct snd_kcontrol *kcontrol,
1772 1772
1773static const DECLARE_TLV_DB_SCALE(db_scale_dxs, -4650, 150, 1); 1773static const DECLARE_TLV_DB_SCALE(db_scale_dxs, -4650, 150, 1);
1774 1774
1775static struct snd_kcontrol_new snd_via8233_pcmdxs_volume_control __devinitdata = { 1775static struct snd_kcontrol_new snd_via8233_pcmdxs_volume_control = {
1776 .name = "PCM Playback Volume", 1776 .name = "PCM Playback Volume",
1777 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 1777 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1778 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 1778 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE |
@@ -1783,7 +1783,7 @@ static struct snd_kcontrol_new snd_via8233_pcmdxs_volume_control __devinitdata =
1783 .tlv = { .p = db_scale_dxs } 1783 .tlv = { .p = db_scale_dxs }
1784}; 1784};
1785 1785
1786static struct snd_kcontrol_new snd_via8233_dxs_volume_control __devinitdata = { 1786static struct snd_kcontrol_new snd_via8233_dxs_volume_control = {
1787 .iface = SNDRV_CTL_ELEM_IFACE_PCM, 1787 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
1788 .device = 0, 1788 .device = 0,
1789 /* .subdevice set later */ 1789 /* .subdevice set later */
@@ -1895,7 +1895,7 @@ static struct ac97_quirk ac97_quirks[] = {
1895 { } /* terminator */ 1895 { } /* terminator */
1896}; 1896};
1897 1897
1898static int __devinit snd_via82xx_mixer_new(struct via82xx *chip, const char *quirk_override) 1898static int snd_via82xx_mixer_new(struct via82xx *chip, const char *quirk_override)
1899{ 1899{
1900 struct snd_ac97_template ac97; 1900 struct snd_ac97_template ac97;
1901 int err; 1901 int err;
@@ -1930,7 +1930,7 @@ static int __devinit snd_via82xx_mixer_new(struct via82xx *chip, const char *qui
1930 1930
1931#ifdef SUPPORT_JOYSTICK 1931#ifdef SUPPORT_JOYSTICK
1932#define JOYSTICK_ADDR 0x200 1932#define JOYSTICK_ADDR 0x200
1933static int __devinit snd_via686_create_gameport(struct via82xx *chip, unsigned char *legacy) 1933static int snd_via686_create_gameport(struct via82xx *chip, unsigned char *legacy)
1934{ 1934{
1935 struct gameport *gp; 1935 struct gameport *gp;
1936 struct resource *r; 1936 struct resource *r;
@@ -1990,7 +1990,7 @@ static inline void snd_via686_free_gameport(struct via82xx *chip) { }
1990 * 1990 *
1991 */ 1991 */
1992 1992
1993static int __devinit snd_via8233_init_misc(struct via82xx *chip) 1993static int snd_via8233_init_misc(struct via82xx *chip)
1994{ 1994{
1995 int i, err, caps; 1995 int i, err, caps;
1996 unsigned char val; 1996 unsigned char val;
@@ -2047,7 +2047,7 @@ static int __devinit snd_via8233_init_misc(struct via82xx *chip)
2047 return 0; 2047 return 0;
2048} 2048}
2049 2049
2050static int __devinit snd_via686_init_misc(struct via82xx *chip) 2050static int snd_via686_init_misc(struct via82xx *chip)
2051{ 2051{
2052 unsigned char legacy, legacy_cfg; 2052 unsigned char legacy, legacy_cfg;
2053 int rev_h = 0; 2053 int rev_h = 0;
@@ -2137,7 +2137,7 @@ static void snd_via82xx_proc_read(struct snd_info_entry *entry,
2137 } 2137 }
2138} 2138}
2139 2139
2140static void __devinit snd_via82xx_proc_init(struct via82xx *chip) 2140static void snd_via82xx_proc_init(struct via82xx *chip)
2141{ 2141{
2142 struct snd_info_entry *entry; 2142 struct snd_info_entry *entry;
2143 2143
@@ -2370,12 +2370,12 @@ static int snd_via82xx_dev_free(struct snd_device *device)
2370 return snd_via82xx_free(chip); 2370 return snd_via82xx_free(chip);
2371} 2371}
2372 2372
2373static int __devinit snd_via82xx_create(struct snd_card *card, 2373static int snd_via82xx_create(struct snd_card *card,
2374 struct pci_dev *pci, 2374 struct pci_dev *pci,
2375 int chip_type, 2375 int chip_type,
2376 int revision, 2376 int revision,
2377 unsigned int ac97_clock, 2377 unsigned int ac97_clock,
2378 struct via82xx ** r_via) 2378 struct via82xx **r_via)
2379{ 2379{
2380 struct via82xx *chip; 2380 struct via82xx *chip;
2381 int err; 2381 int err;
@@ -2452,7 +2452,7 @@ struct via823x_info {
2452 char *name; 2452 char *name;
2453 int type; 2453 int type;
2454}; 2454};
2455static struct via823x_info via823x_cards[] __devinitdata = { 2455static struct via823x_info via823x_cards[] = {
2456 { VIA_REV_PRE_8233, "VIA 8233-Pre", TYPE_VIA8233 }, 2456 { VIA_REV_PRE_8233, "VIA 8233-Pre", TYPE_VIA8233 },
2457 { VIA_REV_8233C, "VIA 8233C", TYPE_VIA8233 }, 2457 { VIA_REV_8233C, "VIA 8233C", TYPE_VIA8233 },
2458 { VIA_REV_8233, "VIA 8233", TYPE_VIA8233 }, 2458 { VIA_REV_8233, "VIA 8233", TYPE_VIA8233 },
@@ -2466,7 +2466,7 @@ static struct via823x_info via823x_cards[] __devinitdata = {
2466 * auto detection of DXS channel supports. 2466 * auto detection of DXS channel supports.
2467 */ 2467 */
2468 2468
2469static struct snd_pci_quirk dxs_whitelist[] __devinitdata = { 2469static struct snd_pci_quirk dxs_whitelist[] = {
2470 SND_PCI_QUIRK(0x1005, 0x4710, "Avance Logic Mobo", VIA_DXS_ENABLE), 2470 SND_PCI_QUIRK(0x1005, 0x4710, "Avance Logic Mobo", VIA_DXS_ENABLE),
2471 SND_PCI_QUIRK(0x1019, 0x0996, "ESC Mobo", VIA_DXS_48K), 2471 SND_PCI_QUIRK(0x1019, 0x0996, "ESC Mobo", VIA_DXS_48K),
2472 SND_PCI_QUIRK(0x1019, 0x0a81, "ECS K7VTA3 v8.0", VIA_DXS_NO_VRA), 2472 SND_PCI_QUIRK(0x1019, 0x0a81, "ECS K7VTA3 v8.0", VIA_DXS_NO_VRA),
@@ -2510,7 +2510,7 @@ static struct snd_pci_quirk dxs_whitelist[] __devinitdata = {
2510 { } /* terminator */ 2510 { } /* terminator */
2511}; 2511};
2512 2512
2513static int __devinit check_dxs_list(struct pci_dev *pci, int revision) 2513static int check_dxs_list(struct pci_dev *pci, int revision)
2514{ 2514{
2515 const struct snd_pci_quirk *w; 2515 const struct snd_pci_quirk *w;
2516 2516
@@ -2535,8 +2535,8 @@ static int __devinit check_dxs_list(struct pci_dev *pci, int revision)
2535 return VIA_DXS_48K; 2535 return VIA_DXS_48K;
2536}; 2536};
2537 2537
2538static int __devinit snd_via82xx_probe(struct pci_dev *pci, 2538static int snd_via82xx_probe(struct pci_dev *pci,
2539 const struct pci_device_id *pci_id) 2539 const struct pci_device_id *pci_id)
2540{ 2540{
2541 struct snd_card *card; 2541 struct snd_card *card;
2542 struct via82xx *chip; 2542 struct via82xx *chip;
@@ -2643,7 +2643,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci,
2643 return err; 2643 return err;
2644} 2644}
2645 2645
2646static void __devexit snd_via82xx_remove(struct pci_dev *pci) 2646static void snd_via82xx_remove(struct pci_dev *pci)
2647{ 2647{
2648 snd_card_free(pci_get_drvdata(pci)); 2648 snd_card_free(pci_get_drvdata(pci));
2649 pci_set_drvdata(pci, NULL); 2649 pci_set_drvdata(pci, NULL);
@@ -2653,7 +2653,7 @@ static struct pci_driver via82xx_driver = {
2653 .name = KBUILD_MODNAME, 2653 .name = KBUILD_MODNAME,
2654 .id_table = snd_via82xx_ids, 2654 .id_table = snd_via82xx_ids,
2655 .probe = snd_via82xx_probe, 2655 .probe = snd_via82xx_probe,
2656 .remove = __devexit_p(snd_via82xx_remove), 2656 .remove = snd_via82xx_remove,
2657 .driver = { 2657 .driver = {
2658 .pm = SND_VIA82XX_PM_OPS, 2658 .pm = SND_VIA82XX_PM_OPS,
2659 }, 2659 },