LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Audio refuses to work :( (https://www.linuxquestions.org/questions/linux-hardware-18/audio-refuses-to-work-236343/)

DaBlade 09-28-2004 04:52 PM

Audio refuses to work :(
 
I've been nagging the people on #Fedora.freenode for a solution to this, but nothing has worked out:
I can't get my audio to work. I got a dual boot Fedora Core 2/Windoze XP, and the sound works perfect in XP, yet in FC2, it's nonexistant. I got Kernel 2.6.8-1(and something else that I can't remember), KDE. Hardware browser shows this: nForce2 AC97 Audio Controler (MCP)
Producer: nVidia Corporation
Driver: snd-intel8x0
The card is a embedded C-Media audio card. I don't remember the exact model number.
To solve the problem, someone in #Fedora suggested that I install nVidia's motherboard driver. I tried, yet it wanted me to place loads of files into folders that don't exist.
I've tried fiddeling with KMix, aumix and alsamixer.
The only thing that worked at all (and it worked on all three) is the mic. When I turn it up, a loud noise appears, so I keep it low. I am a complete noob, so pretty much everything I did was copy commands off MSN and #Fedora, enter them and hoped they'd work. I tried the sound test, but it didn't work. I tried wav, mp3 and ogg files, but they didn't work. I don't really know what to do.
I'll post C-Media's readme's here.
C-Media:
Code:

Audio driver for CM8338/CM8738 chips by Chen-Li Tien


HARDWARE SUPPORTED
================================================================================
C-Media CMI8338
C-Media CMI8738
On-board C-Media chips


STEPS TO BUILD DRIVER
================================================================================

  1. Backup the Config.in and Makefile in the sound driver directory
    (/usr/src/linux/driver/sound).
    The Configure.help provide help when you config driver in step
    4, please backup the original one (/usr/src/linux/Document) and
    copy this file.
    The cmpci is document for the driver in detail, please copy it
    to /usr/src/linux/Document/sound so you can refer it. Backup if
    there is already one.

  2. Extract the tar file by 'tar xvzf cmpci-xx.tar.gz' in the above
    directory.

  3. Change directory to /usr/src/linux

  4. Config cm8338 driver by 'make menuconfig', 'make config' or
    'make xconfig' command.

  5. Please select Sound Card (CONFIG_SOUND=m) support and CMPCI
    driver (CONFIG_SOUND_CMPCI=m) as modules. Resident mode not tested.
    For driver option, please refer 'DRIVER PARAMETER'

  6. Compile the kernel if necessary.

  7. Compile the modules by 'make modules'.

  8. Install the modules by 'make modules_install'


INSTALL DRIVER
================================================================================

  1. Before first time to run the driver, create module dependency by
    'depmod -a'

  2. To install the driver manually, enter 'modprobe cmpci'.

  3. Driver installation for various distributions:

    a. Slackware 4.0
      Add the 'modprobe cmpci' command in your /etc/rc.d/rc.modules
      file.so you can start the driver automatically each time booting.

    b. Caldera OpenLinux 2.2
      Use LISA to load the cmpci module.

    c. RedHat 6.0 and S.u.S.E. 6.1
      Add following command in /etc/conf.modules:

      alias sound cmpci

        also visit http://www.cmedia.com.tw for installation instruction.

DRIVER PARAMETER
================================================================================

  Some functions for the cm8738 can be configured in Kernel Configuration
  or modules parameters. Set these parameters to 1 to enable.

  mpu_io:        I/O ports base for MPU-401, 0 if disabled.
  fm_io:        I/O ports base for OPL-3, 0 if disabled.
  spdif_inverse:Inverse the S/PDIF-in signal, this depends on your
                CD-ROM or DVD-ROM.
  spdif_loop:  Enable S/PDIF loop, this route S/PDIF-in to S/PDIF-out
                directly.
  speakers:    Number of speakers used.
  use_line_as_rear:Enable this if you want to use line-in as
                rear-out.
  use_line_as_bass:Enable this if you want to use line-in as
                bass-out.
  modem:        You will need to set this parameter if you want to use
                the HSP modem. You need install the pctel.o, the modem
                driver itself.
  joystick:        Enable joystick. You will need to install Linux joystick
                driver.

For some reason, nVidia's driver didn't have a readme. It was a .run file.

Peacedog 09-28-2004 07:12 PM

Hi DaBlade, may we please see the output of.

/sbin/lspci -v

and

/sbin/lsmod

Thank you. On another note, I've seen some problems w/ac97 audio concerning a bug w/fedora. Search the forums for "bugzilla" w/my username, and the thread should show up.
good luck.

DaBlade 09-29-2004 09:17 AM

What's /sbin/lspci -v?
I don't really know much about Linux at all...
If you could explain it in Newbian, I'd appreciate it.
My MSN addy is EMINEMdablade@SNOOPDOGGgmail.com (remove the rappers) and my ICQ addy should be in my sig or something.
/me is a :newbie: :confused: :o

Peacedog 09-29-2004 10:24 AM

Open a terminal or konsole, type the commands, and post the output of each here.
good luck.

DaBlade 09-29-2004 11:53 AM

Your first command:
Code:

[root@online root]# /sbin/lspci -v
00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1)
        Flags: bus master, 66Mhz, fast devsel, latency 0
        Memory at d0000000 (32-bit, prefetchable)
        Capabilities: [40] AGP version 3.0
        Capabilities: [60] #08 [2001]

00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 0 (rev c1)
        Subsystem: nVidia Corporation: Unknown device 0c17
        Flags: 66Mhz, fast devsel

00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
        Subsystem: nVidia Corporation: Unknown device 0c17
        Flags: 66Mhz, fast devsel

00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
        Subsystem: nVidia Corporation: Unknown device 0c17
        Flags: 66Mhz, fast devsel

00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
        Subsystem: nVidia Corporation: Unknown device 0c17
        Flags: 66Mhz, fast devsel

00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
        Subsystem: nVidia Corporation: Unknown device 0c17
        Flags: 66Mhz, fast devsel

00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
        Subsystem: nVidia Corporation: Unknown device 0c11
        Flags: bus master, 66Mhz, fast devsel, latency 0
        Capabilities: [48] #08 [01e1]

00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
        Subsystem: nVidia Corporation: Unknown device 0c11
        Flags: 66Mhz, fast devsel, IRQ 12
        I/O ports at e400
        Capabilities: [44] Power Management version 2

00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
        Subsystem: nVidia Corporation: Unknown device 0c11
        Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 11
        Memory at e4003000 (32-bit, non-prefetchable)
        Capabilities: [44] Power Management version 2

00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 10 [OHCI])
        Subsystem: nVidia Corporation: Unknown device 0c11
        Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 5
        Memory at e4004000 (32-bit, non-prefetchable)
        Capabilities: [44] Power Management version 2

00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a4) (prog-if 20 [EHCI])
        Subsystem: nVidia Corporation: Unknown device 0c11
        Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 12
        Memory at e4005000 (32-bit, non-prefetchable)
        Capabilities: [44] #0a [2080]
        Capabilities: [80] Power Management version 2

00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1)
        Subsystem: Chaintech Computer Co. Ltd: Unknown device f444
        Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 5
        I/O ports at d400
        I/O ports at d800 [size=128]
        Memory at e4001000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [44] Power Management version 2

00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3) (prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
        I/O behind bridge: 0000c000-0000cfff
        Memory behind bridge: e2000000-e3ffffff
        Expansion ROM at 0000c000 [disabled] [size=4K]

00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2) (prog-if 8a [Master SecP PriP])
        Subsystem: nVidia Corporation: Unknown device 0c11
        Flags: bus master, 66Mhz, fast devsel, latency 0
        I/O ports at f000 [size=16]
        Capabilities: [44] Power Management version 2

00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1) (prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 32
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=32
        Memory behind bridge: e0000000-e1ffffff
        Prefetchable memory behind bridge: d8000000-dfffffff

01:07.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at c000 [size=32]
        Capabilities: [80] Power Management version 2

01:07.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 50) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID) USB Controller
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at c400 [size=32]
        Capabilities: [80] Power Management version 2

01:07.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 51) (prog-if 20 [EHCI])
        Subsystem: VIA Technologies, Inc. (Wrong ID): Unknown device 1234
        Flags: bus master, medium devsel, latency 32, IRQ 12
        Memory at e3001000 (32-bit, non-prefetchable)
        Capabilities: [80] Power Management version 2

01:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RT8139
        Flags: bus master, medium devsel, latency 32, IRQ 11
        I/O ports at c800
        Memory at e3000000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

02:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1) (prog-if 00 [VGA])
        Subsystem: Micro-Star International Co., Ltd.: Unknown device 9110
        Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 12
        Memory at e0000000 (32-bit, non-prefetchable)
        Memory at d8000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3.0

[root@online root]#

Your second command
Code:

