git: 29b4fa787621 - main - hdaa: add missing break in hdac_pin_patch().

Gleb Smirnoff glebius at FreeBSD.org
Tue Aug 3 10:11:15 UTC 2021


The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=29b4fa787621cbfb070323ecf2ea2da4d372bd94

commit 29b4fa787621cbfb070323ecf2ea2da4d372bd94
Author:     Gleb Smirnoff <glebius at FreeBSD.org>
AuthorDate: 2021-08-03 10:06:16 +0000
Commit:     Gleb Smirnoff <glebius at FreeBSD.org>
CommitDate: 2021-08-03 10:09:32 +0000

    hdaa: add missing break in hdac_pin_patch().
    
    Fixes driver attach on my Thinkpad X1 Carbon, and likely on
    many other ALC family devices.
    
    Fixes:  ef790cc7407e827db9563d08a52a71ab36436986
---
 sys/dev/sound/pci/hda/hdaa_patches.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c
index dc404b9ba98e..45577819e897 100644
--- a/sys/dev/sound/pci/hda/hdaa_patches.c
+++ b/sys/dev/sound/pci/hda/hdaa_patches.c
@@ -326,6 +326,7 @@ hdac_pin_patch(struct hdaa_widget *w)
 					switch (patch->type) {
 					case PIN_PATCH_TYPE_STRING:
 						patch_str = patch->patch.string;
+						break;
 					case PIN_PATCH_TYPE_MASK:
 						config &= ~patch->patch.mask[0];
 						config |= patch->patch.mask[1];


More information about the dev-commits-src-all mailing list