Skip to contentSkip to conversation

Use "Skeaper" instead of "chname" by deafult.

PATCH In review Alexey Fisher 2 participants 4 messages Dec 6, 2009 – Dec 8, 2009 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use "Skeaper" instead of "chname" by deafult.

If you use Speacker by defaut, Surround volume controls will have bad names. For example:
before patch -> after patch
-----------------------------

Speaker       ->  Front
Speaker 1     ->  Surround
Speaker 2     ->  Side

modified: sound/pci/hda/patch_sigmatel.c

---
 sound/pci/hda/patch_sigmatel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
sound/pci/hda/patch_sigmatel.c +4 -4
index e604bae..121a93e 100644
@@ -3152,13 +3152,13 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs,
 				idx = i;
 				break;
 			case AUTO_PIN_SPEAKER_OUT:
-				name = "Speaker";
-				idx = i;
-				break;
-			default:
 				name = chname[i];
 				idx = 0;
 				break;
+			default:
+				name = "Speaker";
+				idx = i;
+				break;
 			}
 			err = create_controls_idx(codec, name, idx, nid, 3);
 			if (err < 0)
Signature · 1 line
1.6.3.3
#1 lore raw

At Sun, 6 Dec 2009 19:57:24 +0100,

Quoted 10 lines · Alexey Fisher

If you use Speacker by defaut, Surround volume controls will have bad names. For example:
before patch -> after patch
-----------------------------

Speaker       ->  Front
Speaker 1     ->  Surround
Speaker 2     ->  Side

No, it's no-go. Your patch would break many other machines badly.

The problem here is that the speakers are assigned to your default pin configs. I suppose they are line-out jacks, not built-in speakers (or is it a monster PC with 4 speakers? :) If my guess is right, the default pincfgs have to be fixed.

thanks,

Takashi

Quoted 31 lines

modified: sound/pci/hda/patch_sigmatel.c

---
 sound/pci/hda/patch_sigmatel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
sound/pci/hda/patch_sigmatel.c +4 -4
index e604bae..121a93e 100644
@@ -3152,13 +3152,13 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs,
 				idx = i;
 				break;
 			case AUTO_PIN_SPEAKER_OUT:
-				name = "Speaker";
-				idx = i;
-				break;
-			default:
 				name = chname[i];
 				idx = 0;
 				break;
+			default:
+				name = "Speaker";
+				idx = i;
+				break;
 			}
 			err = create_controls_idx(codec, name, idx, nid, 3);
 			if (err < 0)
Signature · 1 line
1.6.3.3
#2 lore raw

Am Dienstag, den 08.12.2009, 12:06 +0100 schrieb Takashi Iwai:

Quoted 11 lines

At Sun, 6 Dec 2009 19:57:24 +0100,

Quoted 9 lines · Alexey Fisher

If you use Speacker by defaut, Surround volume controls will have bad names. For example:
before patch -> after patch
-----------------------------

Speaker       ->  Front
Speaker 1     ->  Surround
Speaker 2     ->  Side
Quoted 8 lines
Quoted 1 line

No, it's no-go. Your patch would break many other machines badly.

The problem here is that the speakers are assigned to your default pin configs. I suppose they are line-out jacks, not built-in speakers (or is it a monster PC with 4 speakers? :) If my guess is right, the default pincfgs have to be fixed.

Your guess is correct :) What bit should be fixed? Do you mean SET_CONFIG_DEFAULT_BYTES_2?

This is the part from my previous patch.

Quoted 41 lines
(quoted diff) +6 -0
+static unsigned int intel_dg45id_pin_configs[14] = {
+     0x02214230, 0x02A19240, 0x01113214, 0x01114210,
+     0x01A19250, 0x01111212, 0x01116211, 0x40f000f0,
+     0x40f000f0, 0x40f000f0, 0x40f000f0, 0x014510A0,
+     0x074510B0, 0x40f000f0
+};

sound

Quoted 10 lines

modified: sound/pci/hda/patch_sigmatel.c

---
 sound/pci/hda/patch_sigmatel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
sound renamed from sound/pci/hda/patch_sigmatel.c +0 -0

/pci/hda/patch_sigmatel.c

Quoted 24 lines

index e604bae..121a93e 100644

sound/pci/hda/patch_sigmatel.c +4 -4
@@ -3152,13 +3152,13 @@ static int create_multi_out_ctls(struct hda_codec *codec, int num_outs,
 				idx = i;
 				break;
 			case AUTO_PIN_SPEAKER_OUT:
-				name = "Speaker";
-				idx = i;
-				break;
-			default:
 				name = chname[i];
 				idx = 0;
 				break;
+			default:
+				name = "Speaker";
+				idx = i;
+				break;
 			}
 			err = create_controls_idx(codec, name, idx, nid, 3);
 			if (err < 0)
Signature · 1 line
1.6.3.3
#3 lore raw

At Tue, 08 Dec 2009 13:39:23 +0100,

Quoted 17 lines · Alexey Fisher

Am Dienstag, den 08.12.2009, 12:06 +0100 schrieb Takashi Iwai:

Quoted 15 lines

At Sun, 6 Dec 2009 19:57:24 +0100,

Quoted 10 lines · Alexey Fisher

If you use Speacker by defaut, Surround volume controls will have bad names. For example:
before patch -> after patch
-----------------------------

Speaker       ->  Front
Speaker 1     ->  Surround
Speaker 2     ->  Side

No, it's no-go. Your patch would break many other machines badly.

Quoted 7 lines
Quoted 4 lines

The problem here is that the speakers are assigned to your default pin configs. I suppose they are line-out jacks, not built-in speakers (or is it a monster PC with 4 speakers? :) If my guess is right, the default pincfgs have to be fixed.

Your guess is correct :) What bit should be fixed? Do you mean SET_CONFIG_DEFAULT_BYTES_2?

Check the HD-audio spec about the default configuration bits definitions, which bits play what role. Usually all 4 bytes are written at the same time, so it doesn't matter which verb number is.

Takashi