ALSA: hda/realtek: Add quirk for Minisforum V3 SE
PATCH v2 1/1 ALSA: hda/realtek: Add quirk for Minisforum V3 SE
First, adding a generic quirk for Bass speaker DAC avoidance.
This pattern (re-routing the bass speakers off of a DAC without volume control) seems common enough that having a "model" to match against and quickly use to verify may be worthwhile.
The alc285_fixup_thinkpad_x1_gen7 routing was selected, amongst the different options, as it should allow tuning the ratio between both speaker set.
The routing was verified using hda-verb, and picking either 0x00 or 0x01. Either routing made the volume of the bass speakers controllable.
hda-verb /dev/snd/hwC1D0 0x17 SET_CONNECT_SEL 0x01
This likely will apply for the Minisforum V3, though there isn't a lot of information to confirm whether or not the identifiers are the same.
This was verified on the Minisforum V3 SE, and the root cause (the bass speakers routing) was found out by using pink noise, and playing with the mixers.
---
Hi!
Quoted 4 lines
Indeed it looks like that we can cleanup a lot regarding this DAC routing fix-ups. Though,
*_thinkpad_x1_gen7()has more workarounds about the control element renames -- which needs to be verified whether the very same workaround is applicable to other cases.
The renames were the reason I picked this particular fixup. It matches the fact these are distinct speakers, and matches the role.
Quoted 2 lines
IIUC, this kcontrol names (DAC1/DAC2) match with your device configuration? Could you give
alsa-info.shoutput?
Indeed! Here is the output:
- https://alsa-project.org/db/?f=69517ae9d95e21b50eddc64538c7094aaf356a07
See also v1 for the methodology additional commentary.
- https://lore.kernel.org/linux-sound/[email protected]/
Changes since v1:
- Combined commits
- Fixed order of the fixup table
Thank you for your time!
--- sound/hda/codecs/realtek/alc269.c | 8 ++++++++ 1 file changed, 8 insertions(+)
sound/hda/codecs/realtek/alc269.c +8 -0
@@ -3805,6 +3805,7 @@ enum {ALC245_FIXUP_HP_TAS2781_I2C_MUTE_LED ,ALC288_FIXUP_SURFACE_SWAP_DACS ,ALC236_FIXUP_HP_MUTE_LED_MICMUTE_GPIO , + ALC245_FIXUP_BASS_HP_DAC, };/* A special fixup for Lenovo C940 and Yoga Duet 7;
@@ -6295,6 +6296,11 @@ static const struct hda_fixup alc269_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc288_fixup_surface_swap_dacs, }, + [ALC245_FIXUP_BASS_HP_DAC] = { + .type = HDA_FIXUP_FUNC, +/* Borrow the DAC routing selected for those Thinkpads */ + .v.func = alc285_fixup_thinkpad_x1_gen7, + }, };static const struct hda_quirk alc269_fixup_tbl[] = {
@@ -7344,6 +7350,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x1d72 ,0x1947 ,"RedmiBook Air" ,ALC255_FIXUP_XIAOMI_HEADSET_MIC ),SND_PCI_QUIRK (0x1e39 ,0xca14 ,"MEDION NM14LNL" ,ALC233_FIXUP_MEDION_MTL_SPK ),SND_PCI_QUIRK (0x1ee7 ,0x2078 ,"HONOR BRB-X M1010" ,ALC2XX_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x1f4c ,0xe001 ,"Minisforum V3 (SE)" ,ALC245_FIXUP_BASS_HP_DAC ),SND_PCI_QUIRK (0x1f66 ,0x0105 ,"Ayaneo Portable Game Player" ,ALC287_FIXUP_CS35L41_I2C_2 ),SND_PCI_QUIRK (0x2014 ,0x800a ,"Positivo ARN50" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ), SND_PCI_QUIRK(0x2782, 0x0214, "VAIO VJFE-CL", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),
@@ -7558,6 +7565,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = { {.id = ALC285_FIXUP_HP_GPIO_AMP_INIT, .name = "alc285-hp-amp-init"}, {.id = ALC236_FIXUP_LENOVO_INV_DMIC, .name = "alc236-fixup-lenovo-inv-mic"}, {.id = ALC2XX_FIXUP_HEADSET_MIC, .name = "alc2xx-fixup-headset-mic"}, + {.id = ALC245_FIXUP_BASS_HP_DAC, .name = "alc245-fixup-bass-hp-dac"}, {} };#define ALC225_STANDARD_PINS \
Signature · 1 line
2.51.0
Quoted 48 lines · Samuel Dionne-Riel
First, adding a generic quirk for Bass speaker DAC avoidance.
This pattern (re-routing the bass speakers off of a DAC without volume control) seems common enough that having a "model" to match against and quickly use to verify may be worthwhile.
The
alc285_fixup_thinkpad_x1_gen7routing was selected, amongst the different options, as it should allow tuning the ratio between both speaker set.The routing was verified using
hda-verb, and picking either0x00or0x01. Either routing made the volume of the bass speakers controllable.hda-verb /dev/snd/hwC1D0 0x17 SET_CONNECT_SEL 0x01This likely will apply for the Minisforum V3, though there isn't a lot of information to confirm whether or not the identifiers are the same.
This was verified on the Minisforum V3 SE, and the root cause (the bass speakers routing) was found out by using pink noise, and playing with the mixers.
Signed-off-by Samuel Dionne-Riel <[email protected]>---
Hi!
Quoted 4 lines
Indeed it looks like that we can cleanup a lot regarding this DAC routing fix-ups. Though,
*_thinkpad_x1_gen7()has more workarounds about the control element renames -- which needs to be verified whether the very same workaround is applicable to other cases.The renames were the reason I picked this particular fixup. It matches the fact these are distinct speakers, and matches the role.
Quoted 2 lines
IIUC, this kcontrol names (DAC1/DAC2) match with your device configuration? Could you give
alsa-info.shoutput?Indeed! Here is the output:
- https://alsa-project.org/db/?f=69517ae9d95e21b50eddc64538c7094aaf356a07
See also v1 for the methodology additional commentary.
- https://lore.kernel.org/linux-sound/[email protected]/
Quoted 7 lines
Changes since v1:
- Combined commits
- Fixed order of the fixup tableThank you for your time!
Signed-off-by Samuel Dionne-Riel <[email protected]>
Now I applied to for-next branch, as it's no urgent fix. I slightly modified the patch to adapt to the latest tree.
thanks,
Takashi