This does not appear to be a regression in snapd 2.17 vs 2.20.1. Downgrading the snap itself to r16 allows for sound to work with 2.17. Downgrading/reverting the snap itself to r16 with snapd and snap-confine 2.20.1 also allows sound to work.
It appears to be something in the snap that making it not use pulseaudio.
I just tested on a clean system with:
$ apt-cache policy snapd snap-confine us.archive. ubuntu. com/ubuntu xenial-updates/main amd64 Packages dpkg/status us.archive. ubuntu. com/ubuntu xenial/main amd64 Packages 0ubuntu1~ 16.04.1 us.archive. ubuntu. com/ubuntu xenial-updates/main amd64 Packages 0ubuntu1~ 16.04.1 100 dpkg/status
snapd:
Installed: 2.17.1ubuntu1
Candidate: 2.20.1ubuntu1
Version table:
2.20.1ubuntu1 500
500 http://
*** 2.17.1ubuntu1 100
100 /var/lib/
2.0.2 500
500 http://
snap-confine:
Installed: 1.0.43-
Candidate: 2.20.1ubuntu1
Version table:
2.20.1ubuntu1 500
500 http://
*** 1.0.43-
100 /var/lib/
and installed the latest snap in edge (r21, ie the one with xenial libraries) and I see the snap is not using pulseaudio and instead preferring alsa:
ALSA lib conf.c: 3750:(snd_ config_ update_ r) Cannot access file /usr/share/ alsa/alsa. conf (snd_pcm_ open_noupdate) Unknown PCM plug:default
ALSA lib pcm.c:2266:
This does not appear to be a regression in snapd 2.17 vs 2.20.1. Downgrading the snap itself to r16 allows for sound to work with 2.17. Downgrading/ reverting the snap itself to r16 with snapd and snap-confine 2.20.1 also allows sound to work.
It appears to be something in the snap that making it not use pulseaudio.