Bug 15165 - Audio doesn't start: permission denied when getshm of alsa
: Audio doesn't start: permission denied when getshm of alsa
Status: CLOSED FIXED
Product: SB Desktop
Classification: Unclassified
Component: Audio
: 7.5.x
: PC Ubuntu Linux
: P2 minor (vote)
: 7.5.0
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-21 09:32 UTC by Deverne
Modified: 2010-04-08 17:25 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
Patch to make getshm work on my system (1.18 KB, patch)
2009-11-23 11:59 UTC, Deverne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Deverne 2009-11-21 09:32:24 UTC
squeezeplay was compiled from SVN version 7947.
jive was starting correctly, UI is OK but audio didn't work.
After investigation, it appears that I got 
20091121 17:19:16.859 ERROR  audio.output - decode_alsa getshm permission denied

It was working only when run as root but not as a simple user.

I just change the 1234 key parameter passed to getshm to something more random like 56833, I recompile everything and then everything was working nicely. 
Two changes:
- decode_alsa.c:208 and 213
- decode_alsa_backend.c:983

Just to let you know.
Comment 1 James Richardson 2009-11-23 09:40:27 UTC
Can you attach a Patch for review
Comment 2 Deverne 2009-11-23 11:59:51 UTC
Created attachment 6337 [details]
Patch to make getshm work on my system

Just a change of key 1234 in getshm, ... into something more random.
Comment 3 SVN Bot 2009-12-21 13:04:04 UTC
 == Auto-comment from SVN commit #8243 to the jive repo by andy ==
 == https://svn.slimdevices.com/jive?view=revision&revision=8243 ==

Fixed bug 15165, patch from Deverne to fix getshm permission issue
Comment 4 Chris Owens 2010-04-08 17:25:36 UTC
This bug has been marked fixed in a released version of Squeezebox Server or the accompanying firmware or mysqueezebox.com release.

If you are still seeing this issue, please let us know!