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.
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:~#
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.
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.
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.
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.
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.
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.
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.
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
"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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.