From alsa-devel-owner@alsa.jcu.cz  Thu Jan  7 09:43:00 1999
Received: from slinky.scrye.com (IDENT:tkil@slinky.scrye.com [216.17.141.11])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id JAA29482
	for <alsa-devel@alsa.jcu.cz>; Thu, 7 Jan 1999 09:42:07 +0100
Received: (from tkil@localhost)
	by slinky.scrye.com (8.8.7/8.8.7) id BAA04208;
	Thu, 7 Jan 1999 01:41:57 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <13972.29525.222392.93532@slinky.scrye.com>
Date: Thu, 7 Jan 1999 01:41:57 -0700 (MST)
To: alsa-devel@alsa.jcu.cz
Subject: sequencer requires pnp? (alsa-driver-0.3.0-pre2)
From: Tkil <tkil@scrye.com>
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list


I tried building the drivers with "--with-sequencer=yes" and it seemed 
to ignore it.  Consider the underlined lines in this ./configure
session:

| [tkil@slinky alsa-driver-0.3.0-pre2]$ ./configure --with-sequencer=yes
                                                    ^^^^^^^^^^^^^^^^^^^^
| creating cache ./config.cache
| checking for gcc... gcc
| checking whether the C compiler (gcc  ) works... yes
| checking whether the C compiler (gcc  ) is a cross-compiler... no
| checking whether we are using GNU C... yes
| checking whether gcc accepts -g... yes
| checking for ranlib... ranlib
| checking for a BSD compatible install... /usr/bin/install -c
| checking how to run the C preprocessor... gcc -E
| checking for ANSI C header files... yes
| checking for linux/fs.h... yes
| checking for working const... yes
| checking for inline... inline
| checking whether time.h and sys/time.h may both be included... yes
| checking whether gcc needs -traditional... no
| checking for default major number for the alsa driver... 14
| checking for directory with kernel source... /usr/src/linux
| checking for kernel version... 2.2.0-pre5-ac1
| checking for kernel module symbol versions... no
| checking for PCI support in kernel... yes
| checking for directory to store kernel modules... /lib/modules/2.2.0-pre5-ac1/misc
| checking for debug level... none
| checking for processor type... unknown
| checking for SMP... no
| checking for ISA PnP driver... no
| checking for driver version... 0.3.0-pre2
| checking for sequencer support... no
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| updating cache ./config.cache
| creating ./config.status
| creating Makefile.conf
| creating snddevices
| creating utils/alsa-driver.spec
| creating include/config.h
| include/config.h is unchanged
| [tkil@slinky alsa-driver-0.3.0-pre2]$ make

Looking through the configure script, I see:

| echo $ac_n "checking for sequencer support""... $ac_c" 1>&6
| echo "configure:1585: checking for sequencer support" >&5
| # Check whether --with-sequencer or --without-sequencer was given.
| if test "${with_sequencer+set}" = set; then
|   withval="$with_sequencer"
|   sequencer="$withval"
| else
|   sequencer="no"
| fi
| 
| SNDCFG_SEQUENCER="0"
| if test "$pnp" = "yes"; then
|   SNDCFG_SEQUENCER="1"
| fi
| 
| if test "$SNDCFG_SEQUENCER" = "1"; then
|   cat >> confdefs.h <<\EOF
| #define SNDCFG_SEQUENCER 1
| EOF
| 
|   echo "$ac_t""yes" 1>&6
| else
|   echo "$ac_t""no" 1>&6
| fi

... which seems to tell me that SNDCFG_SEQUENCER will default to "off" 
unless we are also including PNP.  I use isapnp-tools very happily, so 
I would prefer to not deal with the alsa ISA PnP support quite yet.
(If I'm simply misreading this, please set me straight!)

Thanks,
Tony

p.s. Minor catches by EGCS:

     Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.57/specs
     gcc version egcs-2.91.57 19980901 (egcs-1.1 release)

| gcc -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I/usr/src/linux/include -I../../include -c -o es1688.o es1688.c
| es1688.c: In function `snd_es1688_probe':
| es1688.c:142: warning: suggest explicit braces to avoid ambiguous `else'
...
| gcc -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I/usr/src/linux/include -I../../include -c -o ess_solo1.o ess_solo1.c
| ess_solo1.c:131: warning: `snd_solo_read_cmd' defined but not used
...
| gcc -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I/usr/src/linux/include -I../include -c -o sonicvibes.o sonicvibes.c
| sonicvibes.c: In function `snd_sonic_probe':
| sonicvibes.c:245: warning: unsigned int format, long unsigned int arg (arg 5)
...
| gcc -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I/usr/src/linux/include -I../include -c -o audiopci.o audiopci.c
| audiopci.c: In function `snd_audiopci_probe':
| audiopci.c:200: warning: unsigned int format, long unsigned int arg (arg 5)
...
| gcc -O2  -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I/usr/src/linux/include -I../include -c -o sb.o sb.c
| sb.c: In function `snd_detect_sb':
| sb.c:104: warning: suggest explicit braces to avoid ambiguous `else'

