/* */ #ifndef __HDAC_LOCAL_H #define __HDAC_LOCAL_H int hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm); #define get_wcaps(codec, nid) \ 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; } #define get_pin_caps(codec, nid) \ hdac_read_parm(codec, nid, AC_PAR_PIN_CAP) static inline unsigned int get_pin_cfg(struct hdac_device *codec, hda_nid_t nid) { unsigned int val; if (snd_hdac_read(codec, nid, AC_VERB_GET_CONFIG_DEFAULT, 0, &val)) return -1; return val; } #define get_amp_caps(codec, nid, dir) \ hdac_read_parm(codec, nid, (dir) == HDA_OUTPUT ? \ AC_PAR_AMP_OUT_CAP : AC_PAR_AMP_IN_CAP) #define get_power_caps(codec, nid) \ hdac_read_parm(codec, nid, AC_PAR_POWER_STATE) #endif /* __HDAC_LOCAL_H */ 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=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/fs/affs/Changes'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/fs/affs/Changes?id=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/fs/affs/Changes?id=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/fs/affs/Changes?id=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/fs/affs/Changes'> <input type='hidden' name='id' value='926af6273fc683cd98cd0ce7bf0d04a02eed6742'/><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=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs?id=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>fs</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs/affs?id=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>affs</a>/<a href='/cgit.cgi/linux/net-next.git/log/fs/affs/Changes?id=926af6273fc683cd98cd0ce7bf0d04a02eed6742'>Changes</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/fs/affs/Changes?id=926af6273fc683cd98cd0ce7bf0d04a02eed6742&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>