Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Can't get audio working; HDMI audio or Onboard

  1. #11
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    218
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't get audio working; HDMI audio or Onboard

    if you have no cards displayed on aplay for the NVIDIA Card then mythfrontend is just gonna error out because the card is not being seen by alsa. I think you should disable the onboard audio because with the spurious errors in your post above makes me think you have an irq conflict possibly.

    290.10 drivers may or may not have an affect on your situation. You can roll back to 280.13. What ppa did you use to get the 290.10 driver to begin with.

    ALSA - Google alsa script redux it will be the first link. That is not the proper way to install alsa BUT it works just note that if you update your kernel later then you will have to re-compile and re-install alsa.

    I would upgrade alsa first to the latest and see if it can find your 520 with the on-board audio disabled. if the 520 does not get seen by aplay after doing this then you can look at the kernel option. if you want to roll back to 280.13 then you will have to remove nvidia-current driver by which means you installed it, but I really do not think the driver is your issue. 290.10 is newer and should have support for 520 cards.

    rgds,

    Dave
    Last edited by rodercot; January 31st, 2012 at 04:42 PM.

  2. #12
    Join Date
    Mar 2007
    Location
    Christchurch, NZ
    Beans
    3,239

    Re: Can't get audio working; HDMI audio or Onboard

    There is a list of what cards are supported by which d rivers in the driver readme
    Code:
    zless /usr/share/doc/nvidia-current/README.txt.gz
    The readmes are also online at nvidia.com.

  3. #13
    Join Date
    Sep 2007
    Location
    Las Vegas, Nevada
    Beans
    243
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Can't get audio working; HDMI audio or Onboard

    Okay, here's the latest update from last night's troubleshooting. I decided to restore a clonezilla backup to a point where I was at before I loaded the nvidia 290.10 drivers. I figured after doing this I'd be able to see my hdmi audio in the aplay -l list. Lo and behold, it wasn't there either. So loading the 290.10 drivers isn't what caused my hdmi audio to disappear from that list. I hadn't used any PPA to load 290.10. I had just downloaded it from Nvidia's website and installed it.

    So, then I decided to upgrade my kernel to 3.1.10. This was before your post, rodercot, suggesting I upgrade Alsa before upgrading my kernel. After upgrading my kernel I couldn't even boot back into a graphical environment anymore so I simply booted back up into kernel 3.0.15 Generic again and then did the alsa upgrade using the redux script. (pretty cool script) After that got upgraded I rebooted and redissabled the onboard audio and made sure to boot back into kernel 3.0.15 Generic.

    When I upgraded the Alsa drivers the HDMI audio was now shown in aplay -l. Progress right?!? It, in fact, showed two codecs too. One at hw:0,3 and another at hw:0,7. In some of the posts I'd read online people were having more success using the hw:0,7 as their default in the .asoundrc file. I didn't do that yet though. Instead I thought I'd at least try the speaker-test -c 2 -r 48000 -D hw:0,7 command to test it. It returned an error that I don't remember at the moment.

    So we're to the point where we have the hdmit audio in aplay -l but it still won't work. Maybe that's progress.

    I get the feeling though that rodercot is correct in saying that there might be an IRQ conflict. I haven't had to troubleshoot IRQ issues since Windows 95. I wouldn't even know where to begin in Ubuntu.

    I will repost again once I get home and can look at that error message I got when I did the speaker-test.
    Jonathan Brown
    The best part of waking up is not Folgers in your cup...it's knowing that Chuck Norris didn't kill you in your sleep.

  4. #14
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    218
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't get audio working; HDMI audio or Onboard

    ok the card is now seen - now go into (type) alsamixer and unmute (press M) the card if you have not already and then issue the grep eld from my previous post after a reboot. That is why I mentioned to check the interrupts earlier. Also check dmesg and see if it is now polling the sound card.

    Dave

  5. #15
    Join Date
    Mar 2007
    Location
    Christchurch, NZ
    Beans
    3,239

    Re: Can't get audio working; HDMI audio or Onboard

    Now that aplay -l shows the hdmi outputs, you should be able to choose the correct one after scanning for audio devices in the frontend setup.

  6. #16
    Join Date
    Sep 2007
    Location
    Las Vegas, Nevada
    Beans
    243
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Can't get audio working; HDMI audio or Onboard

    This is hands down the strangest problem I've ever had. Sorry about going so long without responding. Here's the latest. Since I last posted I had upgraded Alsa and reported that I could see the hdmi audio in aplay -l. I still could not get audio to work though using the speaker-test command.

    I went into mythfrontend setup and scanned for audio devices. It showed two HDMI devices, one was hw:0,3 and the other was hw:0,7. I tried both of them. To test them I went and attempted to play a video. No audio. But the weirdest thing was when I'd press esc to stop the video, the screen would go black and mythfrontend would crash.

    So I rebooted. Suddenly the HDMI audio was no longer shown in aplay -l. weird, right? So I rebooted and decided to remove my Hauppauge HVR 1600. This, due to the potential of having an IRQ conflict. I had previously read that this card can conflict with other cards. I had previously confirmed that it was in fact conflicting with my video card at boot up because it would hog all the virtual memory thus preventing the video card from initializing. This was solved by adding vmalloc=256M to the Grub boot command. But I removed it anyway. When I rebooted I saw HDMI audio again in aplay -l. HAHA! Seems I found the problem. right?...wrong.

    I went back into mythfrontend and tried to play a video and mythfrontend crashed again. reboot...no more hdmi audio listed in aplay -l. Reboot again...hdmi audio is shown once again.

    Here's what I got so far:
    Code:
    jbrown@browndvr:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    jbrown@browndvr:~$ aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    hdmi:CARD=NVidia,DEV=0
        HDA NVidia, HDMI 0
        HDMI Audio Output
    hdmi:CARD=NVidia,DEV=1
        HDA NVidia, HDMI 1
        HDMI Audio Output
    jbrown@browndvr:~$ cat /proc/asound/version
    Advanced Linux Sound Architecture Driver Version 1.0.25.
    Compiled on Feb  1 2012 for kernel 3.0.0-15-generic (SMP).
    jbrown@browndvr:~$ uname -r
    3.0.0-15-generic
    jbrown@browndvr:~$ speaker-test -c 2 -r 48000 -D hw:0,3
    
    speaker-test 1.0.24.2
    
    Playback device is hw:0,3
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Using 16 octaves of pink noise
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 64 to 16384
    Period size range from 32 to 8192
    Using max buffer size 16384
    Periods = 4
    was set period_size = 4096
    was set buffer_size = 16384
     0 - Front Left
    Write error: -5,Input/output error
    xrun_recovery failed: -5,Input/output error
    Transfer failed: Operation not permitted
    jbrown@browndvr:~$ speaker-test -c 2 -r 48000 -D hw:0,7
    
    speaker-test 1.0.24.2
    
    Playback device is hw:0,7
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Using 16 octaves of pink noise
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 64 to 16384
    Period size range from 32 to 8192
    Using max buffer size 16384
    Periods = 4
    was set period_size = 4096
    was set buffer_size = 16384
     0 - Front Left
    Write error: -5,Input/output error
    xrun_recovery failed: -5,Input/output error
    Transfer failed: Operation not permitted
    I could try the mythtv scan for audio devices again but I'm sure that mythfrontend will just crash after watching some video....without sound.

    Completely at a loss right now....still.
    Last edited by Meph1st0; February 2nd, 2012 at 05:46 PM.
    Jonathan Brown
    The best part of waking up is not Folgers in your cup...it's knowing that Chuck Norris didn't kill you in your sleep.

  7. #17
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    218
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't get audio working; HDMI audio or Onboard

    IF you do not get the card working in linux FIRST it will not work in any other application.

    IN the hdmi audio link from nvidia it says exactly what I am saying to you; here is a line from that file.

    "For HDMI audio to work, both monitor_present and eld_valid must be 1. Furthermore, there will typically be evidence of at least some supported audio formats."

    The audio formats he is talking about in the link are noted from the other output tests he suggests checking out. deeper than you need to go to fix this.

    please post your cat /proc/interrupts output

    grep the eld file upon reboot with aplay -l showing the card is present.

    go into alsamixer and unmute the sound card after you post the above and I can comment.

    Dave
    Last edited by rodercot; February 3rd, 2012 at 03:07 PM.

  8. #18
    Join Date
    Sep 2007
    Location
    Las Vegas, Nevada
    Beans
    243
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Can't get audio working; HDMI audio or Onboard

    Okay, here are the outputs your were looking for:

    Code:
    jbrown@browndvr:~$ grep 'eld_valid' /proc/asound/NVidia/eld*
    /proc/asound/NVidia/eld#0.0:eld_valid           0
    /proc/asound/NVidia/eld#0.1:eld_valid           0
    jbrown@browndvr:~$ grep 'eld_valid' /proc/asound/card0/eld*
    /proc/asound/card0/eld#0.0:eld_valid            0
    /proc/asound/card0/eld#0.1:eld_valid            0
    jbrown@browndvr:~$ grep 'eld_valid' /proc/asound/card1/eld*
    grep: /proc/asound/card1/eld*: No such file or directory
    jbrown@browndvr:~$ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    jbrown@browndvr:~$ cat /proc/interrupts output
                CPU0       CPU1
       0:         43          0   IO-APIC-edge      timer
       1:          2          0   IO-APIC-edge      i8042
       5:          0          0   IO-APIC-edge      MPU401 UART
       6:          3          0   IO-APIC-edge      floppy
       7:          0          0   IO-APIC-edge      parport0
       8:          0          0   IO-APIC-edge      rtc0
       9:          0          0   IO-APIC-fasteoi   acpi
      12:          4          0   IO-APIC-edge      i8042
      14:     241653          0   IO-APIC-edge      pata_via
      15:          0          0   IO-APIC-edge      pata_via
      18:   10074562          0   IO-APIC-fasteoi   cx88[0], cx88[0]
      20:          0          0   IO-APIC-fasteoi   uhci_hcd:usb2
      21:      29025          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb4, sata_via
      22:      12542          0   IO-APIC-fasteoi   uhci_hcd:usb3
      23:     135299          0   IO-APIC-fasteoi   uhci_hcd:usb5, eth0
      24:     154384          0   IO-APIC-fasteoi   nvidia
      25:          9          0   IO-APIC-fasteoi   snd_hda_intel
      64:          0          0   PCI-MSI-edge      aerdrv, PCIe PME, pciehp
     NMI:          0          0   Non-maskable interrupts
     LOC:    3948712    4867113   Local timer interrupts
     SPU:          0          0   Spurious interrupts
     PMI:          0          0   Performance monitoring interrupts
     IWI:          0          0   IRQ work interrupts
     RES:    3539223    2514895   Rescheduling interrupts
     CAL:        466        376   Function call interrupts
     TLB:       3600       3013   TLB shootdowns
     TRM:          0          0   Thermal event interrupts
     THR:          0          0   Threshold APIC interrupts
     MCE:          0          0   Machine check exceptions
     MCP:        269        269   Machine check polls
     ERR:          0
     MIS:          0
    cat: output: No such file or directory
    jbrown@browndvr:~$
    I hope that helps. I don't see anything that stands out to me. both spdif outputs are unmuted in alsamixer.
    Jonathan Brown
    The best part of waking up is not Folgers in your cup...it's knowing that Chuck Norris didn't kill you in your sleep.

  9. #19
    Join Date
    Jun 2008
    Location
    Canada
    Beans
    218
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't get audio working; HDMI audio or Onboard

    OK, we have to figure out why you have no valid id's. The wiki for hdaudio pass through shows 520gt card working with kernels 2.635+ and alsa 1.0.24. it seems weird that eld is not reporting a positive integer like 0.0, 1.0 etc... unless this is something to do with the gt 520 architecture. I do not see any irq issues.

    now can you post the output from

    ls -F /proc/asound/card0

    and

    cat /proc/asound/card0/eld#0.0

    cat /proc/asound/card0/eld#0.1

    and post dmesg lines regarding the nvidia card and hda

    EDIT - Do you still have the NVIDIA Prop driver installed and running it needs to be either from the .run or the restricted drivers applet.
    Last edited by rodercot; February 3rd, 2012 at 04:53 PM.

  10. #20
    Join Date
    Sep 2007
    Location
    Las Vegas, Nevada
    Beans
    243
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Can't get audio working; HDMI audio or Onboard

    Okay here's the output of what you asked for:

    Code:
    jbrown@browndvr:/proc/driver$ ls -F /proc/asound/card0
    codec#0  eld#0.0  eld#0.1  id  pcm3p/  pcm7p/
    jbrown@browndvr:/proc/driver$ cat /proc/asound/card0/eld#0.0
    monitor_present         0
    eld_valid               0
    jbrown@browndvr:/proc/driver$ cat /proc/asound/card0/eld#0.1
    monitor_present         0
    eld_valid               0
    jbrown@browndvr:/proc/driver$ cat /proc/driver/nvidia/version
    NVRM version: NVIDIA UNIX x86 Kernel Module  280.13  Wed Jul 27 16:55:43 PDT 2011
    GCC version:  gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
    jbrown@browndvr:/proc/driver$ dmesg | grep hda
    [   14.739221] snd_hda_intel 0000:02:00.1: PCI INT B -> GSI 25 (level, low) -> IRQ 25
    [   14.739225] hda_intel: Disabling MSI
    [   14.739256] snd_hda_intel 0000:02:00.1: setting latency timer to 64
    [   14.739261] snd_hda_intel 0000:02:00.1: PCI: Disallowing DAC for device
    [   17.776011] ALSA hda_intel.c:834 azx_get_response timeout, switching to polling mode: last cmd=0x000f0000
    [   18.784008] ALSA hda_intel.c:1563 Codec #0 probe error; disabling it...
    [   19.824008] ALSA hda_intel.c:873 hda_intel: azx_get_response timeout, switching to single_cmd mode: last cmd=0x000f0000
    jbrown@browndvr:/proc/driver$ dmesg | grep nvidia
    [   13.678838] nvidia: module license 'NVIDIA' taints kernel.
    [   19.842809] nvidia 0000:02:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24
    [   19.842819] nvidia 0000:02:00.0: setting latency timer to 64
    jbrown@browndvr:/proc/driver$
    As you can see I'm back to running the nvidia_current 280.13 drivers. There aren't anymore of those spurious response statements in dmesg.
    Jonathan Brown
    The best part of waking up is not Folgers in your cup...it's knowing that Chuck Norris didn't kill you in your sleep.

Page 2 of 3 FirstFirst 123 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
  •