/* * Local helper macros and functions for HD-audio core drivers */ #ifndef __HDAC_LOCAL_H #define __HDAC_LOCAL_H #define get_wcaps(codec, nid) \ snd_hdac_read_parm(codec, nid, AC_PAR_AUDIO_WIDGET_CAP) /* get the widget type from widget capability bits */ static inline int get_wcaps_type(unsigned int wcaps) { if (!wcaps) return -1; /* invalid type */ return (wcaps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT; } static inline unsigned int get_wcaps_channels(u32 wcaps) { unsigned int chans; chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; chans = (chans + 1) * 2; return chans; } extern const struct attribute_group *hdac_dev_attr_groups[]; int hda_widget_sysfs_init(struct hdac_device *codec); void hda_widget_sysfs_exit(struct hdac_device *codec); #endif /* __HDAC_LOCAL_H */ x/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='26717828b75dd5c46e97f7f4a9b937d038bb2852'/><input type='hidden' name='showmsg' value='1'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master' selected='selected'>master</option> <option value='nds-private-remove'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=26717828b75dd5c46e97f7f4a9b937d038bb2852'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python?showmsg=1'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/perf/scripts/python?id=26717828b75dd5c46e97f7f4a9b937d038bb2852'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/scripts/python?id=26717828b75dd5c46e97f7f4a9b937d038bb2852'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/scripts/python?id=26717828b75dd5c46e97f7f4a9b937d038bb2852'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python'> <input type='hidden' name='id' value='26717828b75dd5c46e97f7f4a9b937d038bb2852'/><input type='hidden' name='showmsg' value='1'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=26717828b75dd5c46e97f7f4a9b937d038bb2852&showmsg=1'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=26717828b75dd5c46e97f7f4a9b937d038bb2852&showmsg=1'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?id=26717828b75dd5c46e97f7f4a9b937d038bb2852&showmsg=1'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts?id=26717828b75dd5c46e97f7f4a9b937d038bb2852&showmsg=1'>scripts</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python?id=26717828b75dd5c46e97f7f4a9b937d038bb2852&showmsg=1'>python</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python?id=26717828b75dd5c46e97f7f4a9b937d038bb2852'>Collapse</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>