Re: Quick question about sound drivers (esp. snd_hda)
On 12 March 2011 08:34, Bruce Cran wrote: > On Fri, 11 Mar 2011 15:29:44 -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. > > 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)
On Fri, 11 Mar 2011 15:29:44 -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. 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-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: (play/rec) default pcm1: (play/rec) pcm2: (play/rec) pcm3: (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"
Re: Quick question about sound drivers (esp. snd_hda)
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)
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 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)
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
Quick question about sound drivers (esp. snd_hda)
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 ___ 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"