Skip to contentSkip to conversation

move alc892 to patch_alc882

PATCH Applied Kailang 3 participants 22 messages Mar 27, 2014 – Apr 10, 2014 Sound

lore
Share & tools
lore

Kailang

author
#0 lore raw

Hi Takashi,

The original was patch to patch_alc662. Move it into patch_alc882.

Thanks.

BR,
Kailang

Quoted 1 line

From 4f59a160db58ab7cbc090ba1d6a80cdc8ac18168 Mon Sep 17 00:00:00 2001

From: Kailang Yang <[email protected]>
Date: Thu, 27 Mar 2014 17:40:24 +0800
Subject: [PATCH] ALSA: hda/realtek - Move ALC892 to patch_alc882 entry

The old was entry to patch_alc662. Move it into patch_alc882.

sound/pci/hda/patch_realtek.c +1 -1
index af5f903..b074d75 100644
@@ -5796,7 +5796,7 @@ static const struct hda_codec_preset snd_hda_preset_realtek[] = {
 	  .patch = patch_alc882 },
 	{ .id = 0x10ec0888, .name = "ALC888", .patch = patch_alc882 },
 	{ .id = 0x10ec0889, .name = "ALC889", .patch = patch_alc882 },
-	{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc662 },
+	{ .id = 0x10ec0892, .name = "ALC892", .patch = patch_alc882 },
 	{ .id = 0x10ec0899, .name = "ALC898", .patch = patch_alc882 },
 	{ .id = 0x10ec0900, .name = "ALC1150", .patch = patch_alc882 },
 	{} /* terminator */
#1 lore raw

At Thu, 27 Mar 2014 17:47:11 +0800,

Quoted 5 lines · Kailang

Hi Takashi,

The original was patch to patch_alc662.
Move it into patch_alc882.

Could you give a bit more background *why* this change is necessary? It's the most important part. Please put into the patch description and resubmit.

thanks,

Takashi

Quoted 7 lines

Thanks.

BR,
Kailang
[2 0000-move-alc892-to-patch_alc882.patch <application/octet-stream (quoted-printable)>]

#2 lore raw
In reply to Kailang

Hi Takashi,

Quoted 5 lines

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ?

#3 lore raw

At Sat, 5 Apr 2014 14:52:24 +0800,

Quoted 9 lines · Raymond Yau

Hi Takashi,

Quoted 5 lines

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ?

Because it's not clarified why this must be applied. I'm waiting for the updated patch from Kailang.

Takashi

author
#4 lore raw
Quoted 7 lines

At Sat, 5 Apr 2014 14:52:24 +0800,

Quoted 4 lines · Raymond Yau

Hi Takashi,

Quoted 1 line
Quoted 9 lines
Quoted 5 lines
Quoted 4 lines

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ?

Because it's not clarified why this must be applied. I'm waiting for the updated patch from Kailang.

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

Quoted 4 lines

Takashi

------Please consider the environment before printing this e-mail.

#5 lore raw

At Mon, 7 Apr 2014 14:04:34 +0800,

Quoted 14 lines · Kailang
Quoted 14 lines

At Sat, 5 Apr 2014 14:52:24 +0800,

Quoted 9 lines · Raymond Yau

Hi Takashi,

Quoted 5 lines

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ?

Quoted 7 lines
Quoted 3 lines

Because it's not clarified why this must be applied. I'm waiting for the updated patch from Kailang.

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Takashi

Quoted 6 lines
Quoted 5 lines

Takashi

------Please consider the environment before printing this e-mail.

author
#6 lore raw

Improve hp pop noise

Hi Takashi,

In our test, it is better to set Mic2-vref control to manual mode. It will have better result for HP pop noise.
So, I fill it back in this patch.

BR,
Kailang

Quoted 1 line

From 91b5643db5db060f21808e22a416540d061181de Mon Sep 17 00:00:00 2001

