Bug 360607

Summary: some sound devices inaccessible
Product: [openSUSE] openSUSE 11.0 Reporter: Stefan Assmann <sassmann>
Component: YaST2Assignee: Takashi Iwai <tiwai>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsuchome, tiwai
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Add missing sound device links
lshal.txt

Description Stefan Assmann 2008-02-11 14:54:09 UTC
After a default installation the created user is in group "video" but not in group "audio" thus he cannot play audio files.

Default user should be in both groups "video" and "audio"
Comment 1 Jiří Suchomel 2008-02-11 14:59:58 UTC

*** This bug has been marked as a duplicate of bug 173793 ***
Comment 2 Stefan Assmann 2008-02-12 07:40:58 UTC
User created during installation does not have the priviliges to access the sound device. Jiri says this is not a yast2 matter, probably a bug in resmgr.

/sbin/resmgr list
status code 200
server message follows:
no devices available

ls -la /dev/snd/
total 0
drwxr-xr-x   2 root root     120 2008-02-12 08:27 .
drwxr-xr-x  12 root root    4360 2008-02-12 08:28 ..
crw-rw----   1 root audio 116, 4 2008-02-12 08:26 controlC0
crw-rw----   1 root audio 116, 3 2008-02-12 08:26 pcmC0D0p
crw-rw----+  1 root audio 116, 5 2008-02-12 08:27 seq
crw-rw----+  1 root audio 116, 2 2008-02-12 08:26 timer


cat /etc/pam.d/xdm
#%PAM-1.0
auth     include        common-auth
account  include        common-account
password include        common-password
session  required       pam_loginuid.so
session  include        common-session
session  required       pam_resmgr.so

as root:
resmgr sessions
:0 stefan

Sound works fine with user stefan in group audio

Comment 3 Ludwig Nussel 2008-02-12 07:45:35 UTC
please remove yourself from that group in order to debug this problem.

please provide the output of /usr/sbin/hal-resmgr --list
Comment 4 Stefan Assmann 2008-02-12 07:59:36 UTC
- removed user from group audio

/usr/sbin/hal-resmgr --list
UDI /org/freedesktop/Hal/devices/computer_alsa_sequencer
Device /dev/snd/seq
Class sound
UDI /org/freedesktop/Hal/devices/computer_alsa_timer
Device /dev/snd/timer
Class sound
UDI /org/freedesktop/Hal/devices/computer_logicaldev_input
Device /dev/input/event0
Class input
UDI /org/freedesktop/Hal/devices/usb_device_1241_1111_noserial_if0_logicaldev_input
Device /dev/input/event1
Class input
Comment 5 Ludwig Nussel 2008-02-12 09:28:00 UTC
Does

lshal|grep pcmC0D0p

show anything?
Comment 6 Stefan Assmann 2008-02-12 09:30:50 UTC
no output
Comment 7 Ludwig Nussel 2008-02-12 09:58:48 UTC
-> alsa problem
Comment 8 Takashi Iwai 2008-02-13 09:59:49 UTC
What is the sound card?  Show /proc/asound/cards.
Comment 9 Stefan Assmann 2008-02-13 10:27:32 UTC
cat /proc/asound/cards 
 0 [PS3            ]: PS3 - PS3
                      PS3 sound
Comment 10 Takashi Iwai 2008-02-13 11:43:31 UTC
OK, it got fixed on 2.6.25-rc1.
Try the patch below.
Comment 11 Takashi Iwai 2008-02-13 11:44:12 UTC
Created attachment 194648 [details]
Add missing sound device links
Comment 12 Stefan Assmann 2008-02-13 14:01:36 UTC
I've applied the patch but the result is the same
lshal|grep pcmC0D0p still doesn't show anything
Comment 13 Takashi Iwai 2008-02-13 14:17:35 UTC
Check whether /sys/class/sound/pcmC0D0p/device exists and points a certain directory.
Comment 14 Stefan Assmann 2008-02-13 14:21:21 UTC
l /sys/class/sound/pcmC0D0p/device
lrwxrwxrwx 1 root root 0 13. Feb 15:28 /sys/class/sound/pcmC0D0p/device -> ../../../../../../devices/ps3_system/ioc0_02/sound/card0/
Comment 15 Takashi Iwai 2008-02-13 14:26:07 UTC
Then it looks OK from the driver POV...  Danny, any clue?
Comment 16 Danny Al-Gaaf 2008-02-20 16:46:08 UTC
1.) is this a playstation 3? --> there is currently no HAL support for these machines
2.) please attach output of lshal
Comment 17 Stefan Assmann 2008-02-21 08:22:27 UTC
Created attachment 196174 [details]
lshal.txt
Comment 18 Olaf Hering 2008-02-21 15:19:03 UTC
I guess hal does not know about ps3_system_bus

