Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157861
b: refs/heads/master
c: 23112d6
h: refs/heads/master
i:
  157859: 9e67949
v: v3
  • Loading branch information
Takashi Iwai committed Aug 25, 2009
1 parent 63787a1 commit ae856fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb162b6bf2f445d67a45f5485d4ce32addaf8fe0
refs/heads/master: 23112d6d2d9b265c959ecb671366c7c3b9c83611
9 changes: 8 additions & 1 deletion trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -6017,7 +6017,14 @@ static int alc260_auto_create_multi_out_ctls(struct alc_spec *spec,

nid = cfg->line_out_pins[0];
if (nid) {
err = alc260_add_playback_controls(spec, nid, "Front", &vols);
const char *pfx;
if (!cfg->speaker_pins[0] && !cfg->hp_pins[0])
pfx = "Master";
else if (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT)
pfx = "Speaker";
else
pfx = "Front";
err = alc260_add_playback_controls(spec, nid, pfx, &vols);
if (err < 0)
return err;
}
Expand Down

0 comments on commit ae856fe

Please sign in to comment.