Re: hda-intel: no soundcard with current linus' git tree

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Maxim Levitsky <maximlevitsky@...>
Cc: Thomas Meyer <thomas@...>, Linux Kernel Mailing List <linux-kernel@...>, <alsa-devel@...>
Date: Thursday, October 18, 2007 - 9:49 am

At Thu, 18 Oct 2007 16:21:59 +0200,
Maxim Levitsky wrote:

The point is that apps usually require a "Master" volume.  If it's the
single volume control, it's better to call it master for convenience.



Yes, 9200 doesn't call stac92xx_auto_create_hp_ctls(), so it's not
affected.


Both are handled as patch_stac925x.  That's what I meant.  With your
patch, there will be no master any more.

So, how about the patch below?


Takashi

diff -r fb9512ce24e0 pci/hda/patch_sigmatel.c
--- a/pci/hda/patch_sigmatel.c	Thu Oct 18 10:48:43 2007 +0200
+++ b/pci/hda/patch_sigmatel.c	Thu Oct 18 16:36:35 2007 +0200
@@ -111,6 +111,7 @@ struct sigmatel_spec {
 	unsigned int alt_switch: 1;
 	unsigned int hp_detect: 1;
 	unsigned int gpio_mute: 1;
+	unsigned int no_vol_knob :1;
 
 	unsigned int gpio_mask, gpio_data;
 
@@ -1930,7 +1931,8 @@ static int stac92xx_auto_create_hp_ctls(
 	}
 	if (spec->multiout.hp_nid) {
 		const char *pfx;
-		if (old_num_dacs == spec->multiout.num_dacs)
+		if (old_num_dacs == spec->multiout.num_dacs &&
+		    spec->no_vol_knob)
 			pfx = "Master";
 		else
 			pfx = "Headphone";
@@ -2487,6 +2489,7 @@ static int patch_stac9200(struct hda_cod
 	codec->spec = spec;
 	spec->num_pins = ARRAY_SIZE(stac9200_pin_nids);
 	spec->pin_nids = stac9200_pin_nids;
+	spec->no_vol_knob = 1;
 	spec->board_config = snd_hda_check_board_config(codec, STAC_9200_MODELS,
 							stac9200_models,
 							stac9200_cfg_tbl);
@@ -2541,6 +2544,7 @@ static int patch_stac925x(struct hda_cod
 	codec->spec = spec;
 	spec->num_pins = ARRAY_SIZE(stac925x_pin_nids);
 	spec->pin_nids = stac925x_pin_nids;
+	spec->no_vol_knob = 1;
 	spec->board_config = snd_hda_check_board_config(codec, STAC_925x_MODELS,
 							stac925x_models,
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hda-intel: no soundcard with current linus' git tree, Thomas Meyer, (Tue Oct 16, 6:18 pm)
Re: hda-intel: no soundcard with current linus' git tree, Maxim Levitsky, (Wed Oct 17, 11:36 pm)
Re: hda-intel: no soundcard with current linus' git tree, Maxim Levitsky, (Thu Oct 18, 12:10 am)
Re: hda-intel: no soundcard with current linus' git tree, Maxim Levitsky, (Wed Oct 17, 9:51 pm)
Re: hda-intel: no soundcard with current linus' git tree, Maxim Levitsky, (Wed Oct 17, 9:53 pm)
Re: hda-intel: no soundcard with current linus' git tree, Maxim Levitsky, (Thu Oct 18, 10:21 am)
Re: hda-intel: no soundcard with current linus' git tree, Takashi Iwai, (Thu Oct 18, 9:49 am)
Re: hda-intel: no soundcard with current linus' git tree, Thomas Meyer, (Sun Oct 21, 11:42 am)
Re: hda-intel: no soundcard with current linus' git tree, Maxim Levitsky, (Thu Oct 18, 11:24 am)
Re: hda-intel: no soundcard with current linus' git tree, Takashi Iwai, (Thu Oct 18, 10:47 am)
Re: hda-intel: no soundcard with current linus' git tree, Maxim Levitsky, (Tue Oct 16, 10:47 pm)