goumi:~ # l /sys/bus/ps3_system_bus/devices/*/driver | cut -b 40-
/sys/bus/ps3_system_bus/devices/ioc0_01/driver -> ../../../bus/ps3_system_bus/drivers/ps3fb/
/sys/bus/ps3_system_bus/devices/ioc0_02/driver -> ../../../bus/ps3_system_bus/drivers/snd_ps3/
/sys/bus/ps3_system_bus/devices/sb_01/driver -> ../../../bus/ps3_system_bus/drivers/ps3flash/
/sys/bus/ps3_system_bus/devices/sb_02/driver -> ../../../bus/ps3_system_bus/drivers/ps3rom/
/sys/bus/ps3_system_bus/devices/sb_03/driver -> ../../../bus/ps3_system_bus/drivers/ps3disk/
/sys/bus/ps3_system_bus/devices/sb_04/driver -> ../../../bus/ps3_system_bus/drivers/ps3_gelic_driver/
/sys/bus/ps3_system_bus/devices/sb_05/driver -> ../../../bus/ps3_system_bus/drivers/ps3-ehci-driver/
/sys/bus/ps3_system_bus/devices/sb_06/driver -> ../../../bus/ps3_system_bus/drivers/ps3-ohci-driver/
/sys/bus/ps3_system_bus/devices/sb_07/driver -> ../../../bus/ps3_system_bus/drivers/ps3-ehci-driver/
/sys/bus/ps3_system_bus/devices/sb_08/driver -> ../../../bus/ps3_system_bus/drivers/ps3-ohci-driver/
/sys/bus/ps3_system_bus/devices/vuart_01/driver -> ../../../bus/ps3_system_bus/drivers/ps3_av/
/sys/bus/ps3_system_bus/devices/vuart_02/driver -> ../../../bus/ps3_system_bus/drivers/ps3_sys_manager/
Comment 19 Danny Al-Gaaf 2008-02-21 15:21:18 UTC
That is what I already said. HAL don't support atm ps3 
Comment 20 Danny Al-Gaaf 2008-02-21 15:49:54 UTC
submitted a new HAL version with a patch from the HAL ML to support ps3 bus.

@Tiwai/Stefan: there is a mbuild available g15-dkukawka-1, or via OSBS (as soon as it get build there): http://download.opensuse.org/repositories/home:/dkukawka:/hal-beta/openSUSE_Factory/

I reassign back, note me if it does not work.
Comment 21 Stefan Assmann 2008-02-22 13:53:09 UTC
lshal |grep pcm
udi = '/org/freedesktop/Hal/devices/ps3_system_bus_ioc0_02_sound_card_0_oss_pcm_0_0'
  info.udi = '/org/freedesktop/Hal/devices/ps3_system_bus_ioc0_02_sound_card_0_oss_pcm_0_0'  (string)
  oss.type = 'pcm'  (string)
udi = '/org/freedesktop/Hal/devices/ps3_system_bus_ioc0_02_sound_card_0_oss_pcm_0'
  info.udi = '/org/freedesktop/Hal/devices/ps3_system_bus_ioc0_02_sound_card_0_oss_pcm_0'  (string)
  oss.type = 'pcm'  (string)
  alsa.device_file = '/dev/snd/pcmC0D0p'  (string)
  alsa.pcm_class = 'generic'  (string)
  linux.device_file = '/dev/snd/pcmC0D0p'  (string)
  linux.sysfs_path = '/sys/devices/ps3_system/ioc0_02/sound/card0/pcmC0D0p'  (string)
  resmgr.device = '/dev/snd/pcmC0D0p'  (string)

together with the kernel patch from tiwai I managed to get sound output.

Thanks to all!
Closing