"num_steps = 0" error on ALC256
Bug #1446517 reported by
David Henningsson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
David Henningsson | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This bug is used for tracking, please do not triage.
Changed in linux (Ubuntu): | |
assignee: | nobody → David Henningsson (diwic) |
status: | New → In Progress |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Vivid): | |
status: | New → Fix Committed |
To post a comment you must log in.
The ALC256 does not have a mixer nid at 0x0b, and there's no
loopback path (the output pins are directly connected to the DACs).
This commit fixes an "num_steps = 0 for NID=0xb (ctl = Beep Playback Volume)"
error (and as a result, problems with amixer/alsamixer).
If there's pcbeep functionality, it certainly isn't controlled by setting an
amp on 0x0b, so disable beep functionality (at least for now).
Cc: <email address hidden> /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/1446517 pci/hda/ patch_realtek. c | 5 +++--
BugLink: https:/
Signed-off-by: David Henningsson <email address hidden>
---
sound/
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/sound/ pci/hda/ patch_realtek. c b/sound/ pci/hda/ patch_realtek. c pci/hda/ patch_realtek. c pci/hda/ patch_realtek. c >codec_ variant = ALC269_TYPE_ALC256;
index 231d0e4..03975d03 100644
--- a/sound/
+++ b/sound/
@@ -5664,6 +5664,7 @@ static int patch_alc269(struct hda_codec *codec)
break;
case 0x10ec0256:
spec-
+ spec->gen.mixer_nid = 0; /* ALC256 does not have any loopback mixer path */
break;
}
@@ -5677,8 +5678,8 @@ static int patch_alc269(struct hda_codec *codec)
if (err < 0)
goto error;
- if (!spec- >gen.no_ analog && spec->gen.beep_nid) >gen.no_ analog && spec->gen.beep_nid && spec->gen. mixer_nid) mixer_nid, 0x04, HDA_INPUT);
- set_beep_amp(spec, 0x0b, 0x04, HDA_INPUT);
+ if (!spec-
+ set_beep_amp(spec, spec->gen.
codec->patch_ops = alc_patch_ops; >patch_ ops.stream_ pm = snd_hda_ gen_stream_ pm;
codec-
--
1.9.1