3 devices in /dev/sndstat

Julian H. Stacey jhs at berklix.com
Sat Aug 21 15:40:31 UTC 2010


Wes Morgan wrote:
> On Sat, 21 Aug 2010, Julian H. Stacey wrote:
> 
> > > Did you try to select another default unit as per SOUND(4)?
> > > # sysctl hw.snd.default_unit=1
> >
> > Thanks Boris :-) I got some sound working after man 4 sound & fixed some
> > mistakes
> > 	Modules not matching kernel,
> > 	Wrong driver in loader.conf,
> > These still fail:
> >    xcdplayer				# Fails from CDs in DVD drive
> >    cdcontrol -f /dev/acd0 play 1	# Fails
> > But these work:
> >    ksmp3play file_from_disc.mp3		# Plays OK from hard disc
> >    vlc /cdrom       			# Plays OK from DVD
> > Anyone got a clue why ?
> 
> cdcontrol plays the audio through the CD player's own audio out port that
> must connect to an input of your sound device, while vlc is probably
> reading the digital audio directly from the disc and playing that.

Thanks Wes,

Here's a diff so others dont't get caught.  Are errors before I send-pr it ?
-------------
http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.sbin/cdcontrol/cdcontrol.1.REL=8.1-RELEASE.diff

Doc team: Please feel free to change my .rof syntax to your man macro style.

*** 8.1-RELEASE/src/usr.sbin/cdcontrol/cdcontrol.1	Sat Aug 21 13:37:53 2010
--- new/src/usr.sbin/cdcontrol/cdcontrol.1	Sat Aug 21 16:38:03 2010
***************
*** 220,222 ****
--- 220,257 ----
  .An Jean-Marc Zucconi
  .An Andrey A. Chernov
  .An Serge V. Vakulenko
+ .Sh LIMITATION
+ To deliver audio,
+ .Nm
+ needs a screened 3 or 4 wire audio cable from the cdrom drive Audio
+ Out 4 pin socket, to the sound card or main board, 3 or 4 pin socket,
+ labelled "CD_IN"
+ .\" (eg on a Gigabyte EG31MF-S2_ver_2.0 main board).
+ .br
+ Some DVD players
+ .\" (eg HL-DT-STDVD-RAM GH22NP20)
+ have a 4 pin audio socket, but state in their manual it is not supported.
+ .br
+ In such cases:
+ .in +2
+ .ti -2
+ -
+ .Nm
+ will not produce audio (despite being the first command
+ reccomended by
+ http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html
+ .\"	Which also needs to be patched with a send-pr.
+ ):
+ .ti -2
+ - /usr/ports/audio/\fBxcdplayer\fR\" & others presumably
+ will also not produce audio.
+ .ti -2
+ - For digital audio via IDE cable, these work: /usr/ports/multimedia/
+ {\fBmplayer, vlc, xine\fR}.
+ .in -2
+ .\" Refs (FYI, strip pre commit):
+ .\"		test host: FreeBSD-8.1-RELEASE amd64, device "snd_hda"
+ .\"		multimedia@@@freebsd.org Aug 2010
+ .\"			Subject: Re: 3 devices in /dev/sndstat
+ .\"		"Julian H. Stacey"	<jhs@@@berklix.com>
+ .\"		"Boris Samorodov"	<bsam@@@ipt.ru>
+ .\"		"Wes Morgan"		<morganw@@@chemikals.org>
-------------

Cheers,
Julian
-- 
Julian Stacey: BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
 Mail plain text,  Not HTML, quoted-printable & base 64 dumped with spam.
	Avoid top posting, It cripples itemised cumulative responses.


More information about the freebsd-multimedia mailing list