WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Still no audio  (Read 10650 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Still no audio
« Reply #30 on: January 19, 2015, 11:45:59 AM »
I'd guess (I might be wrong), you either need to google for an .asoundrc (alsa config file) suggestion for your hardware/hdmi and try that or try with pulseaudio/pavucontrol.

Pulseaudio is added bloat, but it does make it easier to try things out in some circumstances. To try it out, start the dbus daemon ("sudo /usr/local/etc/init.d/dbus start" before "startx" and then, once in the gui, open a terminal window and type "pulseaudio" to start it. You can then play an mp3 or similar and use pavucontrol to switch through the various output options until you (hopefully) hear something.

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Still no audio
« Reply #31 on: January 19, 2015, 01:02:45 PM »
So I wanted to provide some additional information...

The one thing I did notice was that the 'aplay' output did not match the format that was being referenced in the documentation of the binary.  I continue to play with things for a bit, but couldn't get any farther.  I decided to continue to build the project and wanted to get the TV turner card working so I installed the drivers and firmware.  Just to see if that may have fixed alsa, I went back into alsamixer only to find no changes.  I now wanted to see if the card was being seen correctly so I ran an 'lspci', 'lsmod', and 'dmesg' to see that the drivers and everything seemed to be installed correctly for the tv card (which they were).  For fun I decided to run 'aplay -L' again, only this time things were dramatically different!

null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA ATI HDMI, HDMI 1
    HDMI Audio Output
default:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
sysdefault:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
front:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    Front speakers
surround21:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic,DEV=0
    HD-Audio Generic, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output

I can now change the value of the -D parameter to 'speaker-test' and while the test seems to go through, no sound still is.  Any thoughts?

Thanks,
Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Still no audio
« Reply #32 on: January 19, 2015, 03:51:18 PM »
After doing some more testing, it appears that I now have audio.  I was using the wrong speaker-test parameters.  After getting everything set correctly, the audio is now working just fine.  So it looks like the issue I was having was related to the TV turner card not having its drivers and firmware installed.  Once I got that going, the audio portion seemed to work as designed.

Thanks to everyone for their continued help!

Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Still no audio
« Reply #33 on: January 19, 2015, 05:17:08 PM »
So now I'm trying to change the default sound card to the HDMI connection and have created the ~/.asoundrc file as specified by core-user, however that doesn't work.  I have tried a value of 0 through 7 for the 'card' parameter and all display errors unless the value is set to 1, but that has to be for some other interface as the sound isn't coming through the speakers.  I can successfully play sound using the following command:

speaker-test -Dhdmi:HDMI -c6 -t wav -l1

Per the alsa documentation, it says that you can see the 'card' values for the sound cards by viewing /proc/asound/cards.  Mine looks like:

 0 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfea44000 irq 50
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfea40000 irq 16

So 'card 0' should be the correct value in the .asoundrc file, but it fails every time.  I've tried adding 'device' and 'subdevice' parameters with values of 0 or 1, but all end up giving an error too.  I'm at a loss, any ideas?

Thanks,
Dave

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Still no audio
« Reply #34 on: January 20, 2015, 02:20:56 AM »
Good job
But did you try pavucontrol and PulseAudio to select your desired configuration now that Alsa is working  ?




Sent from my iPhone using Tapatalk

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Still no audio
« Reply #35 on: January 20, 2015, 08:39:28 AM »
Good morning coreplayer2!  At this point we will most likely stay with alsa since it is working and that is what our staff is most familiar with.  We just need to have the default audio device updated.

Thanks,
Dave

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Still no audio
« Reply #36 on: January 20, 2015, 04:22:32 PM »
you still need a working alsa, please see pulseaudio info file

pulseaudio might help you troubleshoot the alsa configuration
« Last Edit: January 20, 2015, 04:34:22 PM by coreplayer2 »

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Still no audio
« Reply #37 on: January 21, 2015, 08:48:13 AM »
Good morning coreplayer2.  I do have a working alsa system, I just need to update the default device.

Thanks,
Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Still no audio
« Reply #38 on: January 26, 2015, 09:45:34 AM »
It seems like the documentation says that you can use names for devices in the .asoundrc file.  Has anyone tried this successfully?

Thanks,
Dave