ALSA: hda/realtek: Enable internal speakers on Razer Blade 16 (2025)On the Razer Blade 16 (2025) (Realtek ALC298, PCI SSID 1a58:300e) theinternal speakers are driven through an external smart ampl
ALSA: hda/realtek: Enable internal speakers on Razer Blade 16 (2025)On the Razer Blade 16 (2025) (Realtek ALC298, PCI SSID 1a58:300e) theinternal speakers are driven through an external smart amplifier whosecrossover, voicing and protection live in a DSP reached over a vendorcoef mailbox on NID 0x20. Both speaker pins are fed from one DACthrough a mixer and the amplifier does the crossover. The BIOS leavesthe tweeter pin (NID 0x14) disabled (default config 0x411111f0), so thetweeters are not exposed and the amplifier is never programmed for thismachine under Linux.Add a fixup for the machine that: - re-exposes the tweeter pin (NID 0x14) as an internal speaker in the same association (2) as the woofer (NID 0x17), so the controls come out as "Speaker"/"Bass Speaker", with auto-mute on headphone insertion; - pins every output to a fixed converter via preferred_dacs so the routing does not depend on the generic parser's DAC-allocation heuristics: both speaker pins share DAC 0x03 (the only converter that drives the woofer on this machine) through the mixer, while the headphone (NID 0x21) keeps DAC 0x02. Without a fixed assignment the parser brings up only one speaker pin and leaves the other silent; - wakes the external amp, programs its DSP over the NID-0x20 mailbox at init (boot and resume) and parks it; it is woken again for playback and parked afterwards from a pcm_playback_hook, like the existing Samsung and LG Gram amplifier fixups.The DSP sequence was obtained by capturing the Windows driver's HD-audiotraffic via QEMU/VFIO passthrough of the controller and reducing it tothe NID-0x20 writes this machine needs; everything else the parserrebuilds. The captured tables are large, so the programming andthe fixup live in a separate file undersound/hda/codecs/helpers/ that the codec driver includes.Signed-off-by: Christopher Höner <christopher-hoener@web.de>Link: https://patch.msgid.link/20260623191436.6605-1-christopher-hoener@web.deSigned-off-by: Takashi Iwai <tiwai@suse.de>
show more ...
ALSA: hda: Move codec drivers into sound/hda/codecs directoryNow move the all remaining codec drivers from sound/pci/hda tosound/hda/codecs subdirectory. Some drivers are put under the furtherve
ALSA: hda: Move codec drivers into sound/hda/codecs directoryNow move the all remaining codec drivers from sound/pci/hda tosound/hda/codecs subdirectory. Some drivers are put under the furthervendor subdirectory, and the vendor helper code (*_helper.c) are putunder helpers subdirectory. Also the sub-codec drivers are moved undera different subdirectory, sound/hda/codecs/sub-codecs, fordistinguishing from the main HD-audio codec drivers.The prefix patch_ and hda_ as well as the suffix _helper are droppedfrom file names as they are mostly superfluous.No functional changes but just file path shuffling.Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>Signed-off-by: Takashi Iwai <tiwai@suse.de>Link: https://patch.msgid.link/20250709160434.1859-7-tiwai@suse.de