Posts: 54
Threads: 15
Joined: Jun 2018
Reputation:
2
I have a suggestion: my moode has both headphone and line out and I like to listen via both headphones and speakers at different times. When listening with headphones I like a bit of crossfeed, but no EQ; when listening through my speakers I don't want any crossfeed but do like a touch of parametric EQ to flatten the response a bit. At the moment it takes quite a few clicks in the settings menu to switch between the two. It would be really cool if you could define separate filter settings for headphones and speakers and switch easily between them from the Playback page.
Posts: 13,604
Threads: 306
Joined: Mar 2018
Reputation:
549
There was an item on the TODO list from long ago titled "Configuration Profiles" which was meant to do just what you are describing and automatically configure the player based on a collection of settings. The way it would work is first you manually configure the player and then SAVE the config as a named Profile for example "Headphones". Then reconfigure the player for listening through speakers and save the config as a Profile named "Speakers"
When a Profile is applied the player is automatically configured. Something like that.
-Tim
Posts: 35
Threads: 4
Joined: Jul 2018
Reputation:
0
Nice one it seems a +1 to me
Rasptouch case with RPI3 + I2C 16x2 screen and IR port
Audiophonics I-Sabre V2.1 DAC ES9023 TCXO
Posts: 13,604
Threads: 306
Joined: Mar 2018
Reputation:
549
07-22-2018, 08:20 PM
(This post was last modified: 07-23-2018, 01:02 AM by Tim Curtis.
Edit Reason: eta
)
I'd have to look back in my notes but I don't think a reboot is needed.
You just leave the I2S config in place and your USB audio device plugged in and then switching between the two is a matter of editing mpd.conf and then restarting MPD.
When both devices either support hardware volume or neither device supports it AND they both use the default ALSA mixer names of Digital (I2S) and PCM (USB) then the edits are straight forward. It gets tricky when non-default ALSA mixer names are used or when One device is configured to use hardware volume and the other software volume, etc etc.
ALSO - watch out for volume when switching outputs.
Example
I2S device
audio_output {
type "alsa"
name "ALSA default"
device "hw:0,0"
mixer_type "hardware"
mixer_control "Digital"
mixer_device "hw:0"
mixer_index "0"
dop "no"
}
USB device
audio_output {
type "alsa"
name "ALSA default"
device "hw:1,0"
mixer_type "hardware"
mixer_control "PCM"
mixer_device "hw:1"
mixer_index "0"
dop "no"
}
-Tim
Posts: 13,604
Threads: 306
Joined: Mar 2018
Reputation:
549
We would need "Audio Device Profiles" to implement reliable I2S/USB interface switching.
The profile would specify something like below. Then MPD could be automatically configured when switching interfaces.
- Device Name (ex: Allo Boss DAC)
- Interface (I2S or USB)
- Volume control (Hardware, Software, None)
- Initial volume (0 - 100)
The existing Audio device DB could be used if "Volume control" and "Initial volume" columns were added but there would also need to be a maintenance screen for add/edit/delete Devices... Thats a bit of work.
-Tim