855GME的声卡不出声的问题

<p>用了一个多月没声音的linux,今天终于有声音了....<br />原来一直用得好好的自从从2.6.9.x升级到2.6.11.x后就一直不出声了, <div>我用的是855GME上的集成声卡。<br />Card: Intel 82801DB-ICH4<br />Chip: C-Media Electronics CMI9739</p> <p>内核配置如下<br />代码: <div> <br /> <table cellspacing="0" cellpadding="6" border="0"> <tbody> <tr> <td> </p> <pre> Sound card support <br />  x x                                               Advanced Linux Sound Architecture  ---&gt;                                             x x  <br />  x x                                               Open Sound System  ---&gt; <br /><br />                                               Advanced Linux Sound Architecture                                                x x  <br />  x x                                               Sequencer support                                                                x x  <br />  x x                                                 Sequencer dummy client                                                         x x  <br />  x x                                               OSS Mixer API                                                                    x x  <br />  x x                                               OSS PCM (digital audio) API                                                      x x  <br />  x x[*] OSS Sequencer API                                                                x x  <br />  x x                                               RTC Timer support                                                                x x  <br />  x x                                              [ ] Verbose printk                                                                   x x  <br />  x x                                              [ ] Debug             <br /><br />                                   C-Media 8738, 8338                                                                          x x  <br />  x x                                   (Creative) Ensoniq AudioPCI 1370                                                            x x  <br />  x x                                   (Creative) Ensoniq AudioPCI 1371/1373                                                       x x  <br />  x x                                   ESS ES1938/1946/1969 (Solo-1)                                                               x x  <br />  x x                                   ESS ES1968/1978 (Maestro-1/2/2E)                                                            x x  <br />  x x                                   ESS Allegro/Maestro3                                                                        x x  <br />  x x                                   ForteMedia FM801                                                                            x x  <br />  x x                                   ICEnsemble ICE1712 (Envy24)                                                                 x x  <br />  x x                                   ICE/VT1724/1720 (Envy24HT/PT)                                                               x x  <br />  x x                                   Intel/SiS/nVidia/AMD/ALi AC97 Controller                                                    x x  <br />  x x                                   Intel/SiS/nVidia/AMD MC97 Modem (EXPERIMENTAL)                                      </pre><p> </td> </tr> </tbody> </table> <p></div> <p>表现为启动和加载模块都正常,但是alsamixer里面 Master和PCM的音量不能调,都是0.<br />相关信息如下:<br /> <div> <div>代码:</div> <p> <br /> <table cellspacing="0" cellpadding="6" border="0"> <tbody> <tr> <td> </p> <pre>  <br /># lspci &line; grep -i audio<br />0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03)</pre><p> </td> </tr> </tbody> </table> <p>代码:<br /> <br /> <table cellspacing="0" cellpadding="6" border="0"> <tbody> <tr> <td> </p> <pre>  <br /># lsmod<br />Module                  Size  Used by<br />i915                   17536  1 <br />drm                    59156  2 i915<br />ppp_synctty             8064  0 <br />ppp_async               9280  1 <br />crc_ccitt               1728  1 ppp_async<br />parport_pc             30148  0 <br />parport                31496  1 parport_pc<br />via_rhine              19716  0 <br />mii                     4288  1 via_rhine<br />snd_mixer_oss          17792  0 <br />snd_intel8x0           29376  1 <br />snd_ac97_codec         75256  1 snd_intel8x0<br />snd_pcm                81928  3 snd_intel8x0,snd_ac97_codec<br />snd_timer              20740  1 snd_pcm<br />snd                    47396  6 snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer<br />snd_page_alloc          7620  2 snd_intel8x0,snd_pcm<br />nls_cp936             126272  3 <br />vfat                   11520  3 <br />fat                    36060  1 vfat<br />pppoe                  10368  0 <br />pppox                   2632  1 pppoe<br />ppp_generic            20500  8 ppp_synctty,ppp_async,pppoe,pppox<br />slhc                    6464  1 ppp_generic<br />spca5xx               296088  0 <br />videodev                7360  1 spca5xx<br />ieee80211_crypt_tkip     9536  0 <br />ieee80211_crypt_ccmp     6400  0 <br />ieee80211_crypt_wep     3968  0 <br />ipw2100               144836  0 <br />firmware_class          7488  1 ipw2100<br />ieee80211              36740  1 ipw2100<br />ieee80211_crypt         4164  5 ieee80211_crypt_tkip,ieee80211_crypt_ccmp,ieee80211_crypt_wep,ipw2100,ieee80211<br />sbp2                   20808  0 <br />ohci1394               30596  0 <br />ieee1394               91956  2 sbp2,ohci1394<br />ohci_hcd               19016  0 <br />uhci_hcd               29072  0 <br />usb_storage            28608  0 <br />usbhid                 32832  0 <br />ehci_hcd               29256  0 <br />usbcore               103864  7 spca5xx,ohci_hcd,uhci_hcd,usb_storage,usbhid,ehci_hcd</pre><p> </td> </tr> </tbody> </table> <p></div> <div> <div>代码:</div> <table cellspacing="0" cellpadding="6" border="0"> <tbody> <tr> <td> </p> <pre>#dmesg<br />...............<br />ACPI: PCI interrupt 0000:00:1f.5[B] -&gt; GSI 5 (level, low) -&gt; IRQ 5<br />PCI: Setting latency timer of device 0000:00:1f.5 to 64<br />intel8x0_measure_ac97_clock: measured 49499 usecs<br />intel8x0: clocking to 48000<br />ACPI: PCI interrupt 0000:00:1f.6[B] -&gt; GSI 5 (level, low) -&gt; IRQ 5<br />PCI: Setting latency timer of device 0000:00:1f.6 to 64<br />via-rhine.c:v1.10-LK1.2.0-2.6 June-10-2004 Written by Donald Becker<br />ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11<br />ACPI: PCI interrupt 0000:01:02.0[A] -&gt; GSI 11 (level, low) -&gt; IRQ 11<br />PCI: Setting latency timer of device 0000:01:02.0 to 64<br />eth1: VIA Rhine III at 0xe0000800, 00:40:d0:58:1c:10, IRQ 11.<br />eth1: MII PHY found at address 1, status 0x786d advertising 05e1 Link 41e1.<br />parport: PnPBIOS parport detected.<br />parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP,TRISTATE]<br />eth1: link up, 100Mbps, full-duplex, lpa 0x41E1<br />eth1: link up, 100Mbps, full-duplex, lpa 0x41E1<br />hda: CHECK for good STATUS<br />fbsplash: console 1 using theme 'emergence'<br />fbsplash: switched splash state to 'on' on console 1<br />fbsplash: console 2 using theme 'emergence'<br />fbsplash: switched splash state to 'on' on console 2<br />fbsplash: console 3 using theme 'emergence'<br />fbsplash: switched splash state to 'on' on console 3<br />.........................................................................<br />Modules linked in: i915 drm ppp_synctty ppp_async crc_ccitt parport_pc parport via_rhine mii snd_mixer_oss snd_seq_oss snd_seq_midi_event snd_<br />seq snd_seq_device snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd snd_page_alloc nls_cp936 vfat fat pppoe pppox ppp_generic slhc spca5xx vi<br />deodev ieee80211_crypt_tkip ieee80211_crypt_ccmp ieee80211_crypt_wep ipw2100 firmware_class ieee80211 ieee80211_crypt sbp2 ohci1394 ieee1394 o<br />hci_hcd uhci_hcd usb_storage usbhid ehci_hcd usbcore<br />CPU:    0<br />EIP:    0060:[]    Not tainted VLI<br />EFLAGS: 00010246   (2.6.11-gentoo-r7) <br />EIP is at snd_mixer_oss_notify_handler+0x33/0x228 [snd_mixer_oss]<br />eax: 63656c45   ebx: ecf1301c   ecx: 00000000   edx: 00000002<br />esi: 00000000   edi: ed932a00   ebp: e230e000   esp: e230fe9c<br />ds: 007b   es: 007b   ss: 0068<br />Process rmmod (pid: 12390, threadinfo=e230e000 task=e6b8f060)<br />Stack: 00000000 b7fe8000 00000000 b7fe9000 00000000 c0142b93 c0992488 e21c8b7c <br />       b7fe8000 00001000 00000000 b7fe9000 000002e0 e21c8b80 b7fe9000 c0142c41 <br />       c0992488 e21c8b7c b7fe8000 b7fe9000 00000000 000002df 00001000 b7fe9000 <br />Call Trace:<br /> [] zap_pud_range+0x43/0x70<br /> [] unmap_page_range+0x81/0xa0<br /> [] unmap_vmas+0xfc/0x210<br /> [] __try_stop_module+0x2a/0x60<br /> [] alsa_mixer_oss_exit+0x0/0x45 [snd_mixer_oss]<br /> [] alsa_mixer_oss_exit+0x33/0x45 [snd_mixer_oss]<br /> [] sys_delete_module+0x181/0x1b0<br /> [] sys_munmap+0x44/0x70<br /> [] sysenter_past_esp+0x52/0x75<br />Code: 00 00 8b 84 24 bc 00 00 00 8b bc 24 b8 00 00 00 85 c0 74 77 48 74 4f 8b 9f f4 01 00 00 31 c0 85 db 74 38 31 c0 89 44 24 08 8b 03 00<br /> c7 04 24 05 00 00 00 89 44 24 04 e8 fb 37 ea ff 8b ab dc </pre><p> </td> </tr> </tbody> </table> <p></div> </div> <p> 在各个论坛上也问不出所以然来,加上也忙,就这样脱了很久。<br />今天突然发现把alsamixer中IEC958   IEC958 C IEC958 C静音掉,就有了声音。<br />高兴之余,也因为好多次白白的编译内核感到亏<img border="0" src="http://www.kylinx.net/weblog/img/emot/sad.gif" /></p> <p>参看:<br /><a href="http://www.linuxsir.org/bbs/showthread.php?mode=hybrid&amp;t=197364">http://www.linuxsir.org/bb...</a> </p> <p> _____________________________________<br />关于 IEC958:<br /><a href="http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x1248.htm">http://www.alsa-project.or...</a><br /> <table width="100%" cellspacing="0" cellpadding="0" border="0" summary="Header navigation table"> <tbody> <tr> <th align="center" colspan="3">Writing an ALSA Driver</th> </tr> <tr> <td width="10%" valign="bottom" align="left"><a href="http://www.alsa-project.org/%7Eiwai/writing-an-alsa-driver/x1227.htm">Prev</a></td> <td width="80%" valign="bottom" align="center">Chapter 9. Miscellaneous Devices</td> <td width="10%" valign="bottom" align="right"><a href="http://www.alsa-project.org/%7Eiwai/writing-an-alsa-driver/c1270.htm">Next</a></td> </tr> </tbody> </table> <p><hr width="100%" align="left" /> <div> <h1><a name="MISC-DEVICES-IEC958">IEC958 (S/PDIF)</a></h1> <p>        Usually the controls for IEC958 devices are implemented via<br />      control interface. There is a macro to compose a name string for<br />      IEC958 controls, <code>SNDRV_CTL_NAME_IEC958()</code><br />      defined in <tt></tt>.  <br />      </p> <p>        There are some standard controls for IEC958 status bits. These<br />      controls use the type SNDRV_CTL_ELEM_TYPE_IEC958,<br />      and the size of element is fixed as 4 bytes array<br />      (value.iec958.status[x]). For <code>info</code><br />      callback, you don't specify <br />      the value field for this type (the count field must be set,<br />      though). <br />      </p> <p>        "IEC958 Playback Con Mask" is used to return the<br />      bit-mask for the IEC958 status bits of consumer mode. Similarly,<br />      "IEC958 Playback Pro Mask" returns the bitmask for<br />      professional mode. They are read-only controls, and are defined<br />      as MIXER controls (iface =<br />      <code>SNDRV_CTL_ELEM_IFACE_MIXER</code>).  <br />      </p> <p>        Meanwhile, "IEC958 Playback Default" control is<br />      defined for getting and setting the current default IEC958<br />      bits. Note that this one is usually defined as a PCM control<br />      (iface = <code>SNDRV_CTL_ELEM_IFACE_PCM</code>),<br />      although in some places it's defined as a MIXER control. <br />      </p> <p>        In addition, you can define the control switches to<br />      enable/disable or to set the raw bit mode. The implementation<br />      will depend on the chip, but the control should be named as<br />      "IEC958 xxx", preferably using<br />      <code>SNDRV_CTL_NAME_IEC958()</code> macro. <br />      </p> <p>        You can find several cases, for example,<br />      <tt>pci/emu10k1</tt>,<br />      <tt>pci/ice1712</tt>, or<br />      <tt>pci/cmipci.c</tt>.  <br />      </p> </div> <p><hr width="100%" align="left" /><br /> <table width="100%" cellspacing="0" cellpadding="0" border="0" summary="Footer navigation table"> <tbody> <tr> <td width="33%" valign="top" align="left"><a href="http://www.alsa-project.org/%7Eiwai/writing-an-alsa-driver/x1227.htm">Prev</a></td> <td width="34%" valign="top" align="center"><a href="http://www.alsa-project.org/%7Eiwai/writing-an-alsa-driver/index.html">Home</a></td> <td width="33%" valign="top" align="right"><a href="http://www.alsa-project.org/%7Eiwai/writing-an-alsa-driver/c1270.htm">Next</a></td> </tr> <tr> <td width="33%" valign="top" align="left">Hardware-Dependent Devices</td> <td width="34%" valign="top" align="center"><a href="http://www.alsa-project.org/%7Eiwai/writing-an-alsa-driver/c1192.htm">Up</a></td> <td width="33%" valign="top" align="right">Buffer and Memory Management</td> </tr> </tbody> </table> <p>以及:<br /><a href="http://www.alsa-project.org/alsa-doc/alsa-lib/group___control.html">http://www.alsa-project.or...</a><br /><a href="http://www.alsa-project.org/~iwai/alsa-drivers-writing.txt">http://www.alsa-project.or...</a></p>

你可能感兴趣的:(linux,PHP,UP,bbs)