Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 May 2014 20:53:33 +0200
From:      Polytropon <freebsd@edvax.de>
To:        =?ISO-8859-1?Q?"Nikolai_Fa=DFbender"?= <niki.fassbender@gmail.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Freebsd10 32bit Lenovo G550 Laptop
Message-ID:  <20140510205333.ac82cdb9.freebsd@edvax.de>
In-Reply-To: <637E56BC-A830-4BC5-9AED-11B2E97D9075@googlemail.com>
References:  <94D84012-499B-4E0B-AA96-83F3D6E010FD@googlemail.com> <CADy1Ce5FKEYu-8Qs98HkAYtxnBTVCXZV3-gbvHLYLNfAhLP7aQ@mail.gmail.com> <075A36A1-0281-498C-A5C8-6DC01E32FA35@googlemail.com> <CAJ-VmonFGhyKgyDzG1T-CjzG4TzJ2xYeK1dLTtTduFM4ir7=yw@mail.gmail.com> <30F56CD6-1AC3-4533-9871-D632769D3FBE@googlemail.com> <CAJ-VmomjqKsdddaX1CKx_bTDj=yc1Xi6Ey_4jxcuYQUjUbDXjA@mail.gmail.com> <52AF644B-8D71-49E4-88E9-E45692411CCC@googlemail.com> <20140510115629.0bcfb89a@X220.alogt.com> <67D60E5F-D440-4E48-841F-B11ADE0208C0@googlemail.com> <20140510133007.67b44965@X220.alogt.com> <637E56BC-A830-4BC5-9AED-11B2E97D9075@googlemail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 10 May 2014 15:20:36 +0200, Nikolai Fa=DFbender wrote:
> I have tested the command in the \boot\loader.conf without a change.

Again, FreeBSD is not "Windows". The path separator is /. :-)

In /boot/loader.conf, try adding

	hw.snd.default_unit=3D"0"

or

	hw.snd.default_unit=3D"1"

But it's easier to run

	# sysctl hw.snd.default_unit=3D0

as root and then check the audio output, for example with
something _simple_, like "mpg123 somefile.mp3" or
"play somefile.wav". Also make sure the mixer is always
set properly (use the "mixer" command), and note there
can be multiple mixers (use "mixer -f /dev/mixer0",
"mixer -f /dev/mixer1" and so on). Even multiple PCM
devices are possible. If you have found the correct
setting, make it permanent by placing it in the file
mentioned.

See "man mixer" for details.

On _some_ Thinkpad models, adding the following lines
to /boot/loader.conf can help:

	hint.hdac.0.cad0.nid25.config=3D"as=3D1 seq=3D15"
	hint.hdac.0.cad0.nid35.config=3D"as=3D2"
	hint.hdac.0.cad0.nid27.config=3D"as=3D2 seq=3D15"

Sadly, this is mostly a "trial & error" approach... ;-)

Maybe some features are documented. Check for example (from
my home system, a cheap Medion PC from Aldi):

	% dmesg | grep hda
	hdac0: <VIA VT8251/8237A High Definition Audio Controller>
		mem 0xbfffc000-0xbfffffff at device 1.0 on pci128
	hdac0: HDA Driver Revision: 20100226_0142
	hdac0: [ITHREAD]
	hdac0: HDA Codec #0: VIA VT1708_8
	pcm0: <HDA VIA VT1708_8 PCM #0 Analog> at cad 0 nid 1 on hdac0
	pcm1: <HDA VIA VT1708_8 PCM #1 Analog> at cad 0 nid 1 on hdac0
	pcm2: <HDA VIA VT1708_8 PCM #2 Digital> at cad 0 nid 1 on hdac

Also check:

	% cat /dev/sndstat
	FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
	Installed devices:
	pcm0: <HDA VIA VT1708_8 PCM #0 Analog> (play/rec) default
	pcm1: <HDA VIA VT1708_8 PCM #1 Analog> (rec)
	pcm2: <HDA VIA VT1708_8 PCM #2 Digital> (play)

You can then conclude that there is more documentation
available at "man snd_hda" and "man pcm". You'll find the
supported devies and the settings you can apply.


--=20
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140510205333.ac82cdb9.freebsd>