* 2.5.5-pre1 kernel - compile as modules?
@ 2002-02-14 15:08 Duncan Sands
2002-02-14 17:47 ` Curtis Veit
0 siblings, 1 reply; 8+ messages in thread
From: Duncan Sands @ 2002-02-14 15:08 UTC (permalink / raw)
To: alsa-devel
I just gave the 2.5.5-pre1 kernel a whirl. Just to be different,
I compiled all sound support into the kernel rather than as
modules. On startup I get:
Feb 14 15:43:55 baldrick kernel: Advanced Linux Sound Architecture Driver Version 0.9.0beta10.
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-0, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-1, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-2, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-3, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-4, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-5, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-6, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-7, errno = 2
Feb 14 15:43:55 baldrick last message repeated 7 times
Feb 14 15:43:55 baldrick kernel: PCI: Found IRQ 5 for device 00:0a.0
Feb 14 15:43:55 baldrick kernel: ALSA device list:
Feb 14 15:43:55 baldrick kernel: #0: Sound Fusion CS46xx at 0xda800000/0xda000000, irq 5
And then later there are all sorts of problems, such as
cat /proc/asound/cards
claims there is no such device.
Must sound support be compiled as modules?
Thanks,
Duncan.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.5.5-pre1 kernel - compile as modules?
2002-02-14 15:08 2.5.5-pre1 kernel - compile as modules? Duncan Sands
@ 2002-02-14 17:47 ` Curtis Veit
2002-02-15 8:25 ` Duncan Sands
0 siblings, 1 reply; 8+ messages in thread
From: Curtis Veit @ 2002-02-14 17:47 UTC (permalink / raw)
To: Duncan Sands, alsa-devel
On Thu, Feb 14, 2002 at 04:08:19PM +0100, Duncan Sands wrote:
> I just gave the 2.5.5-pre1 kernel a whirl. Just to be different,
> I compiled all sound support into the kernel rather than as
> modules. On startup I get:
>
> Feb 14 15:43:55 baldrick kernel: Advanced Linux Sound Architecture Driver Version 0.9.0beta10.
> Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-0, errno = 2
> Feb 14 15:43:55 baldrick last message repeated 7 times
> Feb 14 15:43:55 baldrick kernel: kmod: failed to exec /sbin/modprobe -s -k snd-card-1, errno = 2
I cut a bit out here...
>
> And then later there are all sorts of problems, such as
>
> cat /proc/asound/cards
>
> claims there is no such device.
>
> Must sound support be compiled as modules?
>
> Thanks,
>
> Duncan.
>
I have been backporting the 2.5 patch to 2.4.18-preX and compiling
drivers into the kernel only for hardware which I have installed on
the machine.
So far this has worked (at least partially - see below) with
yamaha YMF-744
sound blaster live
sound blaster 1371
I also have compiled for the Delta 1010 (ICE) but don't have all
the utilities so I don't know if it is really working (might
check it out a little more this weekend)
I've mostly used the mixer (aumix) and PCM devices
(playing MP3 files) with success.
Because this seemed to work I did not even look to see if there
were any error messages generated. The only thing I did before
trying to use the devices was to look in /proc.
If anyone has suggestions for how to easily test more
devices quickly feel free to post some instructions and
I'll post the results here. (I have some other HW I could
test as well. gravis and others)
Actually if anyone would care to help in putting together
an automated test suite... I could justify spending time
to work on it.
Regards,
Curtis
--
Curtis Veit email: curtisv@lineo.com
Lineo Inc. Where Open Meets Smart
390 South 400 West phone: 801.426.5001
Lindon, Utah, USA 84042 fax: 801.852.8071
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.5.5-pre1 kernel - compile as modules?
2002-02-14 17:47 ` Curtis Veit
@ 2002-02-15 8:25 ` Duncan Sands
2002-02-15 8:30 ` Guenther Sohler
2002-02-15 12:14 ` Jaroslav Kysela
0 siblings, 2 replies; 8+ messages in thread
From: Duncan Sands @ 2002-02-15 8:25 UTC (permalink / raw)
To: curtisv, alsa-devel
Actually, the problem is deeper: even if I compile everything as
modules, I still get "no such device" when trying to read from
/proc/asound entries. I will look into this further myself.
Duncan.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.5.5-pre1 kernel - compile as modules?
2002-02-15 8:25 ` Duncan Sands
@ 2002-02-15 8:30 ` Guenther Sohler
2002-02-15 8:34 ` Duncan Sands
2002-02-15 12:14 ` Jaroslav Kysela
1 sibling, 1 reply; 8+ messages in thread
From: Guenther Sohler @ 2002-02-15 8:30 UTC (permalink / raw)
To: Duncan Sands; +Cc: curtisv, alsa-devel
did you insmod the snd.o ???
On 15-Feb-02 Duncan Sands wrote:
> Actually, the problem is deeper: even if I compile everything as
> modules, I still get "no such device" when trying to read from
> /proc/asound entries. I will look into this further myself.
>
> Duncan.
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
Guenther Sohler
NewLogic Technologies AG
Millennium Park 6
A-6890 Lustenau
Phone: +43-5577-62000-507
E-Mail: guenther.sohler@newlogic.com Fax: +43-5577-62000-988
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.5.5-pre1 kernel - compile as modules?
2002-02-15 8:30 ` Guenther Sohler
@ 2002-02-15 8:34 ` Duncan Sands
2002-02-15 15:54 ` James Courtier-Dutton
0 siblings, 1 reply; 8+ messages in thread
From: Duncan Sands @ 2002-02-15 8:34 UTC (permalink / raw)
To: Guenther Sohler; +Cc: curtisv, alsa-devel
On Friday 15 February 2002 9:30 am, Guenther Sohler wrote:
> did you insmod the snd.o ???
Yes. I have /proc/asound with all entries. They just aren't
readable. The soundcard is detected when I modprobe the
card module (nonetheless /proc/asound/cards is not readable:
no such device). I have been using the CVS and other versions
of alsa with no problems, so this is presumably something to do
with the kernel sound patch.
Thanks for thinking about this,
Duncan.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.5.5-pre1 kernel - compile as modules?
2002-02-15 8:25 ` Duncan Sands
2002-02-15 8:30 ` Guenther Sohler
@ 2002-02-15 12:14 ` Jaroslav Kysela
2002-02-15 13:06 ` Duncan Sands
1 sibling, 1 reply; 8+ messages in thread
From: Jaroslav Kysela @ 2002-02-15 12:14 UTC (permalink / raw)
To: Duncan Sands; +Cc: curtisv@lineo.com, alsa-devel@alsa-project.org
[-- Attachment #1: Type: TEXT/PLAIN, Size: 460 bytes --]
On Fri, 15 Feb 2002, Duncan Sands wrote:
> Actually, the problem is deeper: even if I compile everything as
> modules, I still get "no such device" when trying to read from
> /proc/asound entries. I will look into this further myself.
It's problem with recent 2.5 kernel. Try the attached patch.
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com
[-- Attachment #2: Type: TEXT/plain, Size: 1644 bytes --]
Index: info.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/info.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- info.c 14 Feb 2002 17:40:30 -0000 1.7
+++ info.c 15 Feb 2002 12:10:26 -0000 1.8
@@ -278,7 +278,7 @@
int mode, err;
down(&info_mutex);
- p = (struct proc_dir_entry *) inode->u.generic_ip;
+ p = PDE(inode);
entry = p == NULL ? NULL : (snd_info_entry_t *)p->data;
if (entry == NULL) {
up(&info_mutex);
@@ -541,7 +541,7 @@
static int snd_info_card_readlink(struct dentry *dentry,
char *buffer, int buflen)
{
- char *s = ((struct proc_dir_entry *) dentry->d_inode->u.generic_ip)->data;
+ char *s = PDE(dentry->d_inode)->data;
#ifndef LINUX_2_2
return vfs_readlink(dentry, buffer, buflen, s);
#else
@@ -562,7 +562,7 @@
static int snd_info_card_followlink(struct dentry *dentry,
struct nameidata *nd)
{
- char *s = ((struct proc_dir_entry *) dentry->d_inode->u.generic_ip)->data;
+ char *s = PDE(dentry->d_inode)->data;
return vfs_follow_link(nd, s);
}
#else
@@ -570,7 +570,7 @@
struct dentry *base,
unsigned int follow)
{
- char *s = ((struct proc_dir_entry *) dentry->d_inode->u.generic_ip)->data;
+ char *s = PDE(dentry->d_inode)->data;
return lookup_dentry(s, base, follow);
}
#endif
@@ -845,7 +845,7 @@
return;
}
MOD_INC_USE_COUNT;
- de = (struct proc_dir_entry *) inode->u.generic_ip;
+ de = PDE(inode);
if (de == NULL)
return;
entry = (snd_info_entry_t *) de->data;
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 2.5.5-pre1 kernel - compile as modules?
2002-02-15 12:14 ` Jaroslav Kysela
@ 2002-02-15 13:06 ` Duncan Sands
0 siblings, 0 replies; 8+ messages in thread
From: Duncan Sands @ 2002-02-15 13:06 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: curtisv@lineo.com, alsa-devel@alsa-project.org
On Friday 15 February 2002 1:14 pm, Jaroslav Kysela wrote:
> On Fri, 15 Feb 2002, Duncan Sands wrote:
> > Actually, the problem is deeper: even if I compile everything as
> > modules, I still get "no such device" when trying to read from
> > /proc/asound entries. I will look into this further myself.
>
> It's problem with recent 2.5 kernel. Try the attached patch.
Yes, that works. Thanks!
Duncan.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: 2.5.5-pre1 kernel - compile as modules?
2002-02-15 8:34 ` Duncan Sands
@ 2002-02-15 15:54 ` James Courtier-Dutton
0 siblings, 0 replies; 8+ messages in thread
From: James Courtier-Dutton @ 2002-02-15 15:54 UTC (permalink / raw)
To: Duncan Sands, Guenther Sohler; +Cc: curtisv, alsa-devel
Could this be a devfs (device filesystem) problem ?
With devfs, devices appear as if by magic in the /dev directory.
The old system had all devices having entries in /dev whether present or
not.
Cheers
James
> -----Original Message-----
> From: alsa-devel-admin@lists.sourceforge.net
> [mailto:alsa-devel-admin@lists.sourceforge.net]On Behalf Of Duncan Sands
> Sent: 15 February 2002 08:34
> To: Guenther Sohler
> Cc: curtisv@lineo.com; alsa-devel@alsa-project.org
> Subject: Re: [Alsa-devel] 2.5.5-pre1 kernel - compile as modules?
>
>
> On Friday 15 February 2002 9:30 am, Guenther Sohler wrote:
> > did you insmod the snd.o ???
>
> Yes. I have /proc/asound with all entries. They just aren't
> readable. The soundcard is detected when I modprobe the
> card module (nonetheless /proc/asound/cards is not readable:
> no such device). I have been using the CVS and other versions
> of alsa with no problems, so this is presumably something to do
> with the kernel sound patch.
>
> Thanks for thinking about this,
>
> Duncan.
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
_______________________________________________
Alsa-devel mailing list
Alsa-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-02-15 15:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-14 15:08 2.5.5-pre1 kernel - compile as modules? Duncan Sands
2002-02-14 17:47 ` Curtis Veit
2002-02-15 8:25 ` Duncan Sands
2002-02-15 8:30 ` Guenther Sohler
2002-02-15 8:34 ` Duncan Sands
2002-02-15 15:54 ` James Courtier-Dutton
2002-02-15 12:14 ` Jaroslav Kysela
2002-02-15 13:06 ` Duncan Sands
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.