Re: Quick question about sound drivers (esp. snd_hda)

2011-03-12 Thread Bruce Cran
On Fri, 11 Mar 2011 15:29:44 -0500
Brian Waters brianmwat...@gmail.com wrote:

 It seems to me that under /dev, you can have the following
 sound-related device files:
 
 dspX
 dspX.Y
 (among others)
 
 I'm having some trouble getting my sound to work (Dell Inspiron
 E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the
 manpages for snd and snd_hda (which is the appropriate driver), and
 increased the verbosity of the drivers and read the kernel log and
 /dev/sndstat, but I still can't quite wrap my head around everything.

If the driver appears to load, then /dev/dsp should be created
automatically when something tries to access it (e.g. cat /dev/random
 /dev/dsp).

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Quick question about sound drivers (esp. snd_hda)

2011-03-12 Thread Chris Rees
On 12 March 2011 08:34, Bruce Cran br...@cran.org.uk wrote:
 On Fri, 11 Mar 2011 15:29:44 -0500
 Brian Waters brianmwat...@gmail.com wrote:

 It seems to me that under /dev, you can have the following
 sound-related device files:

 dspX
 dspX.Y
 (among others)

 I'm having some trouble getting my sound to work (Dell Inspiron
 E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the
 manpages for snd and snd_hda (which is the appropriate driver), and
 increased the verbosity of the drivers and read the kernel log and
 /dev/sndstat, but I still can't quite wrap my head around everything.

 If the driver appears to load, then /dev/dsp should be created
 automatically when something tries to access it (e.g. cat /dev/random
 /dev/dsp).


An important point that I had trouble with recently; the dsp* files don't
appear until they are read/written to!

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Quick question about sound drivers (esp. snd_hda)

2011-03-11 Thread Frank Shute
On Fri, Mar 11, 2011 at 03:29:44PM -0500, Brian Waters wrote:

 It seems to me that under /dev, you can have the following
 sound-related device files:
 
 dspX
 dspX.Y
 (among others)
 
 I'm having some trouble getting my sound to work (Dell Inspiron
 E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the
 manpages for snd and snd_hda (which is the appropriate driver), and
 increased the verbosity of the drivers and read the kernel log and
 /dev/sndstat, but I still can't quite wrap my head around everything.
 
 What I'm wondering is: what exactly is the meaning of X and Y above?
 I'm assuming that X comes from the association numbers in the
 snd_hda driver, but I could be wrong. Please correct me!
 
 Thanks,
 Brian Waters

Have you tried setting the default unit:

# sysctl hw.snd.default_unit=1

If that works, you can make it permanent with:

# echo hw.snd.default_unit=1  /etc/sysctl.conf

If it doesn't, you have to post the output of:

$ cat /dev/sndstat

Make sure your volume is turned up: mixer(8)

HTH.

Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




pgpzIsMzeo4UM.pgp
Description: PGP signature


Re: Quick question about sound drivers (esp. snd_hda)

2011-03-11 Thread Brian Waters
Yeah, I have tried all the basic stuff.

At this point, I've basically accepted that solving the problem on my
machine is going to involve a whole bunch of technical stuff that I
don't have the patience for - reading the HDA spec and the codec
datasheet, reading the driver code, and making changes to the driver
and default settings where necessary. (The hardware does work fine
with the Linux kernel.)

So yeah... that's probably never going to happen. I'm still wondering
where the numbers in the names for the device special files come from.

And thanks, Frank.

- BW



On Fri, Mar 11, 2011 at 6:31 PM, Frank Shute fr...@shute.org.uk wrote:
 On Fri, Mar 11, 2011 at 03:29:44PM -0500, Brian Waters wrote:

 It seems to me that under /dev, you can have the following
 sound-related device files:

 dspX
 dspX.Y
 (among others)

 I'm having some trouble getting my sound to work (Dell Inspiron
 E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the
 manpages for snd and snd_hda (which is the appropriate driver), and
 increased the verbosity of the drivers and read the kernel log and
 /dev/sndstat, but I still can't quite wrap my head around everything.

 What I'm wondering is: what exactly is the meaning of X and Y above?
 I'm assuming that X comes from the association numbers in the
 snd_hda driver, but I could be wrong. Please correct me!

 Thanks,
 Brian Waters

 Have you tried setting the default unit:

 # sysctl hw.snd.default_unit=1

 If that works, you can make it permanent with:

 # echo hw.snd.default_unit=1  /etc/sysctl.conf

 If it doesn't, you have to post the output of:

 $ cat /dev/sndstat

 Make sure your volume is turned up: mixer(8)

 HTH.

 Regards,

 --

  Frank

  Contact info: http://www.shute.org.uk/misc/contact.html



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Quick question about sound drivers (esp. snd_hda)

2011-03-11 Thread Erich Dollansky
Hi,

On Saturday 12 March 2011 04:29:44 Brian Waters wrote:
 It seems to me that under /dev, you can have the following
 sound-related device files:
 
 dspX
 dspX.Y
 (among others)
 
this is what you see after your driver is loaded. You might have to tell an 
application which one to use.

 I'm having some trouble getting my sound to work (Dell Inspiron
 E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the
 manpages for snd and snd_hda (which is the appropriate driver), and
 increased the verbosity of the drivers and read the kernel log and
 /dev/sndstat, but I still can't quite wrap my head around everything.
 
I have different hardware but I use the same driver. I did not compile it into 
the kernel after getting into trouble. Since I load it with:

kldload snd_hda

it works as expected. If trouble come up, I kick it our and reload it.

 What I'm wondering is: what exactly is the meaning of X and Y above?
 I'm assuming that X comes from the association numbers in the
 snd_hda driver, but I could be wrong. Please correct me!
 
I do not really know but I have had to tell vlc which to use.

Erich
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Quick question about sound drivers (esp. snd_hda)

2011-03-11 Thread Bernt Hansson

2011-03-11 21:29, Brian Waters:

It seems to me that under /dev, you can have the following
sound-related device files:

dspX
dspX.Y
(among others)

I'm having some trouble getting my sound to work (Dell Inspiron
E1705/Inspiron 9400 with Sigmatel STAC9220 codec). I've read the
manpages for snd and snd_hda (which is the appropriate driver), and
increased the verbosity of the drivers and read the kernel log and
/dev/sndstat, but I still can't quite wrap my head around everything.

What I'm wondering is: what exactly is the meaning of X and Y above?
I'm assuming that X comes from the association numbers in the
snd_hda driver, but I could be wrong. Please correct me!


This is what I think.

dsp0.0 is the first device on the first bus and so on.


%ls -l /dev/ds*
crw-rw-rw-  1 root  wheel0, 155 11 Mar 19:16 /dev/dsp0.0
crw-rw-rw-  1 root  wheel0, 148  9 Mar 11:16 /dev/dsp1.0
crw-rw-rw-  1 root  wheel0, 146  9 Mar 11:16 /dev/dsp2.0
crw-rw-rw-  1 root  wheel0, 121  9 Mar 11:16 /dev/dsp3.0

%cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: HDA Realtek ALC888 PCM #0 Analog (play/rec) default
pcm1: HDA Realtek ALC888 PCM #1 Analog (play/rec)
pcm2: HDA Realtek ALC888 PCM #2 Digital (play/rec)
pcm3: HDA ATI R6xx HDMI PCM #0 HDMI (play)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org