Re: [PATCH] Use "Skeaper" instead of "chname" by deafult.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Sun,  6 Dec 2009 19:57:24 +0100,
Alexey Fisher wrote:
> 
> 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
> 
> Signed-off-by: Alexey Fisher <bug-track@xxxxxxxxxxxxxxxxx>

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


> 
> 	modified:   sound/pci/hda/patch_sigmatel.c
> ---
>  sound/pci/hda/patch_sigmatel.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
> index e604bae..121a93e 100644
> --- a/sound/pci/hda/patch_sigmatel.c
> +++ b/sound/pci/hda/patch_sigmatel.c
> @@ -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)
> -- 
> 1.6.3.3
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux