Skip to contentSkip to conversation

alsa cvs, redhat9, kernel 2-4-20-8

Alsa-user Takashi Iwai 3 participants 4 messages Apr 7, 2003 – Apr 9, 2003 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

At Sat, 5 Apr 2003 12:00:28 +0200,

Quoted 16 lines · Matthias Saou
Quoted 7 lines · Jeremy Sanders

Maybe [email protected] is the one to ask. He's the one who built the freshrpm package that works with the redhat 9 kernel. Maybe he can shed some light on what he had to do.

Matthias,

Do you have any ideas about this?

Yes I have :-)
I didn't think of it myself though, someone had suggested me this solution a while back for the latest Rawhide kernels. Take a look at my spec file if you like: http://freshrpms.net/packages/builds/index.html?build=alsa-driver

Quoted 7 lines

The part that "fixes" the schedule_work problem is:

# Temporary Rawhide kernel workaround - Disable ALSA workqueue wrapper touch include/linux/workqueue.h

I don't really know the implications of doing this, but I'm open to any suggestions or better ways of getting the kernel modules to work.

the current alsa code checks the existence of __WORK_INITIALIZER macro. if it's defined, no wrapper function is used. in rh's include/linux/workqueue.h, is this macro defined?

btw, alsa-devel is the suitable place for such a problem. i added a cc.

ciao,

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

#3 lore raw
Quoted 3 lines · Takashi Iwai

the current alsa code checks the existence of __WORK_INITIALIZER macro. if it's defined, no wrapper function is used. in rh's include/linux/workqueue.h, is this macro defined?

Yes, it is... from /usr/src/linux-2.4.20-x/include/linux/workqueue.h:

#define __WORK_INITIALIZER(n, f, d) {                           \
        .entry  = { &(n).entry, &(n).entry },                   \
        .func = (f),                                            \
        .data = (d) }

Matthias

Signature · 10 lines
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Red Hat Linux release 8.0.9x (Phoebe) running Linux kernel 2.4.20-2.54
Load : 0.61 0.29 0.18, AC on-line, battery charging: 100% (5:37)


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
#4 lore raw

At Mon, 7 Apr 2003 12:27:53 +0200,

Quoted 7 lines · Matthias Saou
Quoted 3 lines · Takashi Iwai

the current alsa code checks the existence of __WORK_INITIALIZER macro. if it's defined, no wrapper function is used. in rh's include/linux/workqueue.h, is this macro defined?

Quoted 6 lines

Yes, it is... from /usr/src/linux-2.4.20-x/include/linux/workqueue.h:

#define __WORK_INITIALIZER(n, f, d) {                           \
        .entry  = { &(n).entry, &(n).entry },                   \
        .func = (f),                                            \
        .data = (d) }

hmm, then it should be ok. the configure and make should work without any patches.

did anyone build successfully with RH9 and RH's kernel?

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

#5 lore raw
In reply to Takashi Iwai
Quoted 22 lines · Takashi Iwai

At Sat, 5 Apr 2003 12:00:28 +0200,

Quoted 20 lines · Matthias Saou
Quoted 7 lines · Jeremy Sanders

Maybe [email protected] is the one to ask. He's the one who built the freshrpm package that works with the redhat 9 kernel. Maybe he can shed some light on what he had to do.

Matthias,

Do you have any ideas about this?

Yes I have :-)
I didn't think of it myself though, someone had suggested me this solution a while back for the latest Rawhide kernels. Take a look at my spec file if you like: http://freshrpms.net/packages/builds/index.html?build=alsa-driver

The part that "fixes" the schedule_work problem is:

# Temporary Rawhide kernel workaround - Disable ALSA workqueue wrapper touch include/linux/workqueue.h

This trick worked for me like a treat!

--[Lance]

Signature · 11 lines
  Carolina Spirit Quest:  http://www.carolinaspiritquest.org/
  Celebrate The Circle: http://www.angelfire.com/nc/celebratethecircle/
  My LiveJournal: http://www.livejournal.com/users/labrown/



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/