/* * u_uvc.h * * Utility definitions for the uvc function * * Copyright (c) 2013-2014 Samsung Electronics Co., Ltd. * http://www.samsung.com * * Author: Andrzej Pietrasiewicz * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef U_UVC_H #define U_UVC_H #include #include #define fi_to_f_uvc_opts(f) container_of(f, struct f_uvc_opts, func_inst) struct f_uvc_opts { struct usb_function_instance func_inst; unsigned int uvc_gadget_trace_param; unsigned int streaming_interval; unsigned int streaming_maxpacket; unsigned int streaming_maxburst; /* * Control descriptors array pointers for full-/high-speed and * super-speed. They point by default to the uvc_fs_control_cls and * uvc_ss_control_cls arrays respectively. Legacy gadgets must * override them in their gadget bind callback. */ const struct uvc_descriptor_header * const *fs_control; const struct uvc_descriptor_header * const *ss_control; /* * Streaming descriptors array pointers for full-speed, high-speed and * super-speed. They will point to the uvc_[fhs]s_streaming_cls arrays * for configfs-based gadgets. Legacy gadgets must initialize them in * their gadget bind callback. */ const struct uvc_descriptor_header * const *fs_streaming; const struct uvc_descriptor_header * const *hs_streaming; const struct uvc_descriptor_header * const *ss_streaming; /* Default control descriptors for configfs-based gadgets. */ struct uvc_camera_terminal_descriptor uvc_camera_terminal; struct uvc_processing_unit_descriptor uvc_processing; struct uvc_output_terminal_descriptor uvc_output_terminal; struct uvc_color_matching_descriptor uvc_color_matching; /* * Control descriptors pointers arrays for full-/high-speed and * super-speed. The first element is a configurable control header * descriptor, the other elements point to the fixed default control * descriptors. Used by configfs only, must not be touched by legacy * gadgets. */ struct uvc_descriptor_header *uvc_fs_control_cls[5]; struct uvc_descriptor_header *uvc_ss_control_cls[5]; /* * Streaming descriptors for full-speed, high-speed and super-speed. * Used by configfs only, must not be touched by legacy gadgets. The * arrays are allocated at runtime as the number of descriptors isn't * known in advance. */ struct uvc_descriptor_header **uvc_fs_streaming_cls; struct uvc_descriptor_header **uvc_hs_streaming_cls; struct uvc_descriptor_header **uvc_ss_streaming_cls; /* * Read/write access to configfs attributes is handled by configfs. * * This lock protects the descriptors from concurrent access by * read/write and symlink creation/removal. */ struct mutex lock; int refcnt; }; void uvc_set_trace_param(unsigned int trace); #endif /* U_UVC_H */ gi/linux/net-next.git/commit/sound/soc/codecs?id=aaaec6fc755447a1d056765b11b24d8ff2b81366'>codecs/wm9713.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-01-31 19:03:21 +0100
committerThomas Gleixner <tglx@linutronix.de>2017-01-31 20:22:18 +0100
commitaaaec6fc755447a1d056765b11b24d8ff2b81366 (patch)
treea7f4167960ee1df86739905b6ccdeb95465bfe5f /sound/soc/codecs/wm9713.h
parent08d85f3ea99f1eeafc4e8507936190e86a16ee8c (diff)
x86/irq: Make irq activate operations symmetric
The recent commit which prevents double activation of interrupts unearthed interesting code in x86. The code (ab)uses irq_domain_activate_irq() to reconfigure an already activated interrupt. That trips over the prevention code now. Fix it by deactivating the interrupt before activating the new configuration. Fixes: 08d85f3ea99f1 "irqdomain: Avoid activating interrupts more than once" Reported-and-tested-by: Mike Galbraith <efault@gmx.de> Reported-and-tested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1701311901580.3457@nanos
Diffstat (limited to 'sound/soc/codecs/wm9713.h')