All of lore.kernel.org
 help / color / mirror / Atom feed
* Dell AIO speaker pop noise
@ 2019-04-16  7:30 Kailang
  2019-04-16  7:56 ` hwang4
  2019-04-16  8:01 ` Jaroslav Kysela
  0 siblings, 2 replies; 19+ messages in thread
From: Kailang @ 2019-04-16  7:30 UTC (permalink / raw)
  To: Takashi Iwai (tiwai@suse.de); +Cc: hwang4,  (alsa-devel@alsa-project.org)

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

Hi Takashi,

Issue 1: The noise keeps occurring via speaker when Headset is plugged in.
Issue 2: The humming noise is occuring when switching to sound of settings.
	 The noise will be stopped when switching to other options of settings.
Issue 3: The popping noise occurred for one second when plugged in and removed the headset.

This patch will solve this three issues.

BR,
Kailang

[-- Attachment #2: 0000-dell-aio-spk-noise.patch --]
[-- Type: application/octet-stream, Size: 2268 bytes --]

From 1d77714bd35c9178e20904c569cd6a9c2d649e1b Mon Sep 17 00:00:00 2001
From: Kailang Yang <kailang@realtek.com>
Date: Tue, 16 Apr 2019 15:20:20 +0800
Subject: [PATCH] ALSA: hda/realtek - Fixed Dell AIO speaker noise

Issue 1: The noise keeps occurring via speaker when Headset is plugged in.
Issue 2: The humming noise is occuring when switching to sound of settings.
	 The noise will be stopped when switching to other options of settings.
Issue 3: The popping noise occurred for one second when plugged in and removed the headset.

This patch will solve this three issues.

Signed-off-by: Kailang Yang <kailang@realtek.com>

diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 810479766090..0ded0809546d 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5452,6 +5452,19 @@ static void alc274_fixup_bind_dacs(struct hda_codec *codec,
 	spec->gen.preferred_dacs = preferred_pairs;
 }
 
+static void alc274_fixup_aio_speaker(struct hda_codec *codec,
+				    const struct hda_fixup *fix, int action)
+{
+	struct alc_spec *spec = codec->spec;
+
+	switch (action) {
+	case HDA_FIXUP_ACT_PRE_PROBE:
+		codec->power_save_node = 0;
+		spec->gen.suppress_auto_mute = 1;
+		break;
+	}
+}
+
 /* The DAC of NID 0x3 will introduce click/pop noise on headphones, so invalidate it */
 static void alc285_fixup_invalidate_dacs(struct hda_codec *codec,
 			      const struct hda_fixup *fix, int action)
@@ -5677,6 +5690,7 @@ enum {
 	ALC294_FIXUP_LENOVO_MIC_LOCATION,
 	ALC225_FIXUP_DELL_WYSE_MIC_NO_PRESENCE,
 	ALC700_FIXUP_INTEL_REFERENCE,
+	ALC274_FIXUP_DELL_AIO_SPK,
 	ALC274_FIXUP_DELL_BIND_DACS,
 	ALC274_FIXUP_DELL_AIO_LINEOUT_VERB,
 	ALC298_FIXUP_TPT470_DOCK,
@@ -6551,11 +6565,17 @@ static const struct hda_fixup alc269_fixups[] = {
 			{}
 		}
 	},
+	[ALC274_FIXUP_DELL_AIO_SPK] = {
+		.type = HDA_FIXUP_FUNC,
+		.v.func = alc274_fixup_aio_speaker,
+		.chained = true,
+		.chain_id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE
+	},
 	[ALC274_FIXUP_DELL_BIND_DACS] = {
 		.type = HDA_FIXUP_FUNC,
 		.v.func = alc274_fixup_bind_dacs,
 		.chained = true,
-		.chain_id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE
+		.chain_id = ALC274_FIXUP_DELL_AIO_SPK
 	},
 	[ALC274_FIXUP_DELL_AIO_LINEOUT_VERB] = {
 		.type = HDA_FIXUP_PINS,

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-04-28  6:20 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16  7:30 Dell AIO speaker pop noise Kailang
2019-04-16  7:56 ` hwang4
2019-04-16  8:01 ` Jaroslav Kysela
2019-04-16  8:21   ` Takashi Iwai
2019-04-16  8:59     ` Kailang
2019-04-16  9:31       ` hwang4
2019-04-16  9:43         ` Takashi Iwai
2019-04-16 11:26           ` hwang4
2019-04-16 11:57             ` Takashi Iwai
2019-04-16 13:52               ` Kailang
2019-04-16 14:18             ` Kailang
2019-04-16 15:04               ` hwang4
2019-04-16 15:16                 ` Takashi Iwai
2019-04-26  8:32                   ` Kailang
2019-04-28  6:20                     ` Takashi Iwai
2019-04-17  7:37                 ` Kailang
2019-04-17  8:09                   ` hwang4
2019-04-16  9:59       ` Takashi Iwai
2019-04-16 10:11         ` Kailang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.