diff options
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 4d2cbe2ca141..8a7fbdcb4072 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -338,7 +338,7 @@ enum { | |||
338 | AZX_DCAPS_4K_BDLE_BOUNDARY | AZX_DCAPS_SNOOP_OFF) | 338 | AZX_DCAPS_4K_BDLE_BOUNDARY | AZX_DCAPS_SNOOP_OFF) |
339 | 339 | ||
340 | /* | 340 | /* |
341 | * VGA-switcher support | 341 | * vga_switcheroo support |
342 | */ | 342 | */ |
343 | #ifdef SUPPORT_VGA_SWITCHEROO | 343 | #ifdef SUPPORT_VGA_SWITCHEROO |
344 | #define use_vga_switcheroo(chip) ((chip)->use_vga_switcheroo) | 344 | #define use_vga_switcheroo(chip) ((chip)->use_vga_switcheroo) |
@@ -1077,12 +1077,12 @@ static void azx_vs_set_state(struct pci_dev *pci, | |||
1077 | } | 1077 | } |
1078 | } | 1078 | } |
1079 | } else { | 1079 | } else { |
1080 | dev_info(chip->card->dev, "%s via VGA-switcheroo\n", | 1080 | dev_info(chip->card->dev, "%s via vga_switcheroo\n", |
1081 | disabled ? "Disabling" : "Enabling"); | 1081 | disabled ? "Disabling" : "Enabling"); |
1082 | if (disabled) { | 1082 | if (disabled) { |
1083 | pm_runtime_put_sync_suspend(card->dev); | 1083 | pm_runtime_put_sync_suspend(card->dev); |
1084 | azx_suspend(card->dev); | 1084 | azx_suspend(card->dev); |
1085 | /* when we get suspended by vga switcheroo we end up in D3cold, | 1085 | /* when we get suspended by vga_switcheroo we end up in D3cold, |
1086 | * however we have no ACPI handle, so pci/acpi can't put us there, | 1086 | * however we have no ACPI handle, so pci/acpi can't put us there, |
1087 | * put ourselves there */ | 1087 | * put ourselves there */ |
1088 | pci->current_state = PCI_D3cold; | 1088 | pci->current_state = PCI_D3cold; |
@@ -1122,7 +1122,7 @@ static void init_vga_switcheroo(struct azx *chip) | |||
1122 | struct pci_dev *p = get_bound_vga(chip->pci); | 1122 | struct pci_dev *p = get_bound_vga(chip->pci); |
1123 | if (p) { | 1123 | if (p) { |
1124 | dev_info(chip->card->dev, | 1124 | dev_info(chip->card->dev, |
1125 | "Handle VGA-switcheroo audio client\n"); | 1125 | "Handle vga_switcheroo audio client\n"); |
1126 | hda->use_vga_switcheroo = 1; | 1126 | hda->use_vga_switcheroo = 1; |
1127 | pci_dev_put(p); | 1127 | pci_dev_put(p); |
1128 | } | 1128 | } |
@@ -1144,8 +1144,7 @@ static int register_vga_switcheroo(struct azx *chip) | |||
1144 | * is there any machine with two switchable HDMI audio controllers? | 1144 | * is there any machine with two switchable HDMI audio controllers? |
1145 | */ | 1145 | */ |
1146 | err = vga_switcheroo_register_audio_client(chip->pci, &azx_vs_ops, | 1146 | err = vga_switcheroo_register_audio_client(chip->pci, &azx_vs_ops, |
1147 | VGA_SWITCHEROO_DIS, | 1147 | VGA_SWITCHEROO_DIS); |
1148 | hda->probe_continued); | ||
1149 | if (err < 0) | 1148 | if (err < 0) |
1150 | return err; | 1149 | return err; |
1151 | hda->vga_switcheroo_registered = 1; | 1150 | hda->vga_switcheroo_registered = 1; |
@@ -1234,7 +1233,7 @@ static int azx_dev_free(struct snd_device *device) | |||
1234 | 1233 | ||
1235 | #ifdef SUPPORT_VGA_SWITCHEROO | 1234 | #ifdef SUPPORT_VGA_SWITCHEROO |
1236 | /* | 1235 | /* |
1237 | * Check of disabled HDMI controller by vga-switcheroo | 1236 | * Check of disabled HDMI controller by vga_switcheroo |
1238 | */ | 1237 | */ |
1239 | static struct pci_dev *get_bound_vga(struct pci_dev *pci) | 1238 | static struct pci_dev *get_bound_vga(struct pci_dev *pci) |
1240 | { | 1239 | { |
@@ -1919,7 +1918,7 @@ static int azx_probe(struct pci_dev *pci, | |||
1919 | 1918 | ||
1920 | err = register_vga_switcheroo(chip); | 1919 | err = register_vga_switcheroo(chip); |
1921 | if (err < 0) { | 1920 | if (err < 0) { |
1922 | dev_err(card->dev, "Error registering VGA-switcheroo client\n"); | 1921 | dev_err(card->dev, "Error registering vga_switcheroo client\n"); |
1923 | goto out_free; | 1922 | goto out_free; |
1924 | } | 1923 | } |
1925 | 1924 | ||