snd_hda_get_sub_nodes(struct hda_codec *codec, hda_nid_t nid, hda_nid_t *start_id) { unsigned int parm;
parm = snd_hda_param_read(codec, nid, AC_PAR_NODE_COUNT); if (parm == -1) return 0;
*start_id = (parm >> 16) & 0x7fff;
/* this mean we need to fix the return value param when codec is vt1802 and nid is functional group */
return (int)(parm & 0x7fff); }
snd_hda_ get_sub_ nodes(struct hda_codec *codec, hda_nid_t nid,
hda_nid_t *start_id)
{
unsigned int parm;
parm = snd_hda_ param_read( codec, nid, AC_PAR_NODE_COUNT);
if (parm == -1)
return 0;
*start_id = (parm >> 16) & 0x7fff;
/* this mean we need to fix the return value param when codec is vt1802 and nid is functional group */
return (int)(parm & 0x7fff);
}