Skip to content

Commit d464572

Browse files
committed
Merge tag 'sound-4.20-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai: "Two small regression fixes for HD-audio: one about vga_switcheroo and runtime PM, and another about Oops on some Thinkpads" * tag 'sound-4.20-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: ALSA: hda - Fix incorrect clearance of thinkpad_acpi hooks vga_switcheroo: Fix missing gpu_bound call at audio client registration
2 parents b00d209 + 5e93a12 commit d464572

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

drivers/gpu/vga/vga_switcheroo.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ int vga_switcheroo_register_audio_client(struct pci_dev *pdev,
380380
mutex_unlock(&vgasr_mutex);
381381
return -EINVAL;
382382
}
383+
/* notify if GPU has been already bound */
384+
if (ops->gpu_bound)
385+
ops->gpu_bound(pdev, id);
383386
}
384387
mutex_unlock(&vgasr_mutex);
385388

sound/pci/hda/thinkpad_helper.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ static void hda_fixup_thinkpad_acpi(struct hda_codec *codec,
5858
removefunc = false;
5959
}
6060
if (led_set_func(TPACPI_LED_MICMUTE, false) >= 0 &&
61-
snd_hda_gen_add_micmute_led(codec,
62-
update_tpacpi_micmute) > 0)
61+
!snd_hda_gen_add_micmute_led(codec,
62+
update_tpacpi_micmute))
6363
removefunc = false;
6464
}
6565

0 commit comments

Comments
 (0)