Skip to contentSkip to conversation

changes in the dspgateway

DISCUSSION Luís Vitório Cargnini 2 participants 2 messages Mar 14, 2008 – Mar 16, 2008

lore
Share & tools
lore
#0 lore raw

Dear fellows I want to make some changes or in dspctl or in dspgateway:
why?
in the dspgateway we have:

      umode_t         mode;
} dev_list[] = {
        {CTL_MINOR,  "dspctl",  S_IRUSR | S_IWUSR},
        {MEM_MINOR,  "dspmem",  S_IRUSR | S_IWUSR | S_IRGRP},
        {TWCH_MINOR, "dsptwch", S_IRUSR | S_IWUSR | S_IRGRP},
        {ERR_MINOR,  "dsperr",  S_IRUSR | S_IRGRP},

};

but the dspctl looks for :
/dev/dspctl/ctl
/dev/dspctl/mem
/dev/dspctl/twch
/dev/dspctl/err

So people who use udev, like always have problems with dspctl, because have to create the /dev/dspctl/* by hand, because the class directive of dspgateway creates it as entrances on /dev directly, so I could make this "little" change in the dspgateway and fix this, and nobody will have more problem with this again (I have to answer my last e-mail fo help I found the solution for my problem and was this).

If there is no objection I can make the changes test and send the patchs.

Signature · 9 lines
------------------------------------------------------------------------------
Thanks && Regards
M.Sc. B.Sc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
---------------------------------------------------------------------------------
#1 lore raw

From: ext_Luís_Vitório_Cargnini <[email protected]>
Subject: [Dspgateway-devel] changes in the dspgateway
Date: Fri, 14 Mar 2008 13:22:12 -0300

Quoted 11 lines

Dear fellows I want to make some changes or in dspctl or in dspgateway:
why?
in the dspgateway we have:

      umode_t         mode;
} dev_list[] = {
        {CTL_MINOR,  "dspctl",  S_IRUSR | S_IWUSR},
        {MEM_MINOR,  "dspmem",  S_IRUSR | S_IWUSR | S_IRGRP},
        {TWCH_MINOR, "dsptwch", S_IRUSR | S_IWUSR | S_IRGRP},
        {ERR_MINOR,  "dsperr",  S_IRUSR | S_IRGRP},

};

Quoted 8 lines

but the dspctl looks for :
/dev/dspctl/ctl
/dev/dspctl/mem
/dev/dspctl/twch
/dev/dspctl/err

So people who use udev, like always have problems with dspctl, because have to create the /dev/dspctl/* by hand, because the class directive

Not sure that the following is enough, though...
Setting the following in "udev.rules" seems to be required under udev. ..
KERNEL=="dspctl", NAME="dspctl/ctl"
KERNEL=="dspmem", NAME="dspctl/mem",MODE="0640",GROUP="kmem" KERNEL=="dsptwch", NAME="dspctl/twch",MODE="0640" KERNEL=="dspterr", NAME="dspctl/err",MODE="0440" KERNEL=="dsptask[0-9]*", MODE="0666"

Quoted 25 lines

of dspgateway creates it as entrances on /dev directly, so I could make this "little" change in the dspgateway and fix this, and nobody will have more problem with this again (I have to answer my last e-mail fo help I found the solution for my problem and was this).

If there is no objection I can make the changes test and send the patchs.

Signature · 17 lines
------------------------------------------------------------------------------
Thanks && Regards
M.Sc. B.Sc. Luís Vitório Cargnini
IEEE Member
Electrical Engineer Faculty @ PUCRS
Ipiranga Avenue, 6681 – Building 30
P.O. Box: 90619-900 – Porto Alegre/RS
Phone: +55 51 3320 3500 extension: 7696
---------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Dspgateway-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspgateway-devel