Thank you chewitt ! Appreciate it!
I will try to disable dvb add-ons and see how it goes.
Thank you chewitt ! Appreciate it!
I will try to disable dvb add-ons and see how it goes.
I have the same issues described here with my HDMI connection and would appreciate a summary of what was done and steps to fix it. I'm a bit confused as to what was entered and where?
Thanks in advance.
RD
That took long days to fix. Unfortunately, it was a long time ago (and I am away from my setup right now) so I will try to summarize it as much as I can.
1- Figure out what is the pcm that Chrome is using. At this stage, you will only be able to mute/unmute Chrome. Use amixer over SSH to test.
2- Once you figure that out, create a new file here "/storage/.config/asound.conf"
3- Enter the following in the file (keep in mind that you have to change both the pcm and card parts.
pcm.myoutput {
type softvol
slave {
pcm "hdmi:CARD=vc4hdmi0,DEV=0"
}
control {
name "PCM My Volume"
card "vc4hdmi0"
}
hint.description "My Output with softvol"
}
Display More
4- You should reboot first, then in Chrome addon settings, choose your new "myoutput" profile instead of its defaults.
5- You should be able now to use amixer to control Chrome volume.
Hope that helps.
Good day,
I have been trying to compile LE 10 with a newer kernel and I am running into an issue with CrazyCat-10.0-cc.
The error I get is:
/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/build/dvb-latest-10.0-latest/v4l/ccs.h:24:10: fatal error: ../ccs-pll.h: No such file or directory
When I viewed the file structure inside the build directory I noticed that the file doesn't exist, but a similar situation is handled in the backports folder "css.patch" for the ccs.h file in a different location, namely "/crazycat/linux/drivers/media/i2c/ccs/ccs.h".
So I went ahead to the packages folder under /linux-driver-addons/dvb/crazycat/patches and added a patch there for the ccs.h file. However, I still get the same error even though when I open the ccs.h file, I notice that the patch was applied.
I also tried a workaround by adding the "ccs-pll.h" file to the parent directory, but to no avail.
Good day,
I noticed that a newer version of the xf86-video-amdgpu was released on the 30th of July, and the currently used version is the 19.0.1 which was released back in 2019.
Would it be possible to add the newest version to new nightlies ?
All the best,
Perfect. That was the only missing part.
It works.
HiassofT You rock! Thank you for all of your help!
Display MoreIt's best to use card names instead of numbers as the latter may change (eg if you plug in a USB audio card).
Simply run "aplay -L", that will show you the available PCMs with card names - then use the same PCM as you used in kodi. eg here on RPi4 it looks like this:
"hdmi:CARD=vc4hdmi0,DEV=0" is what you use as pcm and the name after CARD= (vc4hdmi0 in my case) is your card - on intel you'll have multiple devices (DEV=...), one for each HDMI output.
You can then create .config/asound.conf like this (adapt to your PCM/card):
Code Display Morepcm.myoutput { type softvol slave { pcm "hdmi:CARD=vc4hdmi0,DEV=0" } control { name "PCM My Volume" card "vc4hdmi0" } hint.description "My Output with softvol" }
This creates a new pcm "myoutput" with a control named "PCM My Volume". The hint is only there so you can check with "aplay -L" if your new PCM is available. It should look like this:
CodeLibreELEC:~ # aplay -L null Discard all samples (playback) or generate zero samples (capture) default Default Audio Device sysdefault Default Audio Device myoutput My Output with softvol ...
A small gotcha is that the new mixer control will only show up after the device has been used once, so to see the new volume control you'll have to first access it. eg:
Then you should see the new mixer in amixer output:
CodeLibreELEC:~ # amixer controls numid=6,iface=MIXER,name='PCM My Volume' numid=5,iface=MIXER,name='PCM Playback Volume' numid=2,iface=MIXER,name='IEC958 Playback Default' numid=3,iface=MIXER,name='IEC958 Playback Mask' numid=1,iface=PCM,name='ELD' numid=4,iface=PCM,name='Playback Channel Map'
In alsamixer and "amixer scontrols" it will show as "PCM My", as it automatically strips "Volume" from the end.
so long,
Hias
That's great. I am pushing one step forward here.
Here are the results of aplay -L
# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
myoutput
My Output with softvol
default:CARD=PCH
HDA Intel PCH, Generic Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, Generic Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, Generic Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, Generic Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, Generic Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, Generic Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, Generic Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, Generic Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, Generic Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, Generic Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
Display More
When I first tried to get sound to Chrome. I knew that plughw was to set to plughw:0,3 to work.
So Card was 0 and device was 3.
When I tried that from the aplay results, I got no where. I would have Chrome playing audio and speaker-test running without issues.
However, when I tried
It worked when Chrome was not playing sound and failed to work when chrome was playing sound. So I figured, this is the right card and device.
So next, it was time to test amixer volume change. I first ran
# amixer
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'PCM_MyVolume',0 <----- This is the newly created one
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 255
Front Left: 0 [0%]
Front Right: 0 [0%]
Simple mixer control 'Line Out',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Mic Bost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',4
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',16
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 0 [0%] [-17.25dB] [off]
Front Right: Capture 0 [0%] [-17.25dB] [off]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Internal Mic Bost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Display More
So it was added there. But running
amixer -c 0 sset PCM_MyVolume 100%
OR
amixer -c 0 sset PCM_MyVolume,0 100%
OR
amixer sset PCM_MyVolume 100%
had no effect at all on what Chrome was playing.
Is there any bindings that I should have done ? I tried rebooting to see if that was the issue, but that has no effect.
That's the default configuration of the Intel HDA driver. You can of course create another PCM using the "softvol" plugin - see here for details ALSA project - the C library reference: PCM (digital audio) plugins
In LE use /storage/.config/asound.conf instead of ~/.asoundrc and simply set the slave PCM to the HDMI PCM device you normally use.
so long,
Hias
Hello HiassofT ,
I tried to get it running all day today but I need a few pointers if that's okay with you.
When I looked at usr/share/alsa/alsa.conf to try to get the name of the slave PCM, I noticed that alsa set the devices dynamically, so I couldn't find a way to get the name of the device. So, I ran 'amixer' with the following result
# amixer
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Line Out',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Mic Bost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',4
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',16
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 0 [0%] [-17.25dB] [off]
Front Right: Capture 0 [0%] [-17.25dB] [off]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Internal Mic Bost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Display More
So, I assumed the slave PCM name to be "IEC958,0" since that the only one that muted the volume on my tests, with that in mind, i went ahead and created a new default device in the destination you told me with the name "asound.conf"
pcm.!default {
type softvol
slave "IEC958,0"
control.name "hdmi_out" <- I did not name it Master, since Master already exists.
control.card 0
}
I do not see any results following a reboot.
Can you give me any pointers on what I am missing here.
I was just talking to him. Unfortunately this is an open issue, and he can't fix it at the moment. Sorry.
Da Flex, you went above and beyond. Thank you! At least I learned something new.
The answer is simply that there is no volume control for the IEC958/HDMI outputs. Only the analog outputs have (software) volume control.
so long,
Hias
HiassofT Thank you for the explanation! Just to clarify, is that by design or can that be modified in the alsa config file ?
Wait, if it's from CvH , then stay here. I'll give him a pointer.
Awesome! Hope he has some time to spare.
I'm running out of ideas. The person, who knows the answer, is the add-on dev. Most add-on devs are at the Kodi forum. Try it there.
I believe the "browser.chrome" addon is in the Libreelec repo and was developed by CvH , if I am not mistaken. I will try looking for support at the Kodi forum.
Thanks again Da Flex
I think you understand what I did. Play around with other device channels from post #9. Maybe it's a good idea to disable auto-mute first ("Auto-Mute Mode").
I'm an RPi user, so I can't install Chrome to verify anything.
Da Flex, Thank you for your help.
I am out of my depth here. I tried every possible combination from post #9 and I tried with auto-mute disabled and enabled but to no avail.
Hopefully someone would come along who can give me any pointers on why amixer has no effects on HDMI sound other than mute and unmute.
Thanks for testing. What about amixer -c 0 sset IEC958 Default PCM,0 50%?
Thank you for your patience, Da Flex !
No output from amixer this time. but the changes had no effect on Chrome. I tried setting it to 5% then 100% after trying the 50% value.
Try this: amixer -c 0 sset IEC958,0 50%-
That was worth a try
AmandaB Please post the output of this commands:
- amixer
- cat /proc/asound/cards
I provided the output of both commands in the previous reply.
Is there a conf file to edit ? I think the issue here is related to some definitions in a conf file.
Thanks,
From the technical view the sound device is closed in Kodi and opened in Chrome.
To control the volume in Chrome install and test one of the Chrome Sound/Volume Apps.
Thank you for the suggestion mglae!
I cannot say that I tried them all, but I tried more than my fair share of them.
They either have no effect at all from the get go or they mute Chrome and once that happens no matter how high I set the volume, it stays muted.
AmandaB Please post the output of this commands:
- amixer
- cat /proc/asound/cards
I should have posted the output of both commands earlier. Sorry about that.
# amixer
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 87
Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 255 [100%] [0.00dB]
Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Line Out',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Mic Bost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',1
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',2
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',3
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',4
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958',16
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Beep',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [-34.50dB] [off]
Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 0 [0%] [-17.25dB] [off]
Front Right: Capture 0 [0%] [-17.25dB] [off]
Simple mixer control 'Auto-Mute Mode',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Enabled'
Simple mixer control 'Internal Mic Bost',0
Capabilities: volume
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: 0 - 3
Front Left: 0 [0%] [0.00dB]
Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Loopback Mixing',0
Capabilities: enum
Items: 'Disabled' 'Enabled'
Item0: 'Disabled'
# cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xa1310000 irq 127
Display More
I just wanted to let you know that there was a word censored here in "Simpe mixer control 'Internal Mic bost',0". The word here was B-O-O-S-T
It seems like Chrome has it's independent audio settings. You could search for audio config files inside the Chrome add-on folder.
Another approach is to install the "Kodi Audio Mixer" add-on and try to find the right fader for Chrome.
Thank you for the pointers Da Flex
That helped me to push it a tad further. Running the "Kodi Audio Mixer" add-on, I noticed that the only control that affected Chrome audio was 'IEC958',0.
The issue now is that I can only mute/unmute (toggle) it, but amixer won't allow me to change the volume up or down (or "Kodi Audio Mixer", for the matter -- there is no volume slider next to "IEC958",0).
The command that I ran was
How would I investigate\fix this issue ?
Hello Da Flex,
I am in the same boat here, running Libreelec over HDMI and I tried amixer with every variation and it has no effect at all. I tried aplay -l.
I also ran the command
to list all available options there and I had Chrome open and tried them one by one, to no avail.
I understand that pulse-audio wouldn't work, since that is killed right before starting Chrome addon.
I am running:
libreelec (official): 9.2.6
Chrome addon: 9.2..0.104
Intel NUC