LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-01-2015, 08:25 AM   #16
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39

Quote:
Originally Posted by louigi600 View Post
This plays sound for me on the HDMI port on the unit I've at home, should I not be using 0,3 ?
Code:
bash-4.2# aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
bash-4.2#
I asked because earlier you posted this:
Code:
root@darkstar:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@darkstar:~# aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
root@darkstar:~#
It shows your HDMI as card 1 device 3 (1,3)

Last edited by JackHair; 03-01-2015 at 08:26 AM.
 
Old 03-01-2015, 11:30 AM   #17
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Quote:
Originally Posted by JackHair View Post
I asked because earlier you posted this:
Code:
root@darkstar:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@darkstar:~# aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
root@darkstar:~#
It shows your HDMI as card 1 device 3 (1,3)
Yes that was on the unit I've been testing at work ... and it only started working after putting some stuff in modprobe.d/alsa.conf ... but the same did not work on the unit I've at home. Maybe chemfire's suggestions might fix that but the kids are still watching toons ... but they've got chickenpox so I think I'll let them watch TV or they'll drive my wife nuts.
 
Old 03-01-2015, 12:01 PM   #18
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by louigi600 View Post
Yes that was on the unit I've been testing at work ... and it only started working after putting some stuff in modprobe.d/alsa.conf ... but the same did not work on the unit I've at home. Maybe chemfire's suggestions might fix that but the kids are still watching toons ... but they've got chickenpox so I think I'll let them watch TV or they'll drive my wife nuts.
Oh I see. I missed the part of the 2nd PC.
 
Old 03-01-2015, 02:29 PM   #19
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
chemfire's suggestion got the master to catch the HDMI audio out but I don't get any output from the 3.5mm jack now.
It's not a big problem because I don't plan on using the audio jack right now ... but it would be nice if it all worked ...
maybe one day I'll wire up a home theater system and I might want to use the 3.5mm jack too.
 
Old 03-06-2015, 01:24 PM   #20
chemfire
Member
 
Registered: Sep 2012
Posts: 423

Rep: Reputation: Disabled
sorry for the late reply. Been away for a few days. louigi600 you should be able to do what you want but will probably need to add another plugin (route) to you chain of stuff in asound.conf. I don't have multiple cards or I would experiment for you.

You can some help on the route plugin at http://www.alsa-project.org/alsa-doc...m_plugins.html

If you are using my asound.conf, I expect the "best" place to insert it would be as the slave for softvol plugin (so that will affect both cards) than one of its slaves with be rate_convert, and than you will want to add an additional plug -> dmix -> hw chain so you can control the sample rate, and buffers separately. Depending on the card you might need to go to 44100 and not need the large buffer hdmi audio seems to need.
 
Old 03-08-2015, 01:05 AM   #21
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
Quote:
Originally Posted by chemfire View Post
sorry for the late reply. Been away for a few days. louigi600 you should be able to do what you want but will probably need to add another plugin (route) to you chain of stuff in asound.conf. I don't have multiple cards or I would experiment for you.

You can some help on the route plugin at http://www.alsa-project.org/alsa-doc...m_plugins.html

If you are using my asound.conf, I expect the "best" place to insert it would be as the slave for softvol plugin (so that will affect both cards) than one of its slaves with be rate_convert, and than you will want to add an additional plug -> dmix -> hw chain so you can control the sample rate, and buffers separately. Depending on the card you might need to go to 44100 and not need the large buffer hdmi audio seems to need.
I'll have a look at that asap ... I had an accident yesterday while plying with some build scripts ... to put it short I did something really silly:
Code:
PKGDIR=/tmp
...
...
rm -rf ${PKG}/*
I was building as root and the missing 'DIR' in the remove command made a mess of my NUC's installation (it actually did quite a clean job removing almost everything)

I then changed the remove command to
Code:
[ ! -n $PKGDIR ] && rm -rf ${PKGDIR}/*
Just to make sure I don't start accidentally removing stuff recursively from / again !

The video and audio content were safely mounted ro on nfs share so I only lost local stuff ... curiously I did that to prevent my wife from making a mess on the NAS ... was not expecting it to prevent myself from making the mess :-D

I got it installed again and most of the setup customization is done just got the fine tune for audio routing to be done ... but I'll have a go at that after having documented myself better.
 
Old 03-16-2015, 12:56 PM   #22
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635

Original Poster
Blog Entries: 20

Rep: Reputation: 81
I had a first look at the alsa documentation but it left me still a little puzzeled.
I want to add a new knob for the hdmi port (0,3) and I want it to be routed to the master mixer.
The latter I obtained by just having this in the asound.conf
Code:
pcm.HDMI {
  type hw 
  card 0
  device 3
}
pcm.!default {
  type hw 
  card 0
  device 3
}
but I'm still left clueless as to the former. What was achieved really simply with the older bios seems to be a quest with the new visual bios: Intel thanks for the progress :-D
 
Old 03-16-2015, 06:17 PM   #23
chemfire
Member
 
Registered: Sep 2012
Posts: 423

Rep: Reputation: Disabled
"add a new knob" do you mean a volume control? HDMI basically just muxes in a byte stream there is no concept of gain in the analog amplification sense. The only thing you can really do is add a softvol plugin to change the amplitude digitally.

pcm.HDMI {
type hw
card 0
device 3
}
pcm.!default {
type softvol
slave { pcm "pcm.HDMI" }
control.name "Master"
control.card 0
}

Should give you your volume control but I expect you will find you need a dmix and rate convert for all streams to play correctly.
 
  


Reply



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
Intel HDMI audio mysteriously broken in XFCE apps with ALSA on Slackware 14.1 esme_squalor Slackware 4 01-25-2015 11:00 AM
LXer: The Remarkable Intel NUC LXer Syndicated Linux News 0 01-16-2014 03:30 PM
readeon hdmi audio (snd-intel-hda) on current chemfire Slackware 5 09-22-2013 03:22 AM
[SOLVED] No Audio on HDMI on intel CE4100 garryhk Linux - Hardware 11 01-24-2013 09:09 AM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

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

All times are GMT -5. The time now is 10:39 AM.

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