Commit eb9ca3ab authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Add LFE chmap to ASUS ET2700

As the previous commit 1f0bbf03 added the pin config for the bass
speaker, this patch adds the corresponding LFE-only channel map on
ASUS ET2700.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=65961Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 1f0bbf03
...@@ -1783,6 +1783,7 @@ enum { ...@@ -1783,6 +1783,7 @@ enum {
ALC882_FIXUP_INV_DMIC, ALC882_FIXUP_INV_DMIC,
ALC882_FIXUP_NO_PRIMARY_HP, ALC882_FIXUP_NO_PRIMARY_HP,
ALC887_FIXUP_ASUS_BASS, ALC887_FIXUP_ASUS_BASS,
ALC887_FIXUP_BASS_CHMAP,
}; };
static void alc889_fixup_coef(struct hda_codec *codec, static void alc889_fixup_coef(struct hda_codec *codec,
...@@ -1916,6 +1917,9 @@ static void alc882_fixup_no_primary_hp(struct hda_codec *codec, ...@@ -1916,6 +1917,9 @@ static void alc882_fixup_no_primary_hp(struct hda_codec *codec,
} }
} }
static void alc_fixup_bass_chmap(struct hda_codec *codec,
const struct hda_fixup *fix, int action);
static const struct hda_fixup alc882_fixups[] = { static const struct hda_fixup alc882_fixups[] = {
[ALC882_FIXUP_ABIT_AW9D_MAX] = { [ALC882_FIXUP_ABIT_AW9D_MAX] = {
.type = HDA_FIXUP_PINS, .type = HDA_FIXUP_PINS,
...@@ -2112,6 +2116,12 @@ static const struct hda_fixup alc882_fixups[] = { ...@@ -2112,6 +2116,12 @@ static const struct hda_fixup alc882_fixups[] = {
{0x16, 0x99130130}, /* bass speaker */ {0x16, 0x99130130}, /* bass speaker */
{} {}
}, },
.chained = true,
.chain_id = ALC887_FIXUP_BASS_CHMAP,
},
[ALC887_FIXUP_BASS_CHMAP] = {
.type = HDA_FIXUP_FUNC,
.v.func = alc_fixup_bass_chmap,
}, },
}; };
...@@ -4731,7 +4741,7 @@ static const struct snd_pcm_chmap_elem asus_pcm_2_1_chmaps[] = { ...@@ -4731,7 +4741,7 @@ static const struct snd_pcm_chmap_elem asus_pcm_2_1_chmaps[] = {
}; };
/* override the 2.1 chmap */ /* override the 2.1 chmap */
static void alc662_fixup_bass_chmap(struct hda_codec *codec, static void alc_fixup_bass_chmap(struct hda_codec *codec,
const struct hda_fixup *fix, int action) const struct hda_fixup *fix, int action)
{ {
if (action == HDA_FIXUP_ACT_BUILD) { if (action == HDA_FIXUP_ACT_BUILD) {
...@@ -4939,7 +4949,7 @@ static const struct hda_fixup alc662_fixups[] = { ...@@ -4939,7 +4949,7 @@ static const struct hda_fixup alc662_fixups[] = {
}, },
[ALC662_FIXUP_BASS_CHMAP] = { [ALC662_FIXUP_BASS_CHMAP] = {
.type = HDA_FIXUP_FUNC, .type = HDA_FIXUP_FUNC,
.v.func = alc662_fixup_bass_chmap, .v.func = alc_fixup_bass_chmap,
.chained = true, .chained = true,
.chain_id = ALC662_FIXUP_ASUS_MODE4 .chain_id = ALC662_FIXUP_ASUS_MODE4
}, },
...@@ -4952,7 +4962,7 @@ static const struct hda_fixup alc662_fixups[] = { ...@@ -4952,7 +4962,7 @@ static const struct hda_fixup alc662_fixups[] = {
}, },
[ALC662_FIXUP_BASS_1A_CHMAP] = { [ALC662_FIXUP_BASS_1A_CHMAP] = {
.type = HDA_FIXUP_FUNC, .type = HDA_FIXUP_FUNC,
.v.func = alc662_fixup_bass_chmap, .v.func = alc_fixup_bass_chmap,
.chained = true, .chained = true,
.chain_id = ALC662_FIXUP_BASS_1A, .chain_id = ALC662_FIXUP_BASS_1A,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment