-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Software mixer configuration #1411
Comments
I understand your question is what values to use for |
Thanks for the reply. I know the alsa asound.conf is tricky and I have read about everything I can to get software volume control working. I am hoping someone can use this information to get a working software volume control even for a a DCA that does have mixer pvolume control. Shairport-sync will default to software mixing if there is no hardware pvolume control available, so that code may be of help. MPD configurations are similar to owntone's and I tried to follow the MPD software volume asound.conf example at https://wiki.debian.org/mpd, but could not get it to take in owntone. MPD even has a mixer type for software mixing. I get 'no mixers found' for the JustBoom Digi Zero and a cmedia USB DAC that I have: [ INFO] laudio: Available ALSA playback mixer(s) on hw:0 CARD=sndrpijustboomd (snd_rpi_justboom_digi): (no mixers found) They both have mixers per amixer but neither has pvolume capability. This is for the Digi Zero: root@DietPi: Specifying some kind of hardware mixer seems to be a requirement for local audio to function in owntone, so here I set mixer = "Tx Source" even though it does not have pvolume. This configuration works, but there is no volume control in the web interface. I also tried a DragonFly Black DAC that has hardware pvolume control and volume control worked in the web interface. Local audio outputaudio {
} Thanks again! |
I found a working configuration thanks to this discussion and links: The key mappings are: Local audio output: Name - used in the speaker list in Remotenickname = "Computer"
} With the asound.conf below amixer could find the mixer: root@DietPi: asound.conf: pcm.JustBoomDigiZero { These There is good discussion on volume scale in the first link above. I have kept these at what were in the second link. The name JustBoomDigiZero is just a placeholder that is not expressed elsewhere so can be anything you want. It looks like no code changes are needed for software volume in owntone. Maybe defaulting to software mixing if hardware mixing like shairport would be a good thing to help users not have to go through all this extra configuration. Otherwise I hope this will help add to the owntone alsa documentation. Thanks again for helping me work though this. |
I have the same problem as him, but it hasn't been resolved. I hope we can solve the problem without hardware volume control. Very urgent |
It is recommended to add a software mixer to the local audio, as for sound cards without volume control, this is completely impossible in Docker @ejurgensen |
Resolved, see below.
Hi. Thanks for the great project any help that can be provided here.
I have been trying for days to get a working software volume control for my DietPi JustBoom Digi Zero DAC local audio output. The DAC does not have hardware volume controls and I have not had luck with various versions of softvol, dmix etc. There are very few references as to how the three device/mixer names in asound.conf should map to the also config in /etc/owntone.conf.
Local audio output
audio {
nickname = "Computer"
# Type of the output (alsa, pulseaudio, dummy or disabled)
type = "alsa"
# Audio PCM device name for local audio output - ALSA only
card = "???"
# Mixer channel to use for volume control - ALSA only
# If not set, PCM will be used if available, otherwise Master.
mixer = "???"
# Mixer device to use for volume control - ALSA only
# If not set, the value for "card" will be used.
mixer_device = "???"
...
}
There is a reat write up in using dmix at https://github.com/owntone/owntone-server/blob/master/README_ALSA.md but it does not go into using a software volume control, however it does go into using an equalizer which is something the JustBoom Digi Zero is capable of so I may eventually go that route.
This is the softvol suggestion on the JustBoom website for the Digi Zero that I have not been able to get a working mixer with. It shows how to use it for mpd and shairport-sync but I would think something similar would work for owntone although I did try many permutations of the config without success.
Create or edit /etc/asound.conf or ~/.asound.conf to contain the following:
pcm.softvol {
type softvol
slave {
pcm "plughw:" # Typically device number 0 (if onboard audio is disabled) or else device number 1
}
control {
name "softvol-mixer" # The name of your mixer-device in /etc/mpd.conf
card 0
}
}
pcm.!default {
type plug
slave.pcm "softvol"
}
Then edit the audio output section of /etc/mpd.conf to contain the following:
audio_output {
type "alsa"
name "JustBoom Digi Zero"
device "softvol"
mixer_type "software"
mixer_device "softvol-mixer"
}
This will allow you to adjust the output level from the digital output and prevent clipping as it might occur in your DAC.
To make this work with Shairport-sync, enter the following as your Alsa output device:
alsa =
{
output_device = "softvol";
}
The text was updated successfully, but these errors were encountered: