[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:13670] Re: gom (Re: Re: volume package is GPL2?)



ä½é‡Žï¼ æµœæ¾ã§ã™ã€‚

In <20010212095631F.kohda@xxxxxxxxxxxxxxxxxxxx>,
  on "Mon, 12 Feb 2001 09:55:34 +0900',
   with "[debian-devel:13664] Re: gom (Re:  Re: volume package is GPL2?)",
 Atsuhito Kohda <kohda@xxxxxxxxxxxxxxxxxxxx> ã•ã‚“ wrote:

> civic:~$ dpkg -L kernel-image-2.2.18pre21 | grep sound
> /lib/modules/2.2.18pre21/misc/sound.o
> /lib/modules/2.2.18pre21/misc/soundcore.o
> 
> ã¨ãªã‚‹ã®ã§ soundcore.o ãŒã‚ã‚‹ã®ã¯å•é¡Œãªã„ã¨æ€ã£ã¦ã‚‹
> ã®ã§ã™ãŒ(snd.o ã¯ã‚ã‚Šã¾ã›ã‚“)。念ã®ç‚º soundcore.o ã‚’
> 移動ã—ã¦ãŠã„ã¦ã¿ã‚‹ã¨
> 
> civic:/home/kohda# depmod -a
> depmod: *** Unresolved symbols in /lib/modules/2.2.18pre21/misc/sound.o
> 
> ã«ãªã‚Šã¾ã™ã€‚

ã”ã‚ã‚“ãªã•ã„。勘é•ã„ã§ã™ã€‚ç§ã®å ´åˆ

CONFIG_SOUND=y

ã—ã¦ã‚‹ã®ã§ sound_core.o 相当ã®ã‚³ãƒ¼ãƒ‰ã¯ã‚«ãƒ¼ãƒãƒ«ã«çµ„ã¿è¾¼ã¾ã‚Œã¦ã„ã¦ã€
モジュールã¨ã—ã¦ã¯å­˜åœ¨ã—ãªã„ã®ã§ã—ãŸã€‚

> > > > 手元ã®æ©Ÿæ¢°ã§ã¯ sb ドライãƒãƒ¼ä½¿ã£ã¦ã‚‹ã®ã§ /etc/modutils/gom ã‚’
> > > > 
> > > > #post-install sound /etc/init.d/gom start >/dev/null 2>&1
> > > > post-install sb /etc/init.d/gom start >/dev/null 2>&1
> > 
> > 「起動後 modprobe -a cs4232ã€ã—ãŸã‚‰ä¸Šè¨˜ã® post-install ãŒ
> > 効ãã¨æ€ã†ã®ã§ã™ãŒã€é•ã„ã¾ã™ ?
> 
> ã¾ã ç¢ºèªã—ã¦ã¾ã›ã‚“(ã¾ãŸã‚„ã£ã¦ãŠãã¾ã™)。ã“ã‚Œã¯æ‰‹å‹•ã§ 
> modprobe -a cs4232 ã—ãŸã¨ãã ã‘ã«åŠ¹ãã‚‚ã®ã§ã—ょã†ã‹ï¼Ÿ

ä»–ã«ã©ã†ã„ã†æ–¹æ³•ãŒã‚ã‚‹ã®ã‹ã‚ˆãã‚ã‹ã‚Šã¾ã›ã‚“ãŒã€ã¨ã‚Šã‚ãˆãš
ç§ã®ç’°å¢ƒã§ã¯ /etc/gom 以下をデフォルトã¨ç•°ãªã‚‹ã‚ˆã†ã«è¨­å®šã—ã¦
 modprobe -a sb ã™ã‚‹ã¨ã€è¨­å®šã—ãŸçµæžœãŒå映ã•ã‚Œã¦ã„ã¾ã™ã€‚

確èªã§ã™ãŒ /etc/init.d/gom start ã—ãŸæ™‚ã«ã¯ã¡ã‚ƒã‚“ã¨
Gom initializing audio mixer(s)...done.
ã¨è¡¨ç¤ºã•ã‚Œã¦ã„ã¾ã™ã‚ˆã­ ?

 /etc/gom/mixer.default ãŒã†ã¾ã設定ã§ãã¦ã„ãªã„ã¨
エラーã«ãªã‚‹ã®ã§æ³¨æ„ã—ã¦ãã ã•ã„。

> alias char-major-14     cs4232 
> post-install cs4232 /sbin/modprobe "-k" "adlib_card" 
> options cs4232 io=0x220 irq=5 dma=1 dma2=3 
> options adlib_card io=0x388 
> 
> ã“ã‚“ãªã“ã¨ã‚’やるよã†ã«ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã«ã‚ã£ã¦è¨­å®šã—ã¦ã¾ã™ãŒ
> ã“れ㯠auto ã§ãƒ­ãƒ¼ãƒ‰ã—ãŸã¨ãã«ã‚‚効ã„ã¦ã‚‹ã®ã ã¨æ€ã£ã¦ã‚‹ã®
> ã§ã™ãŒã€‚(ãã‚Œã¨ã‚‚ã“ã‚Œã¨é‡è¤‡ã—ã¦ã‚‹ã®ãŒè‰¯ããªã„?)

ã“ã‚Œã¯ã©ã“ã«è¨­å®šã—ã¦ã‚ã‚‹ã®ã§ã™ã‹ ? ãã‚Œã¨ãã®ã€Œãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆã€
ã£ã¦ã®ã¯ä½•ã‚’見ã¦ã¾ã™ ?

ç§ã®å ´åˆã€

> options cs4232 io=0x220 irq=5 dma=1 dma2=3 
> options adlib_card io=0x388 

ã«ç›¸å½“ã™ã‚‹ã‚‚ã®ã¯ /etc/modules ã«

#auto
sb irq=5 io=0x220 dma=1 dma16=-1
opl3 io=0x388

ã¨ã—ã¦è¨­å®šã—ã¦ã‚ã‚Šã¾ã™ã€‚

 /etc/modules.conf ã«ã¯ /etc/modutils/gom ã«è¨˜è¼‰ã—ãŸ

# This initializes sound mixers with gom anytime
# the "sound.o" module is loaded
#post-install sound /etc/init.d/gom start >/dev/null 2>&1
post-install sb /etc/init.d/gom start >/dev/null 2>&1

ã¯ã‚ã‚Šã¾ã™ãŒã€ã“れ以外㫠sound 関係ã®è¨­å®šã¯ã‚ã‚Šã¾ã›ã‚“。

> カーãƒãƒ«å†æ§‹ç¯‰ã§å¤‰ãªã“ã¨ã—ã¦ãªã‘れ㰠soundcore ã¯(cs4232 ã®å ´åˆ)

「変ãªã“ã¨ã€ã‹ã©ã†ã‹ã¯ã‚ã‹ã‚Šã¾ã›ã‚“ãŒã€ã‚«ãƒ¼ãƒãƒ«çµ„ã¿è¾¼ã¿ã®å ´åˆã¯
モジュールã¨ã—ã¦ã® soundcore.o ã¯ã‚ã‚Šã¾ã›ã‚“。

> ã‚ã£ã¦ã‚‚良ã•ãã†ãªã®ã¨ã€èµ·å‹•æ™‚ã«ã¯ depmod (modprobe ?)ã§
> メッセージãŒå‡ºã‚‹ã®ã«ã€èµ·å‹•å¾Œ depmod ã§(modprobe ã§ã‚‚)メッセージ
> ãŒå‡ºãªã„ã®ãŒæ°—ã«ãªã£ã¦ã¾ã™ã€‚

「起動時ã®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã€ã¯

> > > modprobe: Can't locate module sound-slot-0
> > > modprobe: Can't locate module sound-service-0-0

ã§ã™ã‚ˆã­ã€‚

ã‚ã¨ã‚«ãƒ¼ãƒãƒ«ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã¯ 2.2.18 ?

 sound_core.c を見るã¨

        chain=unit&0x0F;
        if(chain==4 || chain==5)        /* dsp/audio/dsp16 */
        {
                unit&=0xF0;
                unit|=3;
                chain=3;
        }
        
        spin_lock(&sound_loader_lock);
        s = __look_for_unit(chain, unit);
        if (s == NULL) {
                char mod[32];
        
                spin_unlock(&sound_loader_lock);
                /*
                 *  Please, don't change this order or code.
                 *  For ALSA slot means soundcard and OSS emulation code
                 *  comes as add-on modules which aren't depend on
                 *  ALSA toplevel modules for soundcards, thus we need
                 *  load them at first.   [Jaroslav Kysela <perex@xxxxxx>]
                 */
                sprintf(mod, "sound-slot-%i", unit>>4);
                request_module(mod);
                sprintf(mod, "sound-service-%i-%i", unit>>4, chain);
                request_module(mod);
                spin_lock(&sound_loader_lock);
                s = __look_for_unit(chain, unit);
        }

ã¨ãªã£ã¦ã„ã¦ã€/dev/audio ãªã©ã®ãƒ‡ãƒã‚¤ã‚¹ãŒè¨­å®š (register) ã•ã‚Œã¦ã„ãªã„
状態㧠sound 関係㌠open ã•ã‚Œã‚ˆã†ã¨ã—ãŸéš›ã«ã€ã“れらã®ãƒ‡ãƒã‚¤ã‚¹ã‚’ロード
ã—よã†ã¨ã—ã¦ã‚¨ãƒ©ãƒ¼ã«ãªã£ã¦ã„るよã†ã«è¦‹ãˆã¾ã™ã€‚

試ã—ã« /etc/modules.conf ã«

alias sound-slot-0 cs4232
alias sound-service-0-0 sound

ã¨ã—ã¦ã¿ãŸã‚‰ã€ã©ã†ãªã‚‹ã§ã—ょㆠ?


-- 
     # (ã‚ãŸã—ã®ãŠã†ã¡ã¯æµœæ¾å¸‚ã€ã€Œå¤œã®ãŠè“å­ã€ã§æœ‰åã•ã€‚)
    <kgh12351@xxxxxxxxxxx> : Taketoshi Sano (ä½é‡Žã€€æ­¦ä¿Š)