/* sound_config.h * * A driver for sound cards, misc. configuration parameters. */ /* * Copyright (C) by Hannu Savolainen 1993-1997 * * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) * Version 2 (June 1991). See the "COPYING" file distributed with this software * for more info. */ #ifndef _SOUND_CONFIG_H_ #define _SOUND_CONFIG_H_ #include #include #include "os.h" #include "soundvers.h" #ifndef SND_DEFAULT_ENABLE #define SND_DEFAULT_ENABLE 1 #endif #ifndef MAX_REALTIME_FACTOR #define MAX_REALTIME_FACTOR 4 #endif /* * Use always 64k buffer size. There is no reason to use shorter. */ #undef DSP_BUFFSIZE #define DSP_BUFFSIZE (64*1024) #ifndef DSP_BUFFCOUNT #define DSP_BUFFCOUNT 1 /* 1 is recommended. */ #endif #define FM_MONO 0x388 /* This is the I/O address used by AdLib */ #ifndef CONFIG_PAS_BASE #define CONFIG_PAS_BASE 0x388 #endif /* SEQ_MAX_QUEUE is the maximum number of sequencer events buffered by the driver. (There is no need to alter this) */ #define SEQ_MAX_QUEUE 1024 #define SBFM_MAXINSTR (256) /* Size of the FM Instrument bank */ /* 128 instruments for general MIDI setup and 16 unassigned */ #define SND_NDEVS 256 /* Number of supported devices */ #define DSP_DEFAULT_SPEED 8000 #define MAX_AUDIO_DEV 5 #define MAX_MIXER_DEV 5 #define MAX_SYNTH_DEV 5 #define MAX_MIDI_DEV 6 #define MAX_TIMER_DEV 4 struct address_info { int io_base; int irq; int dma; int dma2; int always_detect; /* 1=Trust me, it's there */ char *name; int driver_use_1; /* Driver defined field 1 */ int driver_use_2; /* Driver defined field 2 */ int *osp; /* OS specific info */ int card_subtype; /* Driver specific. Usually 0 */ void *memptr; /* Module memory chainer */ int slots[6]; /* To remember driver slot ids */ }; #define SYNTH_MAX_VOICES 32 struct voice_alloc_info { int max_voice; int used_voices; int ptr; /* For device specific use */ unsigned short map[SYNTH_MAX_VOICES]; /* (ch << 8) | (note+1) */ int timestamp; int alloc_times[SYNTH_MAX_VOICES]; }; struct channel_info { int pgm_num; int bender_value; int bender_range; unsigned char controllers[128]; }; /* * Process wakeup reasons */ #define WK_NONE 0x00 #define WK_WAKEUP 0x01 #define WK_TIMEOUT 0x02 #define WK_SIGNAL 0x04 #define WK_SLEEP 0x08 #define WK_SELECT 0x10 #define WK_ABORT 0x20 #define OPEN_READ PCM_ENABLE_INPUT #define OPEN_WRITE PCM_ENABLE_OUTPUT #define OPEN_READWRITE (OPEN_READ|OPEN_WRITE) static inline int translate_mode(struct file *file) { if (OPEN_READ == (__force int)FMODE_READ && OPEN_WRITE == (__force int)FMODE_WRITE) return (__force int)(file->f_mode & (FMODE_READ | FMODE_WRITE)); else return ((file->f_mode & FMODE_READ) ? OPEN_READ : 0) | ((file->f_mode & FMODE_WRITE) ? OPEN_WRITE : 0); } #include "sound_calls.h" #include "dev_table.h" #ifndef DDB #define DDB(x) do {} while (0) #endif #ifndef MDB #ifdef MODULE #define MDB(x) x #else #define MDB(x) #endif #endif #define TIMER_ARMED 121234 #define TIMER_NOT_ARMED 1 #define MAX_MEM_BLOCKS 1024 #endif vers/usb/mon/Kconfig
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2017-01-27 14:19:25 +0200
committerKalle Valo <kvalo@codeaurora.org>2017-01-28 09:15:50 +0200
commit2b1d530cb3157f828fcaadd259613f59db3c6d1c (patch)
treefb5dfe8f2e6956f54377c7275f330cd158ead259 /drivers/usb/mon/Kconfig
parentbd19b5ab1da654de456e102250822ec06311d6ad (diff)
MAINTAINERS: ath9k-devel is closed
ath9k-devel list is now closed, only linux-wireless should be used. Reported-by: Michael Renzmann <mrenzmann@madwifi-project.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/usb/mon/Kconfig')
oth times happened when shutting down the X server. The call chains were different: - VT ioctl(KDSETMODE, KD_TEXT): intel_cleanup_plane_fb+0x5b/0xa0 [i915] drm_atomic_helper_cleanup_planes+0x6f/0x90 [drm_kms_helper] intel_atomic_commit_tail+0x749/0xfe0 [i915] intel_atomic_commit+0x3cb/0x4f0 [i915] drm_atomic_commit+0x4b/0x50 [drm] restore_fbdev_mode+0x14c/0x2a0 [drm_kms_helper] drm_fb_helper_restore_fbdev_mode_unlocked+0x34/0x80 [drm_kms_helper] drm_fb_helper_set_par+0x2d/0x60 [drm_kms_helper] intel_fbdev_set_par+0x18/0x70 [i915] fb_set_var+0x236/0x460 fbcon_blank+0x30f/0x350 do_unblank_screen+0xd2/0x1a0 vt_ioctl+0x507/0x12a0 tty_ioctl+0x355/0xc30 do_vfs_ioctl+0xa3/0x5e0 SyS_ioctl+0x79/0x90 entry_SYSCALL_64_fastpath+0x13/0x94 - i915 unpin_work workqueue: intel_unpin_work_fn+0x58/0x140 [i915] process_one_work+0x1f1/0x480 worker_thread+0x48/0x4d0 kthread+0x101/0x140 and this patch purely papers over the issue by adding a NULL pointer check and a WARN_ON_ONCE() to avoid the oops that would then generally make the machine unresponsive. Other callers of i915_gem_object_to_ggtt() seem to also check for the returned pointer being NULL and warn about it, so this clearly has happened before in other places. [ Reported it originally to the i915 developers on Jan 8, applying the ugly workaround on my own now after triggering the problem for the second time with no feedback. This is likely to be the same bug reported as https://bugs.freedesktop.org/show_bug.cgi?id=98829 https://bugs.freedesktop.org/show_bug.cgi?id=99134 which has a patch for the underlying problem, but it hasn't gotten to me, so I'm applying the workaround. ] Cc: Daniel Vetter <daniel.vetter@intel.com> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Imre Deak <imre.deak@intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/early/Makefile')