SOURCES (LINUX_2_6): alsa-git-2005-11-07.patch (NEW) - fixed for 2...

cieciwa cieciwa at pld-linux.org
Thu Dec 15 10:58:35 CET 2005


Author: cieciwa                      Date: Thu Dec 15 09:58:34 2005 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
- fixed for 2.6.14.4

---- Files affected:
SOURCES:
   alsa-git-2005-11-07.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/alsa-git-2005-11-07.patch
diff -u /dev/null SOURCES/alsa-git-2005-11-07.patch:1.1.2.1
--- /dev/null	Thu Dec 15 10:58:34 2005
+++ SOURCES/alsa-git-2005-11-07.patch	Thu Dec 15 10:58:26 2005
@@ -0,0 +1,15020 @@
+diff --git a/Documentation/sound/alsa/ALSA-Configuration.txt b/Documentation/sound/alsa/ALSA-Configuration.txt
+--- a/Documentation/sound/alsa/ALSA-Configuration.txt
++++ b/Documentation/sound/alsa/ALSA-Configuration.txt
+@@ -167,7 +167,7 @@ Prior to version 0.9.0rc4 options had a 
+     spdif           - Support SPDIF I/O
+     		    - Default: disabled
+ 
+-    Module supports autoprobe and multiple chips (max 8).
++    This module supports one chip and autoprobe.
+ 
+     The power-management is supported.
+ 
+@@ -206,7 +206,7 @@ Prior to version 0.9.0rc4 options had a 
+ 			  See "AC97 Quirk Option" section below.
+     spdif_aclink	- S/PDIF transfer over AC-link (default = 1)
+ 
+-    This module supports up to 8 cards and autoprobe.
++    This module supports one card and autoprobe.
+ 
+     ATI IXP has two different methods to control SPDIF output.  One is
+     over AC-link and another is over the "direct" SPDIF output.  The
+@@ -218,7 +218,7 @@ Prior to version 0.9.0rc4 options had a 
+ 
+     Module for ATI IXP 150/200/250 AC97 modem controllers.
+ 
+-    Module supports up to 8 cards.
++    This module supports one card and autoprobe.
+ 
+     Note: The default index value of this module is -2, i.e. the first
+           slot is excluded.
+@@ -637,7 +637,7 @@ Prior to version 0.9.0rc4 options had a 
+     model	- force the model name
+     position_fix - Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size)
+ 
+-    Module supports up to 8 cards.
++    This module supports one card and autoprobe.
+ 
+     Each codec may have a model table for different configurations.
+     If your machine isn't listed there, the default (usually minimal)
+@@ -663,6 +663,10 @@ Prior to version 0.9.0rc4 options had a 
+ 			adjusted.  Appearing only when compiled with
+ 			$CONFIG_SND_DEBUG=y
+ 
++	ALC260
++	  hp		HP machines
++	  fujitsu	Fujitsu S7020
++
+ 	CMI9880
+ 	  minimal	3-jack in back
+ 	  min_fp	3-jack in back, 2-jack in front
+@@ -811,7 +815,7 @@ Prior to version 0.9.0rc4 options had a 
+ 		    semaphores (e.g. on some ASUS laptops)
+ 		    (default off)
+ 
+-    Module supports autoprobe and multiple bus-master chips (max 8).
++    This module supports one chip and autoprobe.
+ 
+     Note: the latest driver supports auto-detection of chip clock.
+     if you still encounter too fast playback, specify the clock
+@@ -830,7 +834,7 @@ Prior to version 0.9.0rc4 options had a 
+ 
+     ac97_clock	  - AC'97 codec clock base (0 = auto-detect)
+ 
+-    This module supports up to 8 cards and autoprobe.
++    This module supports one card and autoprobe.
+ 
+     Note: The default index value of this module is -2, i.e. the first
+           slot is excluded.
+@@ -950,8 +954,10 @@ Prior to version 0.9.0rc4 options had a 
+     use_cache        - 0 or 1 (disabled by default)
+     vaio_hack        - alias buffer_top=0x25a800
+     reset_workaround - enable AC97 RESET workaround for some laptops
++    reset_workaround2 - enable extended AC97 RESET workaround for some
++		      other laptops
+ 
+-    Module supports autoprobe and multiple chips (max 8).
++    This module supports one chip and autoprobe.
+ 
+     The power-management is supported.
+ 
+@@ -980,6 +986,11 @@ Prior to version 0.9.0rc4 options had a 
+     workaround is enabled automatically.  For other laptops with a
+     hard freeze, you can try reset_workaround=1 option.
+ 
++    Note: Dell Latitude CSx laptops have another problem regarding
++    AC97 RESET.  On these laptops, reset_workaround2 option is
++    turned on as default.  This option is worth to try if the
++    previous reset_workaround option doesn't help.
++
+     Note: This driver is really crappy.  It's a porting from the
+     OSS driver, which is a result of black-magic reverse engineering.
+     The detection of codec will fail if the driver is loaded *after*
+@@ -1310,7 +1321,7 @@ Prior to version 0.9.0rc4 options had a 
+     ac97_quirk  - AC'97 workaround for strange hardware
+ 		  See "AC97 Quirk Option" section below.
+ 
+-    Module supports autoprobe and multiple bus-master chips (max 8).
++    This module supports one chip and autoprobe.
+ 
+     Note: on some SMP motherboards like MSI 694D the interrupts might
+           not be generated properly.  In such a case, please try to
+@@ -1352,7 +1363,7 @@ Prior to version 0.9.0rc4 options had a 
+ 
+     ac97_clock	- AC'97 codec clock base (default 48000Hz)
+ 
+-    Module supports up to 8 cards.
++    This module supports one card and autoprobe.
+ 
+     Note: The default index value of this module is -2, i.e. the first
+           slot is excluded.
+diff --git a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
+--- a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
++++ b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl
+@@ -18,8 +18,8 @@
+       </affiliation>
+      </author>
+ 
+-     <date>March 6, 2005</date>
+-     <edition>0.3.4</edition>
++     <date>October 6, 2005</date>
++     <edition>0.3.5</edition>
+ 
+     <abstract>
+       <para>
+@@ -30,7 +30,7 @@
+ 
+     <legalnotice>
+     <para>
+-    Copyright (c) 2002-2004  Takashi Iwai <email>tiwai at suse.de</email>
++    Copyright (c) 2002-2005  Takashi Iwai <email>tiwai at suse.de</email>
+     </para>
+ 
+     <para>
+@@ -1433,25 +1433,10 @@
+         <informalexample>
+           <programlisting>
+ <![CDATA[
+-  if (chip->res_port) {
+-          release_resource(chip->res_port);
+-          kfree_nocheck(chip->res_port);
+-  }
++  release_and_free_resource(chip->res_port);
+ ]]>
+           </programlisting>
+         </informalexample>
+-
+-      As you can see, the resource pointer is also to be freed
+-      via <function>kfree_nocheck()</function> after
+-      <function>release_resource()</function> is called. You
+-      cannot use <function>kfree()</function> here, because on ALSA,
+-      <function>kfree()</function> may be a wrapper to its own
+-      allocator with the memory debugging. Since the resource pointer
+-      is allocated externally outside the ALSA, it must be released
+-      via the native
+-      <function>kfree()</function>.
+-      <function>kfree_nocheck()</function> is used for that; it calls
+-      the native <function>kfree()</function> without wrapper. 
+       </para>
+ 
+       <para>
+@@ -2190,8 +2175,7 @@ struct _snd_pcm_runtime {
+ 	unsigned int rate_den;
+ 
+ 	/* -- SW params -- */
+-	int tstamp_timespec;		/* use timeval (0) or timespec (1) */
+-	snd_pcm_tstamp_t tstamp_mode;	/* mmap timestamp is updated */
++	struct timespec tstamp_mode;	/* mmap timestamp is updated */
+   	unsigned int period_step;
+ 	unsigned int sleep_min;		/* min ticks to sleep */
+ 	snd_pcm_uframes_t xfer_align;	/* xfer size need to be a multiple */
+@@ -3709,8 +3693,7 @@ struct _snd_pcm_runtime {
+         <para>
+           Here, the chip instance is retrieved via
+         <function>snd_kcontrol_chip()</function> macro.  This macro
+-        converts from kcontrol-&gt;private_data to the type defined by
+-        <type>chip_t</type>. The
++        just accesses to kcontrol-&gt;private_data. The
+         kcontrol-&gt;private_data field is 
+         given as the argument of <function>snd_ctl_new()</function>
+         (see the later subsection
+@@ -5998,32 +5981,23 @@ struct _snd_pcm_runtime {
+         The first argument is the expression to evaluate, and the
+       second argument is the action if it fails. When
+       <constant>CONFIG_SND_DEBUG</constant>, is set, it will show an
+-      error message such as <computeroutput>BUG? (xxx) (called from
+-      yyy)</computeroutput>. When no debug flag is set, this is
+-      ignored. 
++      error message such as <computeroutput>BUG? (xxx)</computeroutput>
++      together with stack trace.
+       </para>
+-    </section>
+-
+-    <section id="useful-functions-snd-runtime-check">
+-      <title><function>snd_runtime_check()</function></title>
+-      <para>
+-        This macro is quite similar with
+-      <function>snd_assert()</function>. Unlike
+-      <function>snd_assert()</function>, the expression is always
+-      evaluated regardless of
+-      <constant>CONFIG_SND_DEBUG</constant>. When
+-      <constant>CONFIG_SND_DEBUG</constant> is set, the macro will
+-      show a message like <computeroutput>ERROR (xx) (called from
+-      yyy)</computeroutput>. 
++      <para>
++	 When no debug flag is set, this macro is ignored. 
+       </para>
+     </section>
+ 
+     <section id="useful-functions-snd-bug">
+       <title><function>snd_BUG()</function></title>
+       <para>
+-        It calls <function>snd_assert(0,)</function> -- that is, just
+-      prints the error message at the point. It's useful to show that
+-      a fatal error happens there. 
++        It shows <computeroutput>BUG?</computeroutput> message and
++      stack trace as well as <function>snd_assert</function> at the point.
++      It's useful to show that a fatal error happens there. 
++      </para>
++      <para>
++	 When no debug flag is set, this macro is ignored. 
+       </para>
+     </section>
+   </chapter>
+diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
+--- a/include/sound/ac97_codec.h
++++ b/include/sound/ac97_codec.h
+@@ -387,15 +387,6 @@
+ #define AC97_RATES_MIC_ADC	4
+ #define AC97_RATES_SPDIF	5
+ 
+-/* shared controllers */
+-enum {
+-	AC97_SHARED_TYPE_NONE,
+-	AC97_SHARED_TYPE_ICH,
+-	AC97_SHARED_TYPE_ATIIXP,
+-	AC97_SHARED_TYPE_VIA,
+-	AC97_SHARED_TYPES
+-};
+-
+ /*
+  *
+  */
+@@ -468,7 +459,6 @@ struct _snd_ac97_bus {
+ 	unsigned short used_slots[2][4]; /* actually used PCM slots */
+ 	unsigned short pcms_count; /* count of PCMs */
+ 	struct ac97_pcm *pcms;
+-	unsigned int shared_type;	/* type of shared controller betwen audio and modem */
+ 	ac97_t *codec[4];
+ 	snd_info_entry_t *proc;
+ };
+diff --git a/include/sound/core.h b/include/sound/core.h
+--- a/include/sound/core.h
++++ b/include/sound/core.h
+@@ -29,7 +29,6 @@
+ #include <linux/pm.h>			/* pm_message_t */
+ 
+ /* Typedef's */
+-typedef struct timespec snd_timestamp_t;
+ typedef struct sndrv_interval snd_interval_t;
+ typedef enum sndrv_card_type snd_card_type;
+ typedef struct sndrv_xferi snd_xferi_t;
+@@ -256,6 +255,7 @@ typedef struct _snd_minor snd_minor_t;
+ 
+ /* sound.c */
+ 
++extern int snd_major;
+ extern int snd_ecards_limit;
+ 
+ void snd_request_card(int card);
+@@ -285,39 +285,6 @@ int snd_oss_init_module(void);
+ 
+ /* memory.c */
+ 
+-#ifdef CONFIG_SND_DEBUG_MEMORY
+-void snd_memory_init(void);
+-void snd_memory_done(void);
+-int snd_memory_info_init(void);
+-int snd_memory_info_done(void);
+-void *snd_hidden_kmalloc(size_t size, gfp_t flags);
+-void *snd_hidden_kzalloc(size_t size, gfp_t flags);
+-void *snd_hidden_kcalloc(size_t n, size_t size, gfp_t flags);
+-void snd_hidden_kfree(const void *obj);
+-void *snd_hidden_vmalloc(unsigned long size);
+-void snd_hidden_vfree(void *obj);
+-char *snd_hidden_kstrdup(const char *s, gfp_t flags);
+-#define kmalloc(size, flags) snd_hidden_kmalloc(size, flags)
+-#define kzalloc(size, flags) snd_hidden_kzalloc(size, flags)
+-#define kcalloc(n, size, flags) snd_hidden_kcalloc(n, size, flags)
+-#define kfree(obj) snd_hidden_kfree(obj)
+-#define vmalloc(size) snd_hidden_vmalloc(size)
+-#define vfree(obj) snd_hidden_vfree(obj)
+-#define kmalloc_nocheck(size, flags) snd_wrapper_kmalloc(size, flags)
+-#define vmalloc_nocheck(size) snd_wrapper_vmalloc(size)
+-#define kfree_nocheck(obj) snd_wrapper_kfree(obj)
+-#define vfree_nocheck(obj) snd_wrapper_vfree(obj)
+-#define kstrdup(s, flags)  snd_hidden_kstrdup(s, flags)
+-#else
+-#define snd_memory_init() /*NOP*/
+-#define snd_memory_done() /*NOP*/
+-#define snd_memory_info_init() /*NOP*/
+-#define snd_memory_info_done() /*NOP*/
+-#define kmalloc_nocheck(size, flags) kmalloc(size, flags)
+-#define vmalloc_nocheck(size) vmalloc(size)
+-#define kfree_nocheck(obj) kfree(obj)
+-#define vfree_nocheck(obj) vfree(obj)
+-#endif
+ int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count);
+ int copy_from_user_toio(volatile void __iomem *dst, const void __user *src, size_t count);
+ 
+@@ -373,8 +340,9 @@ unsigned int snd_dma_pointer(unsigned lo
+ #endif
+ 
+ /* misc.c */
++struct resource;
++void release_and_free_resource(struct resource *res);
+ 
+-int snd_task_name(struct task_struct *task, char *name, size_t size);
+ #ifdef CONFIG_SND_VERBOSE_PRINTK
+ void snd_verbose_printk(const char *file, int line, const char *format, ...)
+      __attribute__ ((format (printf, 3, 4)));
+@@ -429,34 +397,24 @@ void snd_verbose_printd(const char *file
+  * When CONFIG_SND_DEBUG is not set, the expression is executed but
+  * not checked.
+  */
+-#define snd_assert(expr, args...) do {\
+-	if (unlikely(!(expr))) {				\
+-		snd_printk(KERN_ERR "BUG? (%s) (called from %p)\n", __ASTRING__(expr), __builtin_return_address(0));\
+-		args;\
+-	}\
++#define snd_assert(expr, args...) do {					\
++	if (unlikely(!(expr))) {					\
++		snd_printk(KERN_ERR "BUG? (%s)\n", __ASTRING__(expr));	\
++		dump_stack();						\
++		args;							\
++	}								\
+ } while (0)
+-/**
+- * snd_runtime_check - run-time assertion macro
+- * @expr: expression
+- * @args...: the action
+- *
+- * This macro checks the expression in run-time and invokes the commands
+- * given in the rest arguments if the assertion is failed.
+- * Unlike snd_assert(), the action commands are executed even if
+- * CONFIG_SND_DEBUG is not set but without any error messages.
+- */
+-#define snd_runtime_check(expr, args...) do {\
+-	if (unlikely(!(expr))) {				\
+-		snd_printk(KERN_ERR "ERROR (%s) (called from %p)\n", __ASTRING__(expr), __builtin_return_address(0));\
+-		args;\
+-	}\
++
++#define snd_BUG() do {				\
++	snd_printk(KERN_ERR "BUG?\n");		\
++	dump_stack();				\
+ } while (0)
+ 
+ #else /* !CONFIG_SND_DEBUG */
+ 
+ #define snd_printd(fmt, args...)	/* nothing */
+ #define snd_assert(expr, args...)	(void)(expr)
+-#define snd_runtime_check(expr, args...) do { if (!(expr)) { args; } } while (0)
++#define snd_BUG()			/* nothing */
+ 
+ #endif /* CONFIG_SND_DEBUG */
+ 
+@@ -473,30 +431,6 @@ void snd_verbose_printd(const char *file
+ #define snd_printdd(format, args...) /* nothing */
+ #endif
+ 
+-#define snd_BUG() snd_assert(0, )
+-
+-
+-static inline void snd_timestamp_now(struct timespec *tstamp, int timespec)
+-{
+-	struct timeval val;
+-	/* FIXME: use a linear time source */
+-	do_gettimeofday(&val);
+-	tstamp->tv_sec = val.tv_sec;
+-	tstamp->tv_nsec = val.tv_usec;
+-	if (timespec)
+-		tstamp->tv_nsec *= 1000L;
+-}
+-
+-static inline void snd_timestamp_zero(struct timespec *tstamp)
+-{
+-	tstamp->tv_sec = 0;
+-	tstamp->tv_nsec = 0;
+-}
+-
+-static inline int snd_timestamp_null(struct timespec *tstamp)
+-{
+-	return tstamp->tv_sec == 0 && tstamp->tv_nsec == 0;
+-}
+ 
+ #define SNDRV_OSS_VERSION         ((3<<16)|(8<<8)|(1<<4)|(0))	/* 3.8.1a */
+ 
+diff --git a/include/sound/driver.h b/include/sound/driver.h
+--- a/include/sound/driver.h
++++ b/include/sound/driver.h
+@@ -44,21 +44,4 @@
+ 
+ #include <linux/module.h>
+ 
+-/*
+- *  ==========================================================================
+- */
+-
+-#ifdef CONFIG_SND_DEBUG_MEMORY
+-#include <linux/slab.h>
+-#include <linux/vmalloc.h>
+-void *snd_wrapper_kmalloc(size_t, gfp_t);
+-#undef kmalloc
+-void snd_wrapper_kfree(const void *);
+-#undef kfree
+-void *snd_wrapper_vmalloc(size_t);
+-#undef vmalloc
+-void snd_wrapper_vfree(void *);
+-#undef vfree
+-#endif
+-
+ #endif /* __SOUND_DRIVER_H */
+diff --git a/include/sound/emu10k1.h b/include/sound/emu10k1.h
+--- a/include/sound/emu10k1.h
++++ b/include/sound/emu10k1.h
+@@ -48,7 +48,8 @@
+ 
+ /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */
+ #define EMU10K1_DMA_MASK	0x7fffffffUL	/* 31bit */
+-#define AUDIGY_DMA_MASK		0xffffffffUL	/* 32bit */
++#define AUDIGY_DMA_MASK		0x7fffffffUL	/* 31bit FIXME - 32 should work? */
++						/* See ALSA bug #1276 - rlrevell */
+ 
+ #define TMEMSIZE        256*1024
+ #define TMEMSIZEREG     4
+diff --git a/include/sound/minors.h b/include/sound/minors.h
+--- a/include/sound/minors.h
++++ b/include/sound/minors.h
+@@ -27,8 +27,9 @@
+ #define SNDRV_MINOR(card, dev)		(((card) << 5) | (dev))
+ 
+ #define SNDRV_MINOR_CONTROL		0	/* 0 - 0 */
+-#define SNDRV_MINOR_SEQUENCER		1
+-#define SNDRV_MINOR_TIMER		(1+32)
++#define SNDRV_MINOR_GLOBAL		1	/* 1 */
++#define SNDRV_MINOR_SEQUENCER		(SNDRV_MINOR_GLOBAL + 0 * 32)
++#define SNDRV_MINOR_TIMER		(SNDRV_MINOR_GLOBAL + 1 * 32)
+ #define SNDRV_MINOR_HWDEP		4	/* 4 - 7 */
+ #define SNDRV_MINOR_HWDEPS		4
+ #define SNDRV_MINOR_RAWMIDI		8	/* 8 - 15 */
+@@ -39,12 +40,9 @@
+ 
+ #define SNDRV_DEVICE_TYPE_CONTROL	SNDRV_MINOR_CONTROL
+ #define SNDRV_DEVICE_TYPE_HWDEP		SNDRV_MINOR_HWDEP
+-#define SNDRV_DEVICE_TYPE_MIXER		SNDRV_MINOR_MIXER
+ #define SNDRV_DEVICE_TYPE_RAWMIDI	SNDRV_MINOR_RAWMIDI
+ #define SNDRV_DEVICE_TYPE_PCM_PLAYBACK	SNDRV_MINOR_PCM_PLAYBACK
+-#define SNDRV_DEVICE_TYPE_PCM_PLOOP	SNDRV_MINOR_PCM_PLOOP
+ #define SNDRV_DEVICE_TYPE_PCM_CAPTURE	SNDRV_MINOR_PCM_CAPTURE
+-#define SNDRV_DEVICE_TYPE_PCM_CLOOP	SNDRV_MINOR_PCM_CLOOP
+ #define SNDRV_DEVICE_TYPE_SEQUENCER	SNDRV_MINOR_SEQUENCER
+ #define SNDRV_DEVICE_TYPE_TIMER		SNDRV_MINOR_TIMER
+ 
+diff --git a/include/sound/pcm.h b/include/sound/pcm.h
+--- a/include/sound/pcm.h
++++ b/include/sound/pcm.h
+@@ -281,7 +281,7 @@ typedef struct {
+ struct _snd_pcm_runtime {
+ 	/* -- Status -- */
+ 	snd_pcm_substream_t *trigger_master;
+-	snd_timestamp_t trigger_tstamp;	/* trigger timestamp */
++	struct timespec trigger_tstamp;	/* trigger timestamp */
+ 	int overrange;
+ 	snd_pcm_uframes_t avail_max;
+ 	snd_pcm_uframes_t hw_ptr_base;	/* Position at buffer restart */
+@@ -306,7 +306,6 @@ struct _snd_pcm_runtime {
+ 	unsigned int rate_den;
+ 
+ 	/* -- SW params -- */
+-	int tstamp_timespec;		/* use timeval (0) or timespec (1) */
+ 	snd_pcm_tstamp_t tstamp_mode;	/* mmap timestamp is updated */
+   	unsigned int period_step;
+ 	unsigned int sleep_min;		/* min ticks to sleep */
+diff --git a/include/sound/timer.h b/include/sound/timer.h
+--- a/include/sound/timer.h
++++ b/include/sound/timer.h
+@@ -88,6 +88,7 @@ struct _snd_timer_hardware {
+ struct _snd_timer {
+ 	snd_timer_class_t tmr_class;
+ 	snd_card_t *card;
++	struct module *module;
+ 	int tmr_device;
+ 	int tmr_subdevice;
+ 	char id[64];
+diff --git a/include/sound/version.h b/include/sound/version.h
+--- a/include/sound/version.h
++++ b/include/sound/version.h
+@@ -1,3 +1,3 @@
+ /* include/version.h.  Generated by configure.  */
+-#define CONFIG_SND_VERSION "1.0.10rc1"
+-#define CONFIG_SND_DATE " (Mon Sep 12 08:13:09 2005 UTC)"
++#define CONFIG_SND_VERSION "1.0.10rc3"
++#define CONFIG_SND_DATE " (Mon Nov 07 13:30:21 2005 UTC)"
+diff --git a/sound/Kconfig b/sound/Kconfig
+--- a/sound/Kconfig
++++ b/sound/Kconfig
+@@ -48,6 +48,14 @@ config SND
+ 
+ 	  For more information, see <http://www.alsa-project.org/>
+ 
++config SND_AC97_CODEC
++	tristate
++	select SND_PCM
++	select SND_AC97_BUS
++
++config SND_AC97_BUS
++	tristate
++
+ source "sound/core/Kconfig"
+ 
+ source "sound/drivers/Kconfig"
+diff --git a/sound/core/Kconfig b/sound/core/Kconfig
+--- a/sound/core/Kconfig
++++ b/sound/core/Kconfig
+@@ -127,12 +127,6 @@ config SND_DEBUG
+ 	help
+ 	  Say Y here to enable ALSA debug code.
+ 
+-config SND_DEBUG_MEMORY
+-	bool "Debug memory"
+-	depends on SND_DEBUG
+-	help
+-	  Say Y here to enable debugging of memory allocations.
+-
+ config SND_DEBUG_DETECT
+ 	bool "Debug detection"
+ 	depends on SND_DEBUG
+diff --git a/sound/core/Makefile b/sound/core/Makefile
+--- a/sound/core/Makefile
++++ b/sound/core/Makefile
+@@ -3,8 +3,7 @@
+ # Copyright (c) 1999,2001 by Jaroslav Kysela <perex at suse.cz>
+ #
+ 
+-snd-objs     := sound.o init.o memory.o info.o control.o misc.o \
+-                device.o wrappers.o
++snd-objs     := sound.o init.o memory.o info.o control.o misc.o device.o
+ ifeq ($(CONFIG_ISA_DMA_API),y)
+ snd-objs     += isadma.o
+ endif
+diff --git a/sound/core/control.c b/sound/core/control.c
+--- a/sound/core/control.c
++++ b/sound/core/control.c
+@@ -144,7 +144,7 @@ void snd_ctl_notify(snd_card_t *card, un
+ 	snd_ctl_file_t *ctl;
+ 	snd_kctl_event_t *ev;
+ 	
+-	snd_runtime_check(card != NULL && id != NULL, return);
++	snd_assert(card != NULL && id != NULL, return);
+ 	read_lock(&card->ctl_files_rwlock);
+ #if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE)
+ 	card->mixer_oss_change_count++;
+@@ -193,8 +193,8 @@ snd_kcontrol_t *snd_ctl_new(snd_kcontrol
+ 	snd_kcontrol_t *kctl;
+ 	unsigned int idx;
+ 	
+-	snd_runtime_check(control != NULL, return NULL);
+-	snd_runtime_check(control->count > 0, return NULL);
++	snd_assert(control != NULL, return NULL);
++	snd_assert(control->count > 0, return NULL);
+ 	kctl = kzalloc(sizeof(*kctl) + sizeof(snd_kcontrol_volatile_t) * control->count, GFP_KERNEL);
+ 	if (kctl == NULL)
+ 		return NULL;
+@@ -220,7 +220,7 @@ snd_kcontrol_t *snd_ctl_new1(const snd_k
+ 	snd_kcontrol_t kctl;
+ 	unsigned int access;
+ 	
+-	snd_runtime_check(ncontrol != NULL, return NULL);
++	snd_assert(ncontrol != NULL, return NULL);
+ 	snd_assert(ncontrol->info != NULL, return NULL);
+ 	memset(&kctl, 0, sizeof(kctl));
+ 	kctl.id.iface = ncontrol->iface;
+@@ -309,7 +309,7 @@ int snd_ctl_add(snd_card_t * card, snd_k
+ 	snd_ctl_elem_id_t id;
+ 	unsigned int idx;
+ 
+-	snd_runtime_check(card != NULL && kcontrol != NULL, return -EINVAL);
++	snd_assert(card != NULL && kcontrol != NULL, return -EINVAL);
+ 	snd_assert(kcontrol->info != NULL, return -EINVAL);
+ 	id = kcontrol->id;
+ 	down_write(&card->controls_rwsem);
<<Diff was trimmed, longer than 597 lines>>



More information about the pld-cvs-commit mailing list