Bug 256169 - sound: Enable speakers/headset switching on ASUS ROG GL553VE
Summary: sound: Enable speakers/headset switching on ASUS ROG GL553VE
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-26 13:55 UTC by Gleb Popov
Modified: 2022-08-04 10:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb Popov freebsd_committer freebsd_triage 2021-05-26 13:55:56 UTC
I'm running FreeBSD on ASUS ROG GL553VE laptop. Here is relevant part of `pciconf -lv` output:

hdac0@pci0:0:31:3:      class=0x040380 rev=0x31 hdr=0x00 vendor=0x8086 device=0xa171 subvendor=0x1043 subdevice=0x15e0
    vendor     = 'Intel Corporation'
    device     = 'CM238 HD Audio Controller'
    class      = multimedia
    subclass   = HDA

Adding following spells to /boot/device.hints makes headset detection work for me:

hint.hdaa.0.nid33.config="as=1 seq=15"

Can it be hardcoded somewhere in sys/dev/sound/pci/hda/ so that no manual hinting is required?
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2021-11-04 11:24:20 UTC
Ping. I can provide a patch myself, but need a starting point.
Comment 2 commit-hook freebsd_committer freebsd_triage 2022-08-04 10:58:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=5abe178970dd39cb9ca843a2b1bfe368aa3265a8

commit 5abe178970dd39cb9ca843a2b1bfe368aa3265a8
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-08-01 11:07:04 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-08-04 10:57:32 +0000

    hda: Add a patch for ASUS ROG GL553VE.

    Summary:
    This change enables headset detection on the laptop.

    PR: 256169

    Approved by: mav

    Differential Revision: https://reviews.freebsd.org/D36007

 sys/dev/sound/pci/hda/hdaa_patches.c | 6 ++++++
 sys/dev/sound/pci/hda/hdac.h         | 1 +
 2 files changed, 7 insertions(+)