LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Issue with sound (only chrome and vlc gets sound) (https://www.linuxquestions.org/questions/slackware-14/issue-with-sound-only-chrome-and-vlc-gets-sound-4175551379/)

theactionindex 08-21-2015 02:01 PM

Issue with sound (only chrome and vlc gets sound)
 
So, I'm still setting up my system. If you saw my wifi post, I finally got that working stable but one thing I haven't gotten to be stable is audio.

I am using my monitors in built speakers until I can afford to get a better speaker setup, and it is connecting through HDMI via my graphics card. Now, I read the slackware docs and googled around a little bit and I am still having trouble. Essentially, the only 2 applications I can get sound to even work on are Google Chrome (note: not Chromium) and VLC media player. I have tried random other apps (example: FCEUX/higan, Chromium, Firefox) to check to see if it outputs any sound and none of them do.

I'm not exactly sure what to post, so I am going to do

aplay -l
Code:

bash-4.2$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

my .asoundrc
Code:

pcm.!default {
        type hw
        card 1
}

ctl.!default {
        type hw
        card 1
}

/etc/modprobe.d/snd-hda-intel.conf
Code:

options snd-hda-intel model=auto
/etc/asound.conf
Code:

pcm.!default {
  type hw
  card 1
  device 8
}

ctl.!default {
  type hw
  card 1
}


I have confirmed it is device 8 with using aplay -D plughw:1,8 Noise.wav

Also, another strange thing that has happened is I rebooted my computer once, and it changed from card 1 to card 0 and another reboot it went back to card 1. Is there a way to prevent that?

Thanks in advance for any help! If you need more information, I can provide it.

allend 08-21-2015 09:17 PM

Your .asoundrc does not specify the device.
Code:

pcm.!default {
        type hw
        card 1
        device 8
}

ctl.!default {
        type hw
        card 1
        device 8
}

Another approach is to use the probe_mask option to the snd-hda-intel kernel module to restrict probing to the device that you want to use. This document is relevant, especially sections 7 and 12.10.2 ftp://download.nvidia.com/XFree86/gp...dmi-audio.html
For examples of usage see this post. http://www.linuxquestions.org/questi...2/#post4032980
You might still need the .asoundrc http://www.linuxquestions.org/questi...mt-4175535459/

theactionindex 08-24-2015 09:24 PM

Ok, so I kind of solved this on my own right now. The problem was I set up the config all wrong. I wanted it to go through pulseaudio. I had alsa-plugins installed, but didn't make the right config to go along with it I guess.

So, my /etc/asound.conf looks like
Code:

pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

Everything working now!


All times are GMT -5. The time now is 06:19 PM.