diff options
-rw-r--r-- | sound/pci/hda/hda_codec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index b2d58998dbdd..2fe86d2e1b09 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -346,8 +346,10 @@ int snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid, | |||
346 | unsigned int parm; | 346 | unsigned int parm; |
347 | 347 | ||
348 | parm = snd_hda_param_read(codec, nid, AC_PAR_NODE_COUNT); | 348 | parm = snd_hda_param_read(codec, nid, AC_PAR_NODE_COUNT); |
349 | if (parm == -1) | 349 | if (parm == -1) { |
350 | *start_id = 0; | ||
350 | return 0; | 351 | return 0; |
352 | } | ||
351 | *start_id = (parm >> 16) & 0x7fff; | 353 | *start_id = (parm >> 16) & 0x7fff; |
352 | return (int)(parm & 0x7fff); | 354 | return (int)(parm & 0x7fff); |
353 | } | 355 | } |