Skip to content

Commit 24db149

Browse files
authored
#338 Add support for alsa equalizer plugin (#339)
1 parent be5013a commit 24db149

3 files changed

Lines changed: 73 additions & 3 deletions

File tree

doc/equalizer.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Equalizer support
2+
3+
## References
4+
5+
Look at [this](https://forums.lyrion.org/forum/user-forums/general-discussion/1758009-sqeezebox-docker-configuration) thread for some context.
6+
7+
## Example configuration
8+
9+
### Custom asound.conf file
10+
11+
Create a file (it's not required it to be at /etc/asound.conf), similar to the following:
12+
13+
```text
14+
ctl.equal {
15+
type equal;
16+
}
17+
18+
pcm.plugequal {
19+
type equal;
20+
slave.pcm "plughw:DAC";
21+
}
22+
23+
pcm.equal {
24+
type plug;
25+
slave.pcm plugequal;
26+
}
27+
```
28+
29+
Replace the line that says `slave.pcm "plughw:DAC"` with your dac information. You might need to set something like `slave.pcm "plughw:0"`, `slave.pcm "plughw:1,0"`. YMMV.
30+
Save the file as (e.g.) eq-asound.conf in the same directory where you are going to save your docker-compose.yaml file.
31+
32+
### Compose file
33+
34+
A simple compose file should look like the following:
35+
36+
```text
37+
services:
38+
squeezelite:
39+
image: giof71/squeezelite:latest-alsa
40+
devices:
41+
- /dev/snd:/dev/snd
42+
environment:
43+
- USER_MODE=yes
44+
- PUID=1000
45+
- PGID=1000
46+
- AUDIO_GID=29
47+
- SQUEEZELITE_AUDIO_DEVICE=equal
48+
- SQUEEZELITE_NAME=Aune X1S
49+
- SQUEEZELITE_MODEL_NAME=Aune X1S Manjaro i5
50+
- SQUEEZELITE_SERVER_PORT=${SQUEEZELITE_SERVER_PORT:-}
51+
volumes:
52+
- ./eq-asound.conf:/etc/asound.conf:ro
53+
restart: unless-stopped
54+
```
55+
56+
I am using the typical values for PUID, PGID and AUDIO_GID. Again, this depends on your setup. Retrieve the id of the audio group using:
57+
58+
```text
59+
getent group audio
60+
```
61+
62+
Run the container as usual. In order to use the equalizer, run the following:
63+
64+
`docker-compose exec -u 1000 squeezelite alsamixer -D equal`

doc/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Older build might be dropped in order to save space on docker-hub and incur in l
1010

1111
Date|Type|Description
1212
:---|:---|:---
13+
2025-06-28|Improvement|Add support for alsa equalizer plugin (see [#338](https://github.com/GioF71/squeezelite-docker/issues/338))
1314
2025-06-26|Update|Sourceforge binaries version bump (see [#336](https://github.com/GioF71/squeezelite-docker/issues/336))
1415
2025-04-07|Update|Sourceforge binaries version bump (see [#334](https://github.com/GioF71/squeezelite-docker/issues/334))
1516
2025-03-16|Update|Sourceforge binaries version bump (see [#332](https://github.com/GioF71/squeezelite-docker/issues/332))

install/install-dep.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [[ "${BUILD_MODE}" == "sf" ]]; then
3030
apt-get update
3131
if [[ -z "${BINARY_MODE}" ]] || [[ "${BINARY_MODE}" == "full" ]] || [[ "${BINARY_MODE}" == "alsa" ]]; then
3232
echo "Installing support for Alsa ..."
33-
apt-get install --no-install-recommends -y libasound2
33+
apt-get install --no-install-recommends -y libasound2 libasound2-plugin-equal alsa-utils
3434
echo "Support for Alsa installed."
3535
fi
3636
if [[ -z "${BINARY_MODE}" ]] || [[ "${BINARY_MODE}" == "full" ]] || [[ "${BINARY_MODE}" == "pulse" ]]; then
@@ -60,8 +60,11 @@ elif [[ "${BUILD_MODE}" == "std" ]]; then
6060
apt-get update
6161
apt-get install -y bluetooth bluez-alsa-utils alsa-utils
6262
echo "Finished installing packages for bluetooth ..."
63-
else
64-
echo "No additional packages to install."
63+
elif [[ "${BINARY_MODE}" == "full" ]] || [[ "${BINARY_MODE}" == "alsa" ]]; then
64+
echo "Installing packages for alsa mode ..."
65+
apt-get update
66+
apt-get install -y libasound2-plugin-equal alsa-utils
67+
echo "Finished installing packages for alsa mode ..."
6568
fi
6669
elif [[ "${BUILD_MODE}" == "r2" ]]; then
6770
echo "Preparing for Squeezelite R2 (compiling)"
@@ -70,6 +73,8 @@ elif [[ "${BUILD_MODE}" == "r2" ]]; then
7073
git \
7174
build-essential \
7275
libasound2 \
76+
libasound2-plugin-equal \
77+
alsa-utils \
7378
libasound2-dev \
7479
libflac-dev \
7580
libmad0-dev \

0 commit comments

Comments
 (0)