RE: pcm driver and DEVFS

2001-02-03 Thread Yoshihiro Koya

Hello,

Thank you for advices.  Now I obtain same environment as of pre-devfs days.

From: Alex Kapranoff [EMAIL PROTECTED]
Date: Fri, 2 Feb 2001 15:29:09 +0300

   Yep. I have these in my /etc/rc.devfs:
 =
 ln -fs /dev/audio1.0 /dev/audio
 ln -fs /dev/dsp1.0 /dev/dsp
 ln -fs /dev/mixer1 /dev/mixer
 =
 
 This produces almost exactly same environment both with DEVFS and without.

I tried this solusion. Everything around sound drivers works.
But, the another solution

From: John Baldwin [EMAIL PROTECTED]
Date: Fri, 02 Feb 2001 11:33:34 -0800 (PST)

 Add 'hw.snd.unit=1' to /boot/loader.conf.

also works fine.  The links suggested by the above also created
automatically.  In order to examin this, I commented out the lines
looks like:

 ln -fs /dev/audio1.0 /dev/audio
 ln -fs /dev/dsp1.0 /dev/dsp
 ln -fs /dev/mixer1 /dev/mixer

and reboot the system, I found actually /dev/dsp, /dev/audio and so
on.

Finally, please let me point out that there are no description about 
hw.snd.unit MIB in sysctl(8) manpage yet.

Thanks!!

koya


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: pcm driver and DEVFS

2001-02-02 Thread Alex Kapranoff

On Fri, Feb 02, 2001 at 04:11:29PM +0900, Yoshihiro Koya wrote:
 Hello,
 
 I did make world a couple days ago.  The system was built from cvsup'd 
 source on Jan 30:
 --
  elf make world started on Tue Jan 30 06:23:38 JST 2001
 --
 
 The system uses DEVFS. But I have some issue around sound drivers.
 I usually use mpg123(Version 0.59r (1999/Jun/15))
 or x11amp(version 0.8).  Before using DEVFS, I was able to adjust
 sound volume in the sophisticated manner.
 But, after installing DEVFS, I wasnt adjust sound volume.
 It might be difficult to run x11amp with DEVFS.
 On the other hand, mpg123 works. But, its sound is too loud.
 
 Added to this, before install DEVFS, I found /dev/dsp1 or /dev/dsp0 
 in /dev.  But I only found the different kind of files:
 
 % ls /dev
[skip]
 The files /dev/dsp1.0 and /dev/dsp1.1 are new to me.  Of course,
 I tried to do
 % x11amp -e /dev/dsp1.0
 % x11amp -e /dev/dsp1.1
 % x11amp -e /dev/dspW1.0
 % x11amp -e /dev/dspW1.1
 But in vain.
 
 Does some have solution or suggestion?

  Yep. I have these in my /etc/rc.devfs:
=
ln -fs /dev/audio1.0 /dev/audio
ln -fs /dev/dsp1.0 /dev/dsp
ln -fs /dev/mixer1 /dev/mixer
=

This produces almost exactly same environment both with DEVFS and without.

-- 
Alex Kapranoff,  Voice: +7(0832)791845
We've lived 32 days in the brand new millenium...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: pcm driver and DEVFS

2001-02-02 Thread John Baldwin


On 02-Feb-01 Yoshihiro Koya wrote:
 Hello,
 
 I did make world a couple days ago.  The system was built from cvsup'd 
 source on Jan 30:
--
 elf make world started on Tue Jan 30 06:23:38 JST 2001
