/* * 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 */ it.cgi/'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-31 13:59:10 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-31 13:59:10 -0800
commit283725af0bd2a4a8600bbe5edeb9d7c72780d3a2 (patch)
tree9bf719df40980bf7eff7429e9e1db60e803d1698 /drivers
parentf1774f46d49f806614d81854321ee9e5138135e5 (diff)
parent05e0be7c900797e9164976a6014d534ce3035909 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem fixes from Dmitry Torokhov: "A fix for a crash in the wm97xx driver and synaptics-rmi4 will stop throwing erroneous warnings." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: synaptics-rmi4 - fix reversed conditions in enable/disable_irq_wake Input: wm97xx - make missing platform data non-fatal
Diffstat (limited to 'drivers')