LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-01-2015, 08:05 PM   #1
nickboarder27
Member
 
Registered: Feb 2007
Location: So. Cal.
Distribution: Slackware
Posts: 56

Rep: Reputation: 15
No Sound - 14.1 - AMD - sound.conf


Hello,

Code:
bash-4.2# lspci | grep Audio                                                                          
00:01.1 Audio device: AMD/ATI [Advanced Micro Devices, Inc.] Trinity HDMI Audio Controller            
00:14.2 Audio device: AMD [Advanced Micro Devices, Inc.] FCH Azalia Controller (rev 01)               
bash-4.2# lsmod | grep snd                                                                            
snd_hda_codec_realtek    34792  1                                                                     
snd_hda_codec_hdmi     29622  1                                                                       
snd_hda_intel          34861  4                                                                       
snd_hda_codec         143196  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel                
snd_hwdep               6388  1 snd_hda_codec                                                         
snd_pcm                76009  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel                        
snd_page_alloc          7098  2 snd_pcm,snd_hda_intel                                                 
snd_timer              18614  1 snd_pcm                                                               
snd                    58630  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel                                                                           
soundcore               5354  1 snd                                                                   
bash-4.2#
/etc/modprobe.d/sound.conf
Quote:
alias snd-card-0 snd_hda_codec_hdmi
alias sound-slot-0 snd_hda_codec_hdmi
options snd slots=snd_hda_codec_hdmi
aplay doesn't do anything
 
Old 05-01-2015, 08:30 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
There have been several threads recently involving Slackware and HDMI audio, more than I would care to link to in this post.

You might use the LQ Search for "HDMI audio" and specify the Slackware forums. One of the search results might help you. My problem with the "Intel Corporation Haswell HD Audio Controller (rev 06)" and HDMI were resolved by a kernel update on Current (I'm now at version 3.18.11).

I'm using the asound.conf that I got as a result of one of the threads (the source is listed), but it made no difference until the kernel update; after that, everything worked perfectly:

Code:
# cat /etc/asound.conf
## wget -N https://raw.githubusercontent.com/ryanpcmcquen/linuxTweaks/master/asound.conf -P /etc/

defaults.pcm.card 1
ctl.pcm.card 1
In case it helps, here's the output of aplay:

Code:
# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
    HDA Intel HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA Intel HDMI, HDMI 1
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
    HDA Intel HDMI, HDMI 2
    HDMI Audio Output
default:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC892 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC892 Digital
    IEC958 (S/PDIF) Digital Audio Output
 
1 members found this post helpful.
Old 05-01-2015, 08:48 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
You have an HDMI audio output, which is the default, and also an analog output. Which output do you want to use?

If you wish to use the analog output, then this SlackDocs page will explain how to set it as default. http://docs.slackware.com/howtos:har..._snd-hda-intel

Last edited by allend; 05-01-2015 at 08:59 PM.
 
Old 05-01-2015, 10:07 PM   #4
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
I use the /etc/asound.conf Frank listed above, (I wrote it ;-) on an AMD machine (hp dv6-6135dx to be exact).
 
Old 05-02-2015, 01:05 AM   #5
nickboarder27
Member
 
Registered: Feb 2007
Location: So. Cal.
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
I went and got the asound.conf file.
Reboot, no luck. I get this error in a gui window and soon as I login
Quote:
KDE detected that one or more internal devices were removed.
Do you want KDE to permanently forget about these devices?
This is the list of devices KDE thinks can be removed:
Capture: HD-Audio Generic (ALC892 Analog)
Output: HD-Audio Generic (ALC892 Analog)
I want to use the HDMI. I don't see anything that says snd_hda_ATI_hdmi...
It there a module missing?
 
Old 05-02-2015, 03:36 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Have you tried booting with the kernel parameter 'radeon.audio=1'?
Apparently this was disabled by default in the kernel, as it was breaking video output for some users.
 
Old 05-02-2015, 06:35 PM   #7
nickboarder27
Member
 
Registered: Feb 2007
Location: So. Cal.
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
I did 'linux radeon.audio=1' at lilo prompt.
Code:
bash-4.2# lsmod | grep snd  
snd_hda_codec_realtek    34792  1 
snd_hda_codec_hdmi     29622  1 
snd_hda_intel          34861  4 
snd_hda_codec         143196  3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               6388  1 snd_hda_codec
snd_pcm                76009  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          7098  2 snd_pcm,snd_hda_intel
snd_timer              18614  1 snd_pcm
snd                    58630  15 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               5354  1 snd
bash-4.2#
System acts the same...
Just for completeness:
Code:
bash-4.2# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, HDMI 0
    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
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                                                              
bash-4.2#
and the test...
Code:
bash-4.2# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
bash-4.2# aplay -D hw:0,3 /usr/share/sounds/alsa/Noise.wav 
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1239: Channels count non available
bash-4.2#
edit:
Code:
bash-4.2# lsmod | grep radeon
radeon                807879  4 
ttm                    63381  1 radeon
drm_kms_helper         35118  1 radeon
drm                   229054  6 ttm,drm_kms_helper,radeon
hwmon                   1337  3 k10temp,radeon,thermal_sys
i2c_algo_bit            5351  1 radeon
i2c_core               20936  6 drm,i2c_dev,i2c_piix4,drm_kms_helper,i2c_algo_bit,radeon
bash-4.2#

Last edited by nickboarder27; 05-02-2015 at 06:46 PM. Reason: added more of lsmod
 
Old 05-02-2015, 07:09 PM   #8
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
If you want HDMI to be the default, change the asound.conf to:
Code:
defaults.pcm.card 0
ctl.pcm.card 0
 
Old 05-02-2015, 08:54 PM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
The analog is being seen as the default device
Code:
default:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
sysdefault:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
You could consider configuring the snd-hda-intel kernel module so that this given index 1

Quote:
bash-4.2# aplay -D hw:0,3 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1239: Channels count non available
For testing, I suggest using the plughw device. On my setup, this fails
Code:
bash-4.3$ aplay -D hw:0,0 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
aplay: set_params:1239: Channels count non available
but this works
Code:
bash-4.3$ aplay -D plughw:0,0 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
 
Old 05-03-2015, 10:23 AM   #10
nickboarder27
Member
 
Registered: Feb 2007
Location: So. Cal.
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by allend View Post
The analog is being seen as the default device
Code:
default:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
sysdefault:CARD=Generic
    HD-Audio Generic, ALC892 Analog
    Default Audio Device
You could consider configuring the snd-hda-intel kernel module so that this given index 1
I did:
Code:
bash-4.2# cat /etc/modprobe.d/snd-hda-intel.conf 
options snd-hda-intel model=auto
bash-4.2#
I think the following should be involved...
Code:
bash-4.2# cat /proc/asound/card*/codec* | grep Codec
Codec: ATI R6xx HDMI
Codec: Realtek ALC892
bash-4.2#
bash-4.2# /sbin/lspci | grep Audio
00:01.1 Audio device: AMD/ATI [Advanced Micro Devices, Inc.] Trinity HDMI Audio Controller
00:14.2 Audio device: AMD [Advanced Micro Devices, Inc.] FCH Azalia Controller (rev 01)
bash-4.2#
Quote:
but this works
Code:
bash-4.3$ aplay -D plughw:0,0 /usr/share/sounds/alsa/Noise.wav
Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
This is what I'm doing now :-) The command completes but there is no sound :-(
 
Old 05-03-2015, 06:25 PM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
I hope that you are using the correct card and channel for your system (as you originally posted), rather than just copying mine.
Code:
aplay -D plughw:0,3 /usr/share/sounds/alsa/Noise.wav
 
Old 05-03-2015, 09:18 PM   #12
nickboarder27
Member
 
Registered: Feb 2007
Location: So. Cal.
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by allend View Post
I hope that you are using the correct card and channel for your system (as you originally posted), rather than just copying mine.
Code:
aplay -D plughw:0,3 /usr/share/sounds/alsa/Noise.wav
Dude...
Yes, I made the appropriate change. Thanks for asking :-)

I also swapped displays just for a sanity check. This is a new build.

I'm not sure I did the module config correctly, I couldn't find a string to use other than auto...
 
Old 05-03-2015, 10:12 PM   #13
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,264
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
For HDMI, your /etc/modprobe.d/snd-hda-intel.conf looks ok. You may not need it ( I don't). If using an asoundrc (or asound.conf), you could be introducing conflicts. Since the module is loaded and aplay sees your device, try just:
Code:
pcm.!default {
  type plug
  slave.pcm "dmixed"
}

pcm.dmixed {
  type asym
  playback.pcm {
    type dmix

    ipc_key 5678293
    ipc_perm 0660
    ipc_gid audio
  
    slave {
      channels 2
      pcm {
        type hw
        card 0
        device 3
      }
      period_size 1024
      buffer_size 8192
    }
    bindings {
      0 0
      1 1
    }
  }   
  capture.pcm "hw:0"
}
where card 0 device 3 is your HDMI hw from aplay -l. The above also sets up a virtual mixer, "dmixed" in this case (can be any text), which you need to have for HDMI. If you place the above into $HOME/.asoundrc instead of /etc/asound.conf you can cycle changes without rebooting or restarting rc.alsa, just re-login. Now try
Code:
speaker-test -c2 -twav -Dplughw:0,3
where plughw:0,3 matches your .asoundrc
Note 1: you may need -cn where n is the number of channels specified by channels above.
Note 2: I'm too lazy so leave the ipc_* and *_size settings as an exercize for the reader
 
Old 05-05-2015, 07:26 PM   #14
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Quote:
Originally Posted by ryanpcmcquen View Post
If you want HDMI to be the default, change the asound.conf to:
Code:
defaults.pcm.card 0
ctl.pcm.card 0
I think you're missing a line:

Code:
defaults.pcm.device 3

Last edited by dugan; 05-05-2015 at 07:29 PM.
 
1 members found this post helpful.
Old 05-05-2015, 09:11 PM   #15
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by dugan View Post
I think you're missing a line:

Code:
defaults.pcm.device 3
Dugan is a master. You are in good hands with him, and yes I totally glazed over the device line. Try that out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to play sound directly from input on USB sound card, a Sound Blaster X-Fi THX JunctaJuvant Other *NIX 10 06-14-2014 02:36 AM
[SOLVED] Gateway 7510GX AMD 64 No sound Spearhead40 Linux - Laptop and Netbook 1 04-02-2009 12:15 AM
no sound from sound blaster PCI sound card using mandrake-linux 10.1 box nila56 Linux - Hardware 2 05-29-2006 02:48 PM
Gentoo 64-bit on AMD. Console sound with ALSA OK, but no sound in KDE. damien Linux - Software 7 02-02-2005 01:05 AM
Sound with Soyo Dragon Plus MB AMD arst05 Fedora 0 11-30-2004 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration