Replies: 2 comments 3 replies
-
As it happens, that was going through my mind this week. At OSMC we haven't caught up with the 'use most recently connected device as default' functionality and are generating config nodes for each paired device in .asoundrc. We do have 20-bluealsa.conf in $datadir from way back but I'd just discovered it wasn't doing anything. On our distro, /etc/alsa/conf.d has only appeared since we moved from kernel 3.14 to 4.9. I'm not sure where/how it's generated but I would suggest bluez-alsa uses the same approach, for consistency. What we're working on is a way to automatically generate alsa config nodes when a device is paired. My idea is to put a conf file for each paired device in, say, /etc/alsa/bluealsa/. I have that working off the python we use for pairing and connecting devices but it's still WIP. |
Beta Was this translation helpful? Give feedback.
-
For piCorePlayer, I'm generating nodes dynamically as well in .asoundrc But I'm creating more than the device. I'm also creating nodes for alsaequal. The whole alsa config thing is a bit puzzling, the documentation is sure lacking. |
Beta Was this translation helpful? Give feedback.
-
It seems that the intent of the alsa project when changing the addon config directory to the $confdir (
/etc/alsa/conf.d
) back in alsa-lib release 1.1.7 was that packages should still actually install to the $datadir directory (/usr/share/alsa/alsa.conf.d
), but then the local admin could enable/disable indlividual configs by adding/removing symlinks in the $confdir directory. However, I have found no formal statement to that effect, its just the way it appears to be.So perhaps bluez-alsa should consider adopting the same approach? That would then require a decision on whether the bluez-alsa build should create the required symlink, or just document that it is required as a post-install step.
I think it might be useful to invite opinions on this (especially from distribution package maintainers). The current method appears to be working fine (at least no issues have been raised on this subject since bluez-alsa switched to $confdir for default), so there is no immediate reason to change anything. This is just a heads-up for a potential issue for packagers that may need to be addressed in the future.
Beta Was this translation helpful? Give feedback.
All reactions