SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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?
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.
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#
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
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 :-(
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:
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.