[root@online root]# /sbin/lsmod
Module                  Size  Used by
ppp_synctty            8129  0
ppp_async              9153  1
crc_ccitt              1985  1 ppp_async
ppp_generic            31061  6 ppp_synctty,ppp_async
slhc                    5825  1 ppp_generic
8139too                22465  0
mii                    3777  1 8139too
snd_intel8x0          30829  2
snd_ac97_codec        58821  1 snd_intel8x0
snd_pcm                83529  2 snd_intel8x0
snd_timer              25413  1 snd_pcm
snd_page_alloc          8393  2 snd_intel8x0,snd_pcm
gameport                4033  1 snd_intel8x0
snd_mpu401_uart        7361  1 snd_intel8x0
snd_rawmidi            21733  1 snd_mpu401_uart
snd_seq_device          6473  1 snd_rawmidi
snd                    45477  10 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              7713  1 snd
parport_pc            21249  1
lp                      9133  0
parport                35977  2 parport_pc,lp
autofs4                20677  0
sunrpc                141861  1
ipt_REJECT              5057  1
ipt_state              1857  6
ip_conntrack          25569  1 ipt_state
iptable_filter          2369  1
ip_tables              13889  3 ipt_REJECT,ipt_state,iptable_filter
floppy                54001  0
sg                    28513  0
scsi_mod              105360  1 sg
usblp                  10817  0
dm_mod                47317  0
ohci_hcd              19793  0
uhci_hcd              28505  0
ehci_hcd              27973  0
button                  4825  0
battery                7117  0
asus_acpi              9177  0
ac                      3533  0
md5                    3905  1
ipv6                  217349  12
ext3                  96937  1
jbd                    66521  1 ext3
[root@online root]#


Peacedog 09-29-2004 12:07 PM

It looks like the modules are loaded correctly. Open alsamixer and look for a pcm2, if it's there unmute it. Maybe also post every option alsamixer has. There are some other ideas here at the bottom of the page.

http://www.alsa-project.org/alsa-doc...odule=intel8x0

good luck.

DaBlade 09-29-2004 12:51 PM

There is no PCM2, just PCM, and I can't move that one up.
Alsamixer's options below, in the order ALSAMixer showes them. (the ones that can't be moved up are marked with a #, and the rest are on max, except the mic, and special ones with *)
Master - Master M - PCM# - Surround - Center - LFE - Line - Line In# - CD - Mic - Mic as C# - Mic Boos - Mic Sele* - Video - Phone - IEC958# - IEC958 C# - IEC958 C# - IEC958 P - IEC958 P* - PC Speak - AUX - Mono Out* - Capture - Mix# - Mix Mono# - External#.
*Mic Sele=Different settings: Mic1 or Mic2
*IEC958 P= different settings: Analog or Digital
*Mono Out=different settings: Mic or Mix
That's it.

Peacedog 09-29-2004 01:30 PM

Do any of them have an M or MM at the top?

DaBlade 09-29-2004 03:21 PM

No. But there is one that on top has L____R (probably left/right).
It's Mix Mono.

Peacedog 09-29-2004 03:41 PM

Have you double checked to be sure the speaker plug is in the correct outlet?

DaBlade 09-29-2004 03:47 PM

Yes of course. I have a dual boot with windoze, and the sound works fine there.
Plus, someone in #Fedora suggested that I change the sockets, because Linux sometimes screws up the sockets. I did it, and it didn't work, so I placed them back where they were.

Peacedog 09-29-2004 05:45 PM

My apologies, I didn't intend to be condescending, but, I personally have made that small oversight before. I read somewhere that muting one of the channels allowed the pcm to be adjusted. I'm googling for that page again, I can't seem to recall where it was.
good luck.

J.W. 09-29-2004 06:17 PM

DaBlade - it sounds like you're doing the right things to get sound up and running. Questions:

1. Have you tried running alsaconfig and if so, did it successfully generate a tone?
2. What media or source file are you trying to play, and which app are you using to play it? Note that the app is almost guaranteed to have its own volume control (such as the slider bar on XMMS) Check that the volume for the app is turned up all the way too.

Lastly, while I also support the Linux Counter project, would it be possible to use a regular size font to avoid the shouting? Thanks -- J.W.

DaBlade 09-29-2004 11:55 PM

I entered alsaconfig in Konsole, but nothing happened.... :
I have a few Eminem MP3s and OGGs I got from a CD.
When I play the ogg vorbis', a player called Kaboodle opens, but when MP3, XMMS. I put all their volumes to the top. Plus, I use the soundcard detection's sound test too. It dosn't work.
And I'll size down the counter thingy.

DaBlade 09-30-2004 12:00 AM

Quote:

Originally posted by PEACEDOG [/i]
one of the channels allowed the pcm to be adjusted. I'm googling for that page again,
I tried it on them all, but it didn't work. :confused:


All times are GMT -5. The time now is 03:36 PM.