All of lore.kernel.org
 help / color / mirror / Atom feed
* CONFIG_SND_RTC and CONFIG_SND_RTCTIMER and CONFIG_RTC, oh my!
@ 2002-05-14  8:49 Clemens Ladisch
  2002-05-14 17:56 ` Takashi Iwai
  2002-05-17 11:21 ` Clemens Ladisch
  0 siblings, 2 replies; 4+ messages in thread
From: Clemens Ladisch @ 2002-05-14  8:49 UTC (permalink / raw)
  To: alsa-devel

I tried to use the RTC callback timer with my 2.4.12 kernel.
Patching the kernel went fine, but then ALSA wouldn't compile the
snd-rtctimer.o module, although configure said:
| checking for RTC callback support in kernel ... "yes"

A glance at alsa-kernel/core/Makefile shows that both CONFIG_RTC and
CONFIG_SND_RTCTIMER need to be defined:

	ifeq ($(subst m,y,$(CONFIG_RTC)),y)
	  obj-$(CONFIG_SND_RTCTIMER) += snd-timer.o
	  obj-$(CONFIG_SND_RTCTIMER) += snd-rtctimer.o
	endif

... but neither appears in alsa-driver/Makefile.conf, apparently
because configure thinks it should define CONFIG_SND_RTC instead:

alsa-driver/configure.in:
	...
	rtcsup="0"
	...
	  AC_MSG_RESULT("yes");rtcsup="m",
	  AC_MSG_RESULT("no");rtcsup="n",
	  AC_MSG_RESULT("unknown");rtcsup="n"
	...
	CONFIG_SND_RTC=$rtcsup
	AC_SUBST(CONFIG_SND_RTC)
	if test "$CONFIG_SND_RTC" = "1"; then
	  AC_DEFINE(CONFIG_SND_RTC)
	fi

Additionally, it's unclear whether the value of CONFIG_SND_RTC should
be 0/1 or n/m.


Sorry, no patch because I'm lacking the autoconf knowledge for this.
(I got it to compile (and run) by hacking the makefile, but I won't
submit _this_ change. :-)


Clemens

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-17 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-14  8:49 CONFIG_SND_RTC and CONFIG_SND_RTCTIMER and CONFIG_RTC, oh my! Clemens Ladisch
2002-05-14 17:56 ` Takashi Iwai
2002-05-17 11:21 ` Clemens Ladisch
2002-05-17 15:25   ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.