Skip to contentSkip to conversation

2.4.16 alsa 0.5.12 mixer ioctl problem

DISCUSSION Alex Riesen 3 participants 4 messages Nov 27, 2001 – Nov 28, 2001

lore
Share & tools
lore
#0 lore raw

Hi, all

just tried to compile the mentioned alsa drivers under 2.4.16. Mixer doesnt work, yes. It compiles, installs, loads. And any program trying to open mixer (through libasound) get EINVAL.

All is compiled with gcc-2.95.3,
single CPU, with APIC (is any sense to enable it on uniprocessors?).

Does anybody know what to do about it?

-alex

#1 lore raw

Hi!

This appears to be a problem with fs/proc/inode.c. Reverting to the version up to 2.4.15-pre6 will solve your problem.

regards
-- jochen

Quoted 6 lines · Alex Riesen

Hi, all

just tried to compile the mentioned alsa drivers under 2.4.16. Mixer doesnt work, yes. It compiles, installs, loads. And any program trying to open mixer (through libasound) get EINVAL.

Signature · 6 lines
  "I'd rather die before using Micro$oft Word"
    -- Donald E. Knuth
     (asked whether he'd reinvent TeX in the light of M$ Word)

  GnuGP public key for [email protected]:
      http://home.nexgo.de/jochen.eisinger/pubkey.asc (0x8AEB7AE3)
#2 lore raw

Thanks, your patch fixed the problem.
BTW, 2.5.[0,1-pre1] contain this 'broken' code:
Maybe it is silently fixed at some other play,
but just for everyones information.

2.5.1-pre1:
struct inode * proc_get_inode(struct super_block * sb, int ino,
struct proc_dir_entry * de)

{
	struct inode * inode;

	/*
	 * Increment the use count so the dir entry can't disappear.
	 */
	de_get(de);

#if 1
/* shouldn't ever happen */
if (de && de->deleted)
printk("proc_iget: using deleted entry %s, count=%d\n", de->name, atomic_read(&de->count));
#endif

	inode = iget(sb, ino);
	if (!inode)
		goto out_fail;

	inode->u.generic_ip = (void *) de;
	if (de) {
		if (de->mode) {
			inode->i_mode = de->mode;
			inode->i_uid = de->uid;
			inode->i_gid = de->gid;
		}
		if (de->size)
			inode->i_size = de->size;
		if (de->nlink)
			inode->i_nlink = de->nlink;
		if (de->owner)
			__MOD_INC_USE_COUNT(de->owner);
		if (de->proc_iops) <<<<<<<<
			inode->i_op = de->proc_iops; <<<<<<<<
		if (de->proc_fops) <<<<<<<<
			inode->i_fop = de->proc_fops; <<<<<<<<
-- this line looks like error, what has init_special_inode to do with
de->proc_fops?
		else if (S_ISBLK(de->mode)||S_ISCHR(de->mode)||S_ISFIFO(de->mode))
			init_special_inode(inode,de->mode,kdev_t_to_nr(de->rdev));
	}

out:

	return inode;

out_fail:

	de_put(de);
	goto out;
}
Quoted 25 lines

-----Original Message-----
From: Jochen Eisinger [mailto:[email protected]]
Sent: Tuesday, November 27, 2001 09:05
To: Alex Riesen
Cc: [email protected]
Subject: Re: 2.4.16 alsa 0.5.12 mixer ioctl problem

Hi!

This appears to be a problem with fs/proc/inode.c. Reverting to the version up to 2.4.15-pre6 will solve your problem.

regards
-- jochen

Quoted 6 lines · Alex Riesen

Hi, all

just tried to compile the mentioned alsa drivers under 2.4.16. Mixer doesnt work, yes. It compiles, installs, loads. And any program trying to open mixer (through libasound) get EINVAL.

#3 lore raw
In reply to Alex Riesen
Quoted 7 lines · Alex Riesen

Hi, all

just tried to compile the mentioned alsa drivers under 2.4.16. Mixer doesnt work, yes. It compiles, installs, loads. And any program trying to open mixer (through libasound) get EINVAL.

Quoted 6 lines

All is compiled with gcc-2.95.3,
single CPU, with APIC (is any sense to enable it on uniprocessors?).

Does anybody know what to do about it?

I recommend getting ALSA 0.9.0beta9. It works
well with 2.4.15 and 2.5.1-pre1, so it'll probably work with 2.4.16 too.

Helge Hafting