Date: Mon, 26 Mar 2007 15:13:50 +0400 From: Vladimir Grebenschikov <vova@sw.ru> To: Alexander Leidinger <Alexander@leidinger.net> Cc: emulation@freebsd.org, multimedia@freebsd.org Subject: Re: Something wron in sound under linux emulation under recent current Message-ID: <1174907630.1213.3.camel@localhost> In-Reply-To: <20070326112900.g0kr4fgy8coowso4@webmail.leidinger.net> References: <1174822267.1170.21.camel@localhost> <20070326112900.g0kr4fgy8coowso4@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
=F7 =D0=CE, 26/03/2007 =D7 11:29 +0200, Alexander Leidinger =D0=C9=DB=C5=D4= : > Quoting Vladimir Grebenschikov <vova@sw.ru> (from Sun, 25 Mar 2007 =20 > 15:31:07 +0400): >=20 > > Hi > > > > After upgrade to recent current (previous was in February 2007). > > > > I have notice that heroes3 (linux game) stop working, after some > > investigation I've found that it blocks on start just after opening > > sound device (truss output below). > > > > If I start it with disabled sound - it works as expected. > > > > It works fine several months ago. > > > > Other Linux sound software looks ok (skype). > > > > $ truss /usr/local/games/Heroes3.Linux/heroes3 -l > > ... > > linux_open("/home/vova/.loki/heroes3/game.log",0x241,0666) =3D 9 (0x9) > > linux_newfstat(9,0xbfbfcb24) =3D 0 (0x0) > > linux_mmap(0xbfbfcb70) =3D 675188736 > > (0x283e9000) > > write(9,"LogFile initialized.\n",21) =3D 21 (0x15) > > close(9) =3D 0 (0x0) > > munmap(0x283e9000,4096) =3D 0 (0x0) > > linux_newstat("/dev/sound",0xbfbfc904) ERR#2 'No such file or > > directory' > > linux_open("/dev/dsp",0x801,00) =3D 9 (0x9) > > linux_ioctl(0x9,0x8004500b,0xbfbfce14) =3D 0 (0x0) > > linux_ioctl(0x9,0xc0045005,0xbfbfce14) =3D 0 (0x0) > > linux_ioctl(0x9,0xc0045006,0xbfbfce14) =3D 0 (0x0) > > close(9) =3D 0 (0x0) > > linux_open("/dev/dsp",0x1,00) =3D 9 (0x9) > > linux_ioctl(0x9,0xc004500a,0xbfbfcde0) =3D 0 (0x0) > > linux_ioctl(0x9,0xc0045005,0xbfbfcddc) =3D 0 (0x0) > > linux_ioctl(0x9,0xc0045006,0xbfbfcddc) =3D 0 (0x0) > > linux_ioctl(0x9,0xc0045002,0xbfbfcddc) =3D 0 (0x0) > > linux_brk(0x847c000) =3D 138919936 (0x847c0= 00) > > linux_getpid() =3D 4447 (0x115f) > > linux_brk(0x847d000) =3D 138924032 (0x847d0= 00) > > linux_rt_sigprocmask(0x2,0x0,0xbfbfd114,0x8) =3D 0 (0x0) > > write(8," D@\b\0\0\0\0\M-P\M-Q\M-?\M-?$"...,148) =3D 148 (0x94) > > linux_rt_sigprocmask(0x2,0x0,0xbfbfd080,0x8) > > > > And then it sleeps forever here. >=20 > The linuxulator does not handle the sound stuff in a special way. So =20 > it is either a problem because of a recent change to the soundsystem =20 > (I don't remember one, and we would need the output of "dmesg | grep =20 > pcm" and "cat /dev/sndstat" as a start),=20 $ cat /dev/sndstat=20 FreeBSD Audio Driver (newpcm: 32bit) Installed devices: pcm0: <Intel ICH4 (82801DB)> at io 0xd0000c00, 0xd0000800 irq 9 bufsz 16384 kld snd_ich (1p/1r/2v channels duplex default) $ dmesg | fgrep pcm pcm0: <Intel ICH4 (82801DB)> port 0x1c00-0x1cff,0x18c0-0x18ff mem 0xd0000c00-0xd0000dff,0xd0000800-0xd00008ff irq 9 at device 31.5 on pci0 pcm0: [ITHREAD] pcm0: <Yamaha YMF753 AC97 Codec> $ > or because of a recent change =20 > in some linuxulator code not related to sound. There where several =20 > changes in the linuxulator since Feb, so if you could do a binary =20 > search to nail down the change we could take a look at that change. Ok, I will try to find exact change. > Bye, > Alexander. >=20 --=20 Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1174907630.1213.3.camel>