Skip to content

Commit 539a509

Browse files
committed
Merge branch 'for-linus' into for-next
2 parents 2231af7 + 13d9c6b commit 539a509

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6645,6 +6645,7 @@ enum {
66456645
ALC287_FIXUP_IDEAPAD_BASS_SPK_AMP,
66466646
ALC623_FIXUP_LENOVO_THINKSTATION_P340,
66476647
ALC255_FIXUP_ACER_HEADPHONE_AND_MIC,
6648+
ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST,
66486649
};
66496650

66506651
static const struct hda_fixup alc269_fixups[] = {
@@ -8229,6 +8230,12 @@ static const struct hda_fixup alc269_fixups[] = {
82298230
.chained = true,
82308231
.chain_id = ALC255_FIXUP_XIAOMI_HEADSET_MIC
82318232
},
8233+
[ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST] = {
8234+
.type = HDA_FIXUP_FUNC,
8235+
.v.func = alc269_fixup_limit_int_mic_boost,
8236+
.chained = true,
8237+
.chain_id = ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF,
8238+
},
82328239
};
82338240

82348241
static const struct snd_pci_quirk alc269_fixup_tbl[] = {
@@ -8425,8 +8432,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {
84258432
SND_PCI_QUIRK(0x103c, 0x8847, "HP EliteBook x360 830 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
84268433
SND_PCI_QUIRK(0x103c, 0x884b, "HP EliteBook 840 Aero G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
84278434
SND_PCI_QUIRK(0x103c, 0x884c, "HP EliteBook 840 G8 Notebook PC", ALC285_FIXUP_HP_GPIO_LED),
8428-
SND_PCI_QUIRK(0x103c, 0x8862, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
8429-
SND_PCI_QUIRK(0x103c, 0x8863, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_MUTE_LED_MICMUTE_VREF),
8435+
SND_PCI_QUIRK(0x103c, 0x8862, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST),
8436+
SND_PCI_QUIRK(0x103c, 0x8863, "HP ProBook 445 G8 Notebook PC", ALC236_FIXUP_HP_LIMIT_INT_MIC_BOOST),
84308437
SND_PCI_QUIRK(0x103c, 0x886d, "HP ZBook Fury 17.3 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),
84318438
SND_PCI_QUIRK(0x103c, 0x8870, "HP ZBook Fury 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),
84328439
SND_PCI_QUIRK(0x103c, 0x8873, "HP ZBook Studio 15.6 Inch G8 Mobile Workstation PC", ALC285_FIXUP_HP_GPIO_AMP_INIT),
@@ -9501,6 +9508,16 @@ static int patch_alc269(struct hda_codec *codec)
95019508

95029509
snd_hda_pick_fixup(codec, alc269_fixup_models,
95039510
alc269_fixup_tbl, alc269_fixups);
9511+
/* FIXME: both TX300 and ROG Strix G17 have the same SSID, and
9512+
* the quirk breaks the latter (bko#214101).
9513+
* Clear the wrong entry.
9514+
*/
9515+
if (codec->fixup_id == ALC282_FIXUP_ASUS_TX300 &&
9516+
codec->core.vendor_id == 0x10ec0294) {
9517+
codec_dbg(codec, "Clear wrong fixup for ASUS ROG Strix G17\n");
9518+
codec->fixup_id = HDA_FIXUP_ID_NOT_SET;
9519+
}
9520+
95049521
snd_hda_pick_pin_fixup(codec, alc269_pin_fixup_tbl, alc269_fixups, true);
95059522
snd_hda_pick_pin_fixup(codec, alc269_fallback_pin_fixup_tbl, alc269_fixups, false);
95069523
snd_hda_pick_fixup(codec, NULL, alc269_fixup_vendor_tbl,

sound/soc/intel/atom/sst-mfld-platform-pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void sst_fill_alloc_params(struct snd_pcm_substream *substream,
127127
snd_pcm_uframes_t period_size;
128128
ssize_t periodbytes;
129129
ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
130-
u32 buffer_addr = substream->runtime->dma_addr;
130+
u32 buffer_addr = virt_to_phys(substream->runtime->dma_area);
131131

132132
channels = substream->runtime->channels;
133133
period_size = substream->runtime->period_size;

0 commit comments

Comments
 (0)