Page 32 of 34 FirstFirst ... 223031323334 LastLast
Results 311 to 320 of 333

Thread: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

  1. #311
    Join Date
    Aug 2009
    Beans
    7

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    One small note - after following these directions on a clean install of Ubuntu 9.04, I had to go to "System" / "Administration" / Users and Groups, then select my user and select "Unlock" in order to grant privileges to "Use Audio Devices" for that user. Until I did that it would not show any sound devices in "System" / "Preferences" / "Sound."

    Edit: reading back in this thread I see others had this issue, too. Jocko, would you please add this note to the main instructions for those who have this issue after installing (and are as slow as I am)?
    Last edited by PhantomPholly; August 2nd, 2009 at 08:13 PM.

  2. #312
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    2,180
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    Quote Originally Posted by PhantomPholly View Post
    One small note - after following these directions on a clean install of Ubuntu 9.04, I had to go to "System" / "Administration" / Users and Groups, then select my user and select "Unlock" in order to grant privileges to "Use Audio Devices" for that user. Until I did that it would not show any sound devices in "System" / "Preferences" / "Sound."

    Edit: reading back in this thread I see others had this issue, too. Jocko, would you please add this note to the main instructions for those who have this issue after installing (and are as slow as I am)?
    I've read your other post, but can't see why you would have that problem. I've never had to add my user to the audio group to get it working, so unless someone else confirms that the problem exists, I won't add anything more to the howto.
    Those errors you see when you run gstreamer-properties are perfectly normal, and does not indicate any problem. They are caused by the fact that some gstreamer plugins are not normally installed in ubuntu, as ubuntu doesn't use arts, esd, glimage, sdl etc.

  3. #313
    Join Date
    Aug 2009
    Beans
    7

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    While I'm new to Ubuntu, I'm not new to posting - as I inferred in my post I noted at least two other posters in the last 8 pages (both this year) of this thread who said they had exactly the same experience before I suggested it. Since I'm new you'll probably suggest I should go back through the posts yet again and post the cross links, but unfortunately I don't have the time to do that.

    Please don't think me ungrateful - your post was tremendously helpful!


  4. #314
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    2,180
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    Quote Originally Posted by PhantomPholly View Post
    While I'm new to Ubuntu, I'm not new to posting - as I inferred in my post I noted at least two other posters in the last 8 pages (both this year) of this thread who said they had exactly the same experience before I suggested it. Since I'm new you'll probably suggest I should go back through the posts yet again and post the cross links, but unfortunately I don't have the time to do that.

    Please don't think me ungrateful - your post was tremendously helpful!

    I looked through the last 10 pages, and found a couple of posts that seems to indicate that there may be permission problems that prevents some people from accessing the sound card. Thank you for pointing this out, I'll add a step to the howto.

  5. #315
    Join Date
    Jan 2008
    Beans
    8

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    On recent kernels 2.6.30 and 2.6.31 I had been getting errors like this:
    Code:
    irq event 21: bogus return value c0460000
    Pid: 0, comm: swapper Tainted: P        W  2.6.30-gentoo-r1 #3
    Call Trace:
     [<c013953e>] ? __report_bad_irq+0x2b/0x69
     [<c0139663>] ? note_interrupt+0xe7/0x13c
     [<c0139bb3>] ? handle_fasteoi_irq+0x85/0xba
     [<c010406f>] ? handle_irq+0x17/0x1c
     [<c0103d77>] ? do_IRQ+0x2b/0x63
     [<c0102e69>] ? common_interrupt+0x29/0x30
     [<c01071a4>] ? default_idle+0x25/0x38
     [<c0101ba1>] ? cpu_idle+0x23/0x52
     [<c04628cd>] ? start_kernel+0x253/0x256
    handlers:
    [<c0294fc6>] (usb_hcd_irq+0x0/0x58)
    [<e2cb2e42>] (Nvapu_interrupt+0x0/0x6a [nvsound])
    Disabling IRQ #21
    After this happens, the sound would have a lot of static.

    To fix this, I reverted the patch to nvsound/main/nvhw.h and instead changed line 127 of nvsound/main/nvhw.h to
    Code:
    #ifndef IRQ_RETVAL
    So, the new patch for nvhw.h is:
    Code:
    --- nvhw.h.orig	2005-10-21 21:59:44.000000000 -0400
    +++ nvhw.h	2009-09-26 19:26:45.000000000 -0400
    @@ -124,7 +124,7 @@
     #define PLAY_STREAM  1
     #define REC_STREAM   2
     
    -#ifndef IRQ_HANDLED
    +#ifndef IRQ_RETVAL
     typedef void irqreturn_t;
     #define IRQ_HANDLED
     #define IRQ_NONE
    I have tested this with 2.6.31 but I think it should work with 2.6.30 too. This seems to be working fine for about a day now. I will report back if there is some other problem.

  6. #316
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    2,180
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    Quote Originally Posted by ppurka View Post
    On recent kernels 2.6.30 and 2.6.31 I had been getting errors like this:
    Code:
    irq event 21: bogus return value c0460000
    Pid: 0, comm: swapper Tainted: P        W  2.6.30-gentoo-r1 #3
    Call Trace:
     [<c013953e>] ? __report_bad_irq+0x2b/0x69
     [<c0139663>] ? note_interrupt+0xe7/0x13c
     [<c0139bb3>] ? handle_fasteoi_irq+0x85/0xba
     [<c010406f>] ? handle_irq+0x17/0x1c
     [<c0103d77>] ? do_IRQ+0x2b/0x63
     [<c0102e69>] ? common_interrupt+0x29/0x30
     [<c01071a4>] ? default_idle+0x25/0x38
     [<c0101ba1>] ? cpu_idle+0x23/0x52
     [<c04628cd>] ? start_kernel+0x253/0x256
    handlers:
    [<c0294fc6>] (usb_hcd_irq+0x0/0x58)
    [<e2cb2e42>] (Nvapu_interrupt+0x0/0x6a [nvsound])
    Disabling IRQ #21
    After this happens, the sound would have a lot of static.

    To fix this, I reverted the patch to nvsound/main/nvhw.h and instead changed line 127 of nvsound/main/nvhw.h to
    Code:
    #ifndef IRQ_RETVAL
    So, the new patch for nvhw.h is:
    Code:
    --- nvhw.h.orig    2005-10-21 21:59:44.000000000 -0400
    +++ nvhw.h    2009-09-26 19:26:45.000000000 -0400
    @@ -124,7 +124,7 @@
     #define PLAY_STREAM  1
     #define REC_STREAM   2
     
    -#ifndef IRQ_HANDLED
    +#ifndef IRQ_RETVAL
     typedef void irqreturn_t;
     #define IRQ_HANDLED
     #define IRQ_NONE
    I have tested this with 2.6.31 but I think it should work with 2.6.30 too. This seems to be working fine for about a day now. I will report back if there is some other problem.
    Thanks!
    I'll try it out and update the patches in my howto if it works. Last time I tried it on 2.6.30 my sound was fine for a few minutes but became more and more choppy with time (and lots of dmesg output, probably similar to yours when that happened). I was just kind of waiting for someone else to notice and have any idea how to fix it...
    If this works I can finally get everything I want in an up-to-date distro again (after gutsy the quality of the available ati graphics drivers were so poor that I chose not to upgrade, and now I thought I was finally going to be forced to give up on my excellent sound quality if I wanted to leave gutsy and upgrade to karmic...).

  7. #317
    Join Date
    Jan 2008
    Beans
    8

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    Quote Originally Posted by jocko View Post
    Thanks!
    I'll try it out and update the patches in my howto if it works. Last time I tried it on 2.6.30 my sound was fine for a few minutes but became more and more choppy with time (and lots of dmesg output, probably similar to yours when that happened). I was just kind of waiting for someone else to notice and have any idea how to fix it...
    If this works I can finally get everything I want in an up-to-date distro again (after gutsy the quality of the available ati graphics drivers were so poor that I chose not to upgrade, and now I thought I was finally going to be forced to give up on my excellent sound quality if I wanted to leave gutsy and upgrade to karmic...).
    The other kind of dmesg errors that you get is like this:
    Code:
    include/asm/dma-mapping.h:132 AosMemoryFreePhysical+0xf5/0x144 [nvsound]()
    Hardware name: A7N8X-E
    Modules linked in: nvsound(P) nvidia(P) sg parport_pc parport nvidia_agp soundcore agpgart [last unloaded: nvsound]
    Pid: 10817, comm: firefox Tainted: P        W  2.6.31-gentoo #1
    Call Trace:
     [<c101c3a2>] ? warn_slowpath_common+0x5e/0x8a
     [<c101c3d8>] ? warn_slowpath_null+0xa/0xc
     [<e26a554e>] ? AosMemoryFreePhysical+0xf5/0x144 [nvsound]
     [<e2652050>] ? _ZN8CNvVoiceD0Ev+0x160/0x168 [nvsound]
     [<e26023ec>] ? _ZdlPv+0x38/0x50 [nvsound]
     [<e2642940>] ? _ZN9CNvStreamD0Ev+0x1c0/0x1c8 [nvsound]
     [<e26465f1>] ? _ZN9CNvStream12FinalReleaseEv+0x57/0x68 [nvsound]
     [<e2602c20>] ? _ZN10NvaUnknown20NondelegatingReleaseEv+0x36/0x48 [nvsound]
     [<e269accb>] ? _ZN9CNvStream7ReleaseEv+0x17/0x1c [nvsound]
     [<e268e0ad>] ? _ZN13CApuStreamPciD0Ev+0x47/0xd6 [nvsound]
     [<e2602c20>] ? _ZN10NvaUnknown20NondelegatingReleaseEv+0x36/0x48 [nvsound]
     [<e269be53>] ? _ZN13CApuStreamPci7ReleaseEv+0x17/0x1c [nvsound]
     [<e2688098>] ? Nv_FreeNewstream+0x2c/0x38 [nvsound]
     [<e26a6d5e>] ? Nvfree_wave_device+0x55/0x123 [nvsound]
     [<e26a6f21>] ? Nvaudio_release+0xf5/0x106 [nvsound]
     [<c1065fed>] ? __fput+0xc0/0x17a
     [<c1063672>] ? filp_close+0x4e/0x54
     [<c10636e5>] ? sys_close+0x6d/0xb7
     [<c10027f4>] ? sysenter_do_call+0x12/0x26
    ---[ end trace 94f160b26cd3b606 ]---
    It is different from the one I gave in the previous post. This is just a warning and it doesn't do anything pro-actively. I tried to find out what is giving such warnings and it seems this has to do with some assembly code in the nvsound sources. I am not much of a programmer, so fixing this is completely beyond my reach.

    The patch I gave in my earlier post has been working pretty fine till now
    Without the patch above, you can run the following in the terminal to detect when your sound gets corrupted:
    Code:
    while ! dmesg | grep -w '21'; do
    sleep 10
    done;
    Essentially, what is happening is that IRQ_HANDLED and IRQ_NONE are defined as enums in the newer kernels (see /usr/src/linux/include/linux/irqreturn.h). In the nvsound sources, these are redefined into some weird hexadecimal numbers. If you read the kernel sources, you will come across this comment in /usr/src/linux/kernel/irq/spurious.c
    Code:
    /*
     * If 99,900 of the previous 100,000 interrupts have not been handled
     * then assume that the IRQ is stuck in some manner. Drop a diagnostic
     * and try to turn the IRQ off.
     *
     * (The other 100-of-100,000 interrupts may have been a correctly
     *  functioning device sharing an IRQ with the failing one)
     *
     * Called under desc->lock
     */
    So, the kernel waits till it has received more than 99,900 bogus IRQ_HANDLED or IRQ_NONE, and then it disables the IRQ. That is when the sound gets "choppy" or full of "static". This is what my patch tries to fix.

  8. #318
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    2,180
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    Quote Originally Posted by ppurka View Post
    The other kind of dmesg errors that you get is like this:
    Code:
    include/asm/dma-mapping.h:132 AosMemoryFreePhysical+0xf5/0x144 [nvsound]()
    Hardware name: A7N8X-E
    Modules linked in: nvsound(P) nvidia(P) sg parport_pc parport nvidia_agp soundcore agpgart [last unloaded: nvsound]
    Pid: 10817, comm: firefox Tainted: P        W  2.6.31-gentoo #1
    Call Trace:
     [<c101c3a2>] ? warn_slowpath_common+0x5e/0x8a
     [<c101c3d8>] ? warn_slowpath_null+0xa/0xc
     [<e26a554e>] ? AosMemoryFreePhysical+0xf5/0x144 [nvsound]
     [<e2652050>] ? _ZN8CNvVoiceD0Ev+0x160/0x168 [nvsound]
     [<e26023ec>] ? _ZdlPv+0x38/0x50 [nvsound]
     [<e2642940>] ? _ZN9CNvStreamD0Ev+0x1c0/0x1c8 [nvsound]
     [<e26465f1>] ? _ZN9CNvStream12FinalReleaseEv+0x57/0x68 [nvsound]
     [<e2602c20>] ? _ZN10NvaUnknown20NondelegatingReleaseEv+0x36/0x48 [nvsound]
     [<e269accb>] ? _ZN9CNvStream7ReleaseEv+0x17/0x1c [nvsound]
     [<e268e0ad>] ? _ZN13CApuStreamPciD0Ev+0x47/0xd6 [nvsound]
     [<e2602c20>] ? _ZN10NvaUnknown20NondelegatingReleaseEv+0x36/0x48 [nvsound]
     [<e269be53>] ? _ZN13CApuStreamPci7ReleaseEv+0x17/0x1c [nvsound]
     [<e2688098>] ? Nv_FreeNewstream+0x2c/0x38 [nvsound]
     [<e26a6d5e>] ? Nvfree_wave_device+0x55/0x123 [nvsound]
     [<e26a6f21>] ? Nvaudio_release+0xf5/0x106 [nvsound]
     [<c1065fed>] ? __fput+0xc0/0x17a
     [<c1063672>] ? filp_close+0x4e/0x54
     [<c10636e5>] ? sys_close+0x6d/0xb7
     [<c10027f4>] ? sysenter_do_call+0x12/0x26
    ---[ end trace 94f160b26cd3b606 ]---
    It is different from the one I gave in the previous post. This is just a warning and it doesn't do anything pro-actively. I tried to find out what is giving such warnings and it seems this has to do with some assembly code in the nvsound sources. I am not much of a programmer, so fixing this is completely beyond my reach.

    The patch I gave in my earlier post has been working pretty fine till now
    Without the patch above, you can run the following in the terminal to detect when your sound gets corrupted:
    Code:
    while ! dmesg | grep -w '21'; do
    sleep 10
    done;
    Essentially, what is happening is that IRQ_HANDLED and IRQ_NONE are defined as enums in the newer kernels (see /usr/src/linux/include/linux/irqreturn.h). In the nvsound sources, these are redefined into some weird hexadecimal numbers. If you read the kernel sources, you will come across this comment in /usr/src/linux/kernel/irq/spurious.c
    Code:
    /*
     * If 99,900 of the previous 100,000 interrupts have not been handled
     * then assume that the IRQ is stuck in some manner. Drop a diagnostic
     * and try to turn the IRQ off.
     *
     * (The other 100-of-100,000 interrupts may have been a correctly
     *  functioning device sharing an IRQ with the failing one)
     *
     * Called under desc->lock
     */
    So, the kernel waits till it has received more than 99,900 bogus IRQ_HANDLED or IRQ_NONE, and then it disables the IRQ. That is when the sound gets "choppy" or full of "static". This is what my patch tries to fix.
    Your patch seems to work perfectly (better than my ugly hack which is probably what caused the stuttering/static in the first place...).
    I have no idea what causes the remaining dmesg output, but it seems to have been around for a while without causing any problems that I know of (there are some posts in this thread where the same happened in kernel 2.6.24). But it would be nice if someone had any idea how to fix it.
    Last edited by jocko; October 3rd, 2009 at 01:56 PM.

  9. #319
    Join Date
    Jul 2006
    Beans
    6

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    Hi!

    First I have to say, this is a great instruction!
    For years I had the problem, that my computer produced a silent humming noise driving me insane. Now this noise is gone - that makes me happy.

    Still, I have a problem that makes me unhappy: not only the humming noise is gone, but the whole sound

    I'm using Ubuntu 9.10. I think my problem is somewhere in step 6.
    When I type "gstreamer-properties in my console, I can click on the "test"-button. I hear a loud noise then.
    Typing "gnome-sound-properties" however gives me "command not found". Well, I think this command was replaced by "gnome-control-center", right?

    When I go to the audio settings by clicking right on the speaker symbol, the tab "Hardware" is empty.

    What can I do?

    Thank you!

    Spin

    [edit]
    ... Finally got it running, using this tutorial:
    https://help.ubuntu.com/community/OpenSound

    Sorry for bothering, Jocko and thanks for this great guide!
    Last edited by Spindoctor; January 8th, 2010 at 01:52 AM. Reason: update

  10. #320
    Join Date
    Nov 2005
    Location
    Uppsala, Sweden
    Beans
    2,180
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Nvidia nForce SoundStorm APU: Digital output, Surround and Hardware mixing

    Quote Originally Posted by Spindoctor View Post
    Hi!

    First I have to say, this is a great instruction!
    For years I had the problem, that my computer produced a silent humming noise driving me insane. Now this noise is gone - that makes me happy.

    Still, I have a problem that makes me unhappy: not only the humming noise is gone, but the whole sound

    I'm using Ubuntu 9.10. I think my problem is somewhere in step 6.
    When I type "gstreamer-properties in my console, I can click on the "test"-button. I hear a loud noise then.
    Typing "gnome-sound-properties" however gives me "command not found". Well, I think this command was replaced by "gnome-control-center", right?

    When I go to the audio settings by clicking right on the speaker symbol, the tab "Hardware" is empty.

    What can I do?

    Thank you!

    Spin

    [edit]
    ... Finally got it running, using this tutorial:
    https://help.ubuntu.com/community/OpenSound

    Sorry for bothering, Jocko and thanks for this great guide!
    The reason gnome-volume-control does not detect any sound card when you use the nvsound driver is that pulseaudio does not work with nvsound, so all applications have to be set to use oss instead (but since gnome now-days is hard-coded to use pulseaudio, there is no way to get system sounds).

    I actually don't use nvsound anymore. I kept gutsy with working pulseaudio and nvsound until karmic was released, and now I'm actually happy with the quality of the sound with the alsa driver and pulseaudio. I'm missing the real-time re-encoding to dolby digital, but I can live without it as long as the sound is clear and smooth...
    So I'm not sure if I will keep trying to find ways to get this old driver working in any more kernel releases...

    But, out of curiosity and in case it will help someone else: When you say you solved it by following the OpenSound guide, did you follow the whole guide and installed OSSv4 (which means you don't use the nvsound driver or the soundstorm chipset), or did you just follow part of the guide without installing OSSv4 (which means you still use soundstorm and nvsound)?

Page 32 of 34 FirstFirst ... 223031323334 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •