2015-12-28, 12:49
Hi,
I'm trying to use the 'alsaequal' plugin to get a simple equalizer for Kodi. So I installed the alsaequal plugin, added the .asoundrc file from [1] and selected the 'equal' PCM device in Kodi's advancedsettings.xml.
However Kodi cannot use the device and outputs the following (see full debug log below):
However playing a file with either
fully works and shows no errors (both use format S16_LE, if that's relevant).
Kodi shows the same errors when the slave.pcm in .asoundrc is set to 'plug:dmix', 'plug:default' or 'plughw:0,0', or any of them without 'plug'.
When I select 'null' as slave PCM in the .asoundrc file, Kodi can open the 'equal' device (but it plays no sound, of course).
With the 'jack' or 'pulse' plugins as slave.pcm, it somehow creates a feedback loop (as those use ALSA for output again) and outputs a screeching noise when Kodi starts.
This was tested on Arch Linux on both a x86_64 machine (Linux 4.3.3) and a Raspberry Pi 2 (Linux 4.1.15), with Kodi 15.2 and alsa-lib 1.1.0.
Any help would be greatly appreciated.
[1] http://www.thedigitalmachine.net/alsaequal.html
[2] Debug log: http://xbmclogs.com/pt2jc5dtr
I'm trying to use the 'alsaequal' plugin to get a simple equalizer for Kodi. So I installed the alsaequal plugin, added the .asoundrc file from [1] and selected the 'equal' PCM device in Kodi's advancedsettings.xml.
However Kodi cannot use the device and outputs the following (see full debug log below):
Code:
DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:equal
INFO: CAESinkALSA::Initialize - Attempting to open device "equal"
INFO: CAESinkALSA::Initialize - Opened device "equal"
DEBUG: CAESinkALSA::SelectALSAChannelMap - Selected ALSA map "FL FR"
INFO: CAESinkALSA - ALSA: pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
INFO: Previous line repeats 6 times.
INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
INFO: CAESinkALSA - ALSA: pcm_params.c:2162:(snd1_pcm_hw_refine_slave) Slave PCM not usable
INFO: Previous line repeats 7 times.
ERROR: CAESinkALSA::InitializeHW - Unable to find a suitable output format
INFO: CAESinkALSA - ALSA: pcm.c:1101:(snd_pcm_drop) PCM not set up
DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:@
INFO: CAESinkALSA::Initialize - Attempting to open device "@"
INFO: CAESinkALSA::Initialize - Opened device "sysdefault"
DEBUG: CAESinkALSA::SelectALSAChannelMap - Selected ALSA map "FL FR"
INFO: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
INFO: CAESinkALSA::InitializeHW - Using data format AE_FMT_S16NE
DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 1024, bufferSize 9600
DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 1024, bufferSize 9216
DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 192 ms
DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: FL,FR
DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: FL,FR (ALSA: FL FR)
DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
Code:
aplay -D equal somefile.wav
mplayer -ao alsa:device=equal someotherfile.mp3
Kodi shows the same errors when the slave.pcm in .asoundrc is set to 'plug:dmix', 'plug:default' or 'plughw:0,0', or any of them without 'plug'.
When I select 'null' as slave PCM in the .asoundrc file, Kodi can open the 'equal' device (but it plays no sound, of course).
With the 'jack' or 'pulse' plugins as slave.pcm, it somehow creates a feedback loop (as those use ALSA for output again) and outputs a screeching noise when Kodi starts.
This was tested on Arch Linux on both a x86_64 machine (Linux 4.3.3) and a Raspberry Pi 2 (Linux 4.1.15), with Kodi 15.2 and alsa-lib 1.1.0.
Any help would be greatly appreciated.
[1] http://www.thedigitalmachine.net/alsaequal.html
[2] Debug log: http://xbmclogs.com/pt2jc5dtr