Skip to content

Commit ef19280

Browse files
authored
[Feature] Add hw info to fiio-e18 preset #150 (#151)
1 parent 1e635a4 commit ef19280

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed

README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,35 @@ You might want to pull the `stable` image as opposed to the default `latest`.
6969

7070
## Usage
7171

72+
### User mode
73+
74+
You can enable user-mode by specifying `USER_MODE` to `Y` or `YES`.
75+
For `alsa` mode, it is important that the container knows the group id of the host `audio` group. On my system it's `995`, however it is possible to verify using the following command:
76+
77+
```code
78+
getent group audio
79+
```
80+
81+
On my system, this commands outputs:
82+
83+
```text
84+
audio:x:995:brltty,mpd,squeezelite
85+
```
86+
87+
In any case, make sure to set the variable `AUDIO_GID` accordingly. The variable is mandatory for user mode with alsa output.
88+
Also, if your user/group id are not both `1000`, set `PUID` and `PGID` accordingly.
89+
It is possible to verify the uid and gid of the currently logged user using the following command:
90+
91+
```code
92+
id
93+
```
94+
95+
On my system this command outputs:
96+
97+
```text
98+
uid=1000(giovanni) gid=1000(giovanni) groups=1000(giovanni),3(sys),90(network),98(power),957(autologin),965(docker),967(libvirt),991(lp),992(kvm),998(wheel)
99+
```
100+
72101
### Volumes
73102

74103
The following tables lists the volumes:
@@ -255,7 +284,8 @@ Just be careful to use the tag you have built.
255284

256285
Date|Major Changes
257286
:---|:---
258-
2022-12-15|Code cleanup
287+
2022-12-16|Preset `fiio-e18` now includes mixer
288+
2022-12-16|Code cleanup
259289
2022-12-14|Creation of `audio` group also for `pulse` mode if `AUDIO_GID` is specified
260290
2022-12-13|Minor cleanup tasks
261291
2022-12-13|Completed support for PulseAudio `sink` and `media_role`, `scale_factor`

app/assets/alsa-presets.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ topping-d10.mixer-control=D10
4242
hifiberry-dac-plus.name=Hifiberry DAC
4343
hifiberry-dac-plus.device=hw:sndrpihifiberry
4444

45+
fiio-e18-sw.name=FiiO E18
46+
fiio-e18-sw.device=hw:DACE18
47+
4548
fiio-e18.name=FiiO E18
4649
fiio-e18.device=hw:DACE18
50+
fiio-e18.mixer-control=PCM
51+
fiio-e18.mixer-type=hardware
52+
fiio-e18.mixer-device=hw:DACE18
4753

4854
yulong-d200.name=Yulond D200 USB DAC
4955
yulong-d200.device=hw:DAC

doc/example-configurations.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -120,32 +120,3 @@ docker run -d \
120120
```
121121

122122
Note that we need to allow the container to access the pulseaudio by mounting `/run/user/$(id -u)/pulse`, which typically translates to `/run/user/1000/pulse`.
123-
124-
## User mode
125-
126-
You can enable user-mode by specifying `USER_MODE` to `Y` or `YES`.
127-
For `alsa` mode, it is important that the container knows the group id of the host `audio` group. On my system it's `995`, however it is possible to verify using the following command:
128-
129-
```code
130-
getent group audio
131-
```
132-
133-
On my system, this commands outputs:
134-
135-
```text
136-
audio:x:995:brltty,mpd,squeezelite
137-
```
138-
139-
In any case, make sure to set the variable `AUDIO_GID` accordingly. The variable is mandatory for user mode with alsa output.
140-
Also, if your user/group id are not both `1000`, set `PUID` and `PGID` accordingly.
141-
It is possible to verify the uid and gid of the currently logged user using the following command:
142-
143-
```code
144-
id
145-
```
146-
147-
On my system this command outputs:
148-
149-
```text
150-
uid=1000(giovanni) gid=1000(giovanni) groups=1000(giovanni),3(sys),90(network),98(power),957(autologin),965(docker),967(libvirt),991(lp),992(kvm),998(wheel)
151-
```

0 commit comments

Comments
 (0)