--
 
 The system uses DEVFS. But I have some issue around sound drivers.
 I usually use mpg123(Version 0.59r (1999/Jun/15))
 or x11amp(version 0.8).  Before using DEVFS, I was able to adjust
 sound volume in the sophisticated manner.
 But, after installing DEVFS, I wasnt adjust sound volume.
 It might be difficult to run x11amp with DEVFS.
 On the other hand, mpg123 works. But, its sound is too loud.
 
 Added to this, before install DEVFS, I found /dev/dsp1 or /dev/dsp0 
 in /dev.  But I only found the different kind of files:
 
 % ls /dev
 acd0a   cuala0  ptyp0   ttyv3
 acd0c   dsp1.0  ptyp1   ttyv4
 ad0 dsp1.1  random  ttyv5
 ad0s1g  dspW1.0 sndstat ttyv6
 ad0s2a  dspW1.1 stderr@ ttyv7
 ad0s2b  fd/ stdin@  ttyv8
 ad0s2e  fd0 stdout@ ttyv9
 ad0s2f  io  sysmousettyva
 apm kbd0tty ttyvb
 apmctl  klogttyd0   ttyvc
 audio1.0kmemttyid0  ttyvd
 audio1.1log@ttyld0  ttyve
 bpsm0   mem ttyp0   ttyvf
 console mixer1  ttyp1   tun0
 consolectl  nullttyv0   urandom
 cuaa0   pci ttyv1   vga@
 cuaia0  psm0ttyv2   zero
 
 The files /dev/dsp1.0 and /dev/dsp1.1 are new to me.  Of course,
 I tried to do
 % x11amp -e /dev/dsp1.0
 % x11amp -e /dev/dsp1.1
 % x11amp -e /dev/dspW1.0
 % x11amp -e /dev/dspW1.1
 But in vain.
 
 Does some have solution or suggestion?

Add 'hw.snd.unit=1' to /boot/loader.conf.

-- 

John Baldwin [EMAIL PROTECTED] -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: pcm driver and DEVFS

2001-02-02 Thread Brian Somers

 On Fri, Feb 02, 2001 at 04:11:29PM +0900, Yoshihiro Koya wrote:
  Hello,
  
  I did make world a couple days ago.  The system was built from cvsup'd 
  source on Jan 30:
  --
   elf make world started on Tue Jan 30 06:23:38 JST 2001
  --
  
  The system uses DEVFS. But I have some issue around sound drivers.
  I usually use mpg123(Version 0.59r (1999/Jun/15))
  or x11amp(version 0.8).  Before using DEVFS, I was able to adjust
  sound volume in the sophisticated manner.
  But, after installing DEVFS, I wasnt adjust sound volume.
  It might be difficult to run x11amp with DEVFS.
  On the other hand, mpg123 works. But, its sound is too loud.
  
  Added to this, before install DEVFS, I found /dev/dsp1 or /dev/dsp0 
  in /dev.  But I only found the different kind of files:
  
  % ls /dev
 [skip]
  The files /dev/dsp1.0 and /dev/dsp1.1 are new to me.  Of course,
  I tried to do
  % x11amp -e /dev/dsp1.0
  % x11amp -e /dev/dsp1.1
  % x11amp -e /dev/dspW1.0
  % x11amp -e /dev/dspW1.1
  But in vain.
  
  Does some have solution or suggestion?
 
   Yep. I have these in my /etc/rc.devfs:
 =
 ln -fs /dev/audio1.0 /dev/audio
 ln -fs /dev/dsp1.0 /dev/dsp
 ln -fs /dev/mixer1 /dev/mixer
 =
 
 This produces almost exactly same environment both with DEVFS and without.

Strange.  I have a stock rc.devfs and get the above links too :-)

$ cd /sys/dev/sounds/pcm
$ fgrep make_dev_alias *.c
sound.c:dsp = make_dev_alias(pdev, "dsp");
sound.c:dspW = make_dev_alias(pdev, "dspW");
sound.c:audio = make_dev_alias(pdev, "audio");
sound.c:mixer = make_dev_alias(pdev, "mixer");

 -- 
 Alex Kapranoff,  Voice: +7(0832)791845
 We've lived 32 days in the brand new millenium...

-- 
Brian [EMAIL PROTECTED]brian@[uk.]FreeBSD.org
  http://www.Awfulhak.org   brian@[uk.]OpenBSD.org
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message