From: Kailang Yang <[email protected]>
Date: Mon, 7 Apr 2014 16:41:52 +0800
Subject: [PATCH] ALSA: hda/realtek - Improve HP depop when system change power
state

It is better to change Mic2-Vref to manual mode. Manual control Mic2-Vref will solve pop noise issue. It will improve pop noise for power on, power off ,S3 and resume.

sound/pci/hda/patch_realtek.c +4 -0
index 4ce744b..b36be20 100644
@@ -4005,6 +4005,10 @@ static void alc283_fixup_chromebook(struct hda_codec *codec,
 		spec->gen.mixer_nid = 0;
 		break;
 	case HDA_FIXUP_ACT_INIT:
+		/* MIC2-VREF control */
+		/* Set to manual mode */
+		val = alc_read_coef_idx(codec, 0x06);
+		alc_write_coef_idx(codec, 0x06, val & ~0x000c);
 		/* Enable Line1 input control by verb */
 		val = alc_read_coef_idx(codec, 0x1a);
 		alc_write_coef_idx(codec, 0x1a, val | (1 << 4));
#7 lore raw

Re: Improve hp pop noise

At Mon, 7 Apr 2014 16:59:23 +0800,

Quoted 6 lines · Kailang

Hi Takashi,

In our test, it is better to set Mic2-vref control to manual mode. It will have better result for HP pop noise.
So, I fill it back in this patch.

OK, I applied it now. Thanks.

Takashi

Quoted 5 lines

BR,
Kailang
[2 0000-improve-hp-pop-noise.patch <application/octet-stream (quoted-printable)>]

author
#8 lore raw

Change module name for Chrome

Hi Takashi,

Chrome OS was use alc283-dac-wcaps module name as default in their kernel. I was create the change patch for future support.
Thanks.

BR,
Kailang

Quoted 1 line

From 5ed939f4dde9b88af829c1bd25486edbea8f2da6 Mon Sep 17 00:00:00 2001

From: Kailang Yang <[email protected]>
Date: Tue, 8 Apr 2014 15:19:49 +0800
Subject: [PATCH] ALSA: hda/realtek - Change module name alias for ChromeOS

Chrome OS was use module name of alc283-dac-wcaps for loading module as default. Change the module name to same as module name of Chrome OS for future support.

sound/pci/hda/patch_realtek.c +1 -1
index b36be20..237867d 100644
@@ -4783,7 +4783,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
 	{.id = ALC269_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"},
 	{.id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
 	{.id = ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "dell-headset-dock"},
-	{.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-chrome"},
+	{.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"},
 	{.id = ALC283_FIXUP_SENSE_COMBO_JACK, .name = "alc283-sense-combo"},
 	{}
 };
#9 lore raw

Re: Change module name for Chrome

At Tue, 8 Apr 2014 15:34:18 +0800,

Quoted 5 lines · Kailang

Hi Takashi,

Chrome OS was use alc283-dac-wcaps module name as default in their kernel. I was create the change patch for future support.

You mean "model" name, right? If so, please correct and resubmit the patch.

thanks,

Takashi

author
#10 lore raw

Re: Change module name for Chrome

Oh! sorry..
Attach again.

Quoted 12 lines

At Tue, 8 Apr 2014 15:34:18 +0800,

Quoted 5 lines · Kailang

Hi Takashi,

Chrome OS was use alc283-dac-wcaps module name as default in their kernel. I was create the change patch for future support.

You mean "model" name, right? If so, please correct and resubmit the patch.

Quoted 6 lines

thanks,

Takashi

------Please consider the environment before printing this e-mail. From 5ed939f4dde9b88af829c1bd25486edbea8f2da6 Mon Sep 17 00:00:00 2001

From: Kailang Yang <[email protected]>
Date: Tue, 8 Apr 2014 15:19:49 +0800
Subject: [PATCH] ALSA: hda/realtek - Change model name alias for ChromeOS

Chrome OS was use model name of alc283-dac-wcaps for loading model as default. Change the model name to same as model name of Chrome OS for future support.

sound/pci/hda/patch_realtek.c +1 -1
index b36be20..237867d 100644
@@ -4783,7 +4783,7 @@ static const struct hda_model_fixup alc269_fixup_models[] = {
 	{.id = ALC269_FIXUP_HP_GPIO_LED, .name = "hp-gpio-led"},
 	{.id = ALC269_FIXUP_DELL1_MIC_NO_PRESENCE, .name = "dell-headset-multi"},
 	{.id = ALC269_FIXUP_DELL2_MIC_NO_PRESENCE, .name = "dell-headset-dock"},
-	{.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-chrome"},
+	{.id = ALC283_FIXUP_CHROME_BOOK, .name = "alc283-dac-wcaps"},
 	{.id = ALC283_FIXUP_SENSE_COMBO_JACK, .name = "alc283-sense-combo"},
 	{}
 };
Applied
#11 lore raw

Re: Change module name for Chrome

At Tue, 8 Apr 2014 16:06:22 +0800,

Quoted 4 lines · Kailang

Oh! sorry..
Attach again.

Thanks, applied.

Takashi

Quoted 22 lines
Quoted 15 lines

At Tue, 8 Apr 2014 15:34:18 +0800,

Quoted 6 lines · Kailang

Hi Takashi,

Chrome OS was use alc283-dac-wcaps module name as default in their kernel.
I was create the change patch for future support.

You mean "model" name, right? If so, please correct and resubmit the patch.

Quoted 5 lines

thanks,

Takashi

------Please consider the environment before printing this e-mail.

[2 0000-change-model-name-for-chrome.patch <application/octet-stream (quoted-printable)>]

author
#12 lore raw

Re: Change module name for Chrome

git clone git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git sound.git

I use upper to download kernel source code.
It only has master branch.
If i run git pull, it couldn't update for-linus branch. Right? When is the for-linus or for-next will be merged into master? Thanks

Quoted 34 lines

At Tue, 8 Apr 2014 16:06:22 +0800,

Quoted 4 lines · Kailang

Oh! sorry..
Attach again.

Thanks, applied.

Takashi

Quoted 22 lines
Quoted 15 lines

At Tue, 8 Apr 2014 15:34:18 +0800,

Quoted 6 lines · Kailang

Hi Takashi,

Chrome OS was use alc283-dac-wcaps module name as default in their kernel.
I was create the change patch for future support.

You mean "model" name, right? If so, please correct and resubmit the patch.

Quoted 5 lines

thanks,

Takashi

------Please consider the environment before printing this e-mail.

[2 0000-change-model-name-for-chrome.patch <application/octet-stream (quoted-printable)>]

author
#13 lore raw

Add eapd shutup to alc283

In reply to Takashi Iwai

Hi Takashi,

Maybe internal speaker will have pop noise when system enter to suspend. Add eapd shutup to alc283_shutup.
Thanks.

BR,
Kailang

Quoted 1 line

From 81b05a94bb3d9d29bf3f431766ba95b5cce43e68 Mon Sep 17 00:00:00 2001

From: Kailang Yang <[email protected]>
Date: Tue, 8 Apr 2014 17:14:14 +0800
Subject: [PATCH] ALSA: hda/realtek - Add eapd shutup to ALC283

Add eapd shutup function to alc283_shutup.
It could avoid pop noise from speaker.

sound/pci/hda/patch_realtek.c +1 -0
index ca1298a..5a9879a 100644
@@ -3095,6 +3095,7 @@ static void alc283_shutup(struct hda_codec *codec)
 
 	if (hp_pin_sense)
 		msleep(100);
+	alc_auto_setup_eapd(codec, false);
 	snd_hda_shutup_pins(codec);
 	alc_write_coef_idx(codec, 0x43, 0x9614);
 }
author
#14 lore raw
In reply to Takashi Iwai
Quoted 22 lines

At Mon, 7 Apr 2014 14:04:34 +0800,

Quoted 18 lines · Kailang
Quoted 17 lines

At Sat, 5 Apr 2014 14:52:24 +0800,

Quoted 9 lines · Raymond Yau

Hi Takashi,

Quoted 5 lines

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ?

Because it's not clarified why this must be applied. I'm waiting for the updated patch from Kailang.

Quoted 8 lines
Quoted 3 lines

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Yes, but it maybe doesn't solve any thing.
But I remember I solve 8ch issue which run for patch_alc882. I will check alc892 for run with patch_alc882. Thanks.

Quoted 10 lines

Takashi

Quoted 6 lines
Quoted 5 lines

Takashi

------Please consider the environment before printing this e-mail.

#15 lore raw

2014-4-7 下午5:20 於 "Kailang" <[email protected]> 寫道:

Quoted 30 lines
Quoted 20 lines

At Mon, 7 Apr 2014 14:04:34 +0800,

Quoted 15 lines · Kailang
Quoted 15 lines

At Sat, 5 Apr 2014 14:52:24 +0800,

Quoted 8 lines · Raymond Yau
Quoted 6 lines
Quoted 2 lines

Hi Takashi,

Quoted 1 line

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ? Because it's not clarified why this must be applied.

I'm waiting for the updated patch from Kailang.

Quoted 9 lines
Quoted 3 lines

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Quoted 5 lines

Yes, but it maybe doesn't solve any thing.
But I remember I solve 8ch issue which run for patch_alc882. I will check alc892 for run with patch_alc882. Thanks.

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=e16fb6d1408bca0c0b36d490688eba3dc924b1fd

+ { 0x10ec0892, 0xffff, 0x8020, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x8011, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x4011, "ALC656" },

Seem some codec were renamed as alc661 and alc656
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

author
#16 lore raw
Quoted 38 lines

2014-4-7 下午5:20 於 "Kailang" <[email protected]> 寫道:

Quoted 17 lines

At Mon, 7 Apr 2014 14:04:34 +0800,

Quoted 15 lines · Kailang
Quoted 15 lines

At Sat, 5 Apr 2014 14:52:24 +0800,

Quoted 8 lines · Raymond Yau
Quoted 6 lines
Quoted 2 lines

Hi Takashi,

Quoted 1 line

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ? Because it's not clarified why this must be applied.

I'm waiting for the updated patch from Kailang.

Quoted 9 lines
Quoted 3 lines

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Yes, but it maybe doesn't solve any thing.
But I remember I solve 8ch issue which run for patch_alc882. I will check alc892 for run with patch_alc882. Thanks.

Quoted 6 lines

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=e16fb6d1408bca0c0b36d490688eba3dc924b1fd

+ { 0x10ec0892, 0xffff, 0x8020, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x8011, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x4011, "ALC656" },
Seem some codec were renamed as alc661 and alc656

Yes, it's the same body. IC mark shows different.

------Please consider the environment before printing this e-mail.

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#17 lore raw
Quoted 20 lines
Quoted 20 lines
Quoted 19 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

The original was patch to patch_alc662.
Move it into patch_alc882.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

is there any reason not including those PCI QUIRK for alc892 ? Because it's not clarified why this must be applied.

I'm waiting for the updated patch from Kailang.

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Quoted 7 lines
Quoted 7 lines

Yes, but it maybe doesn't solve any thing.
But I remember I solve 8ch issue which run for patch_alc882. I will check alc892 for run with patch_alc882. Thanks.

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=e16fb6d1408bca0c0b36d490688eba3dc924b1fd

Quoted 10 lines
Quoted 6 lines

+ { 0x10ec0892, 0xffff, 0x8020, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x8011, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x4011, "ALC656" },
Seem some codec were renamed as alc661 and alc656

Yes, it's the same body. IC mark shows different.

Can the driver assume all desktop with alc8xx codecs support multistreaming playback ?

It seem that alc6xx does not support multistreaming playback

author
#18 lore raw

Hi Raymond,

Your multi-streaming means muti channel out or separate output at the same time.

BR,
Kailang
----- Original Message -----
寄件者: Raymond Yau
收件者: Kailang
副本: Takashi Iwai ; ALSA Development Mailing List 傳送日期: 2014年4月9日 下午 12:53
主旨: Re: [alsa-devel] move alc892 to patch_alc882

Quoted 29 lines
Quoted 27 lines
Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

The original was patch to patch_alc662.
Move it into patch_alc882.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

is there any reason not including those PCI QUIRK for alc892 ? Because it's not clarified why this must be applied.

I'm waiting for the updated patch from Kailang.

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

Quoted 4 lines

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Yes, but it maybe doesn't solve any thing.
But I remember I solve 8ch issue which run for patch_alc882. I will check alc892 for run with patch_alc882. Thanks.

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=e16fb6d1408bca0c0b36d490688eba3dc924b1fd

Quoted 8 lines
Quoted 4 lines

+ { 0x10ec0892, 0xffff, 0x8020, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x8011, "ALC661" },
+ { 0x10ec0892, 0xffff, 0x4011, "ALC656" },
Seem some codec were renamed as alc661 and alc656

Yes, it's the same body. IC mark shows different.

Can the driver assume all desktop with alc8xx codecs support multistreaming playback ?

It seem that alc6xx does not support multistreaming playback

------Please consider the environment before printing this e-mail.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#19 lore raw

2014-4-9 下午2:30 於 "Kailang" <[email protected]> 寫道:

Quoted 4 lines

Hi Raymond,

Your multi-streaming means muti channel out or separate output at the

same time.

Seem most 6 channels codecs does not support multisteaming playback

The ALC892 provides ten DAC channels that simultaneously support 7.1 channel sound playback, plus 2 channels of independent stereo sound output (multiple streaming) through the front panel stereo outputs

The ALC231 is a High Definition Audio Codec that integrates a 4-channel DAC, 4-channel ADC, and a mono and filter-less Class-D Speaker Amplifier with 2Watt (rms) output power.

The 4-channel DAC and 4-channel ADC support two independent stereo sound outputs and two independent stereo inputs simultaneously; allowing multiple streaming playback and output for multimedia applications and voice communication.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#20 lore raw
In reply to Kailang
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines
Quoted 6 lines

At Sat, 5 Apr 2014 14:52:24 +0800,

Quoted 2 lines · Raymond Yau
Quoted 2 lines
Quoted 2 lines

Hi Takashi,

Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

The original was patch to patch_alc662.
Move it into patch_alc882.

is there any reason not including those PCI QUIRK for alc892 ? Because it's not clarified why this must be applied.

I'm waiting for the updated patch from Kailang.

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

Quoted 8 lines
Quoted 4 lines

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Yes, but it maybe doesn't solve any thing.
But I remember I solve 8ch issue which run for patch_alc882. I will check alc892 for run with patch_alc882.

The driver seem assume unique PCI ssid but it seem gigabyte motherboards use same ssid 0x1458, 0xa002

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=b2c53e206967d01fd4fb6dd525f89ae738beb2e6

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=78f8baf138311be3e170526388b0530a172bdbff

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=8f2392142346f2754c8292a94cc62a157ed1e093

#21 lore raw
In reply to Kailang
Quoted 11 lines
Quoted 10 lines
Quoted 4 lines
Quoted 1 line

Sorry!
I just aligned the channel count.
So, move the alc892 to patch_alc882.

As I already asked, could you resubmit the patch with the proper changelog? You have to clarify why the patch is needed and how it's solved in the patch changelog.

Quoted 5 lines

Yes, but it maybe doesn't solve any thing.
But I remember I solve 8ch issue which run for patch_alc882. I will check alc892 for run with patch_alc882. Thanks.

AFAIK, 8ch is not yet supported by generic driver for those desktop motherboard

1) with 5 jacks at rear panel (retask line in as side)
2) 10 channel codec with 3 jacks at rear panel(retask front HP as side)