Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2016 06:53:27 +0100
From:      Polytropon <freebsd@edvax.de>
To:        No Spam <mailinglists@927589452.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Sound Problems [Noob Question]
Message-ID:  <20161111065327.062ddf40.freebsd@edvax.de>
In-Reply-To: <20161110182025.GB1204@bsd.duckdns.org>
References:  <20161108084122.GB1197@bsd.lan> <20161108095743.1b5c46ed.freebsd@edvax.de> <20161108092024.GC1197@bsd.lan> <20161108111024.677bb22e.freebsd@edvax.de> <20161110182025.GB1204@bsd.duckdns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 10 Nov 2016 19:20:25 +0100, No Spam wrote:
> Sorry for the long wait
> On 16-11-08 11:10:24, Polytropon wrote:
> > On Tue, 8 Nov 2016 10:20:24 +0100, No Spam wrote:
> > > On 16-11-08 09:57:43, Polytropon wrote:
> > > > On Tue, 8 Nov 2016 09:41:22 +0100, Jens wrote:
> > > > > Hi Guys,
> > > > >=20
> > > > > the solution to my problem is probably easy but i can't find it.
> > > > >=20
> > > > > The only sound i get from my=20
> > > > >=20
> > > > > \code
> > > > > # uname -a
> > > > >=20
> > > > > FreeBSD bsd.lan 11.0-RELEASE-p1 FreeBSD
> > > > > 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016
> > > > > root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
> > > > > \endcode
> > > > >=20
> > >=20
> > > i was testing audio with differnt userland applications,=20
> > > eg firefox and now again with a root vlcp-player which generates an
> > > audio "artifact" ( a sound rumbling stopping version of what was the
> > > original sound)=20
> >=20
> > Can you test something really simple like "madplay somefile.mp3"
> > or "play someotherfile.wav" (the "play" command is part of the
> > "sox" package)? Just to make sure it isn't related to any more
> > or less complex codec or muxer format?
> play does plain nothing ( no progress )
> vlc does give this output ( while trying all devices):
> jens@bsd:~ % vlc mpthreetest.mp3=20
> VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89)
> [0000000801e61050] core libvlc: VLC wird mit dem Standard-Interface
> ausgef=FChrt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
> [0000000801fd7250] oss audio output error: cannot open OSS device
> /dev/dsp0.p0: Device busy

VLC indicates an access problem with OSS. What if you try
something that does not use OSS for output, for example
"madplay mpthreetest.mp3" or "mpg123 mpthreetest.mp3"?

There are other audio subsystems like EDS and SDL. Do you
have playback when you set VLC to use one of those?



> [000000080ec3cf50] core decoder error: failed to create audio output
> [0000000801fd7250] oss audio output error: cannot open OSS device
> /dev/dsp2.p0: Device busy
> [0000000801fd7250] core audio output error: module not functional
> [000000080ec3cf50] core decoder error: failed to create audio output
> [000000082c836050] mpgatofixed32 audio converter error: libmad error:
> bad main_data_begin pointer
> [000000082c836050] mpgatofixed32 audio converter error: libmad error:
> bad main_data_begin pointer
>=20
> so it is returning sound now,
> just the sound is wrong and when i pause the playback in the sound it
> sticks to it
>=20
> and it only generates sound on the /dev/dsp2.vp0

That is very strange. The error messages show "libmad error" (MP3
decoder library) that probably interfaces with the sound subsystem.
Actually I have never seen this kind of error myself...



> > > > > If you have any ideas what i can try or which configs you need, i=
 will
> > > > > try to answer ASAP.
> > > >=20
> > > > Always check the output of the following commands:
> > > >=20
> > > > 	% dmesg | grep ^pcm
> > > > 	% cat /dev/sndstat
> > > >=20
> > > > Verify that the correct sound driver has successfully been loaded.
> > > >=20
> > > >=20
> > > dmesg is currently not giving any pcm entrys ( because my ath card has
> > > filles the log)=20
> > > will reboot and send that one later
> >=20
> > Relevant lines from other message:
> >=20
> > pcm0: <Realtek (0x0233) (Internal Analog)> at nid 20 and 27 on hdaa0
> > pcm1: <Realtek (0x0233) (Left Analog Headphones)> at nid 33 on hdaa0
> > pcm2: <Intel (0x2882) (HDMI/DP 8ch)> at nid 4 on hdaa1
> >=20
> > The "High Definition Audio" driver should be the right one to deal
> > with that hardware. See "man 4 snd_hda" for possible configuration
> > options.
> >
> i fear i screwed womething up big as this returns
> No manual entry for snd_hda

Maybe you should repair or repeat your installation. That manual
page should be present ("man 4 snd_hda" as well as "man 4 sound").

https://www.freebsd.org/cgi/man.cgi?query=3Dsnd_hda&apropos=3D0&sektion=3D4=
&manpath=3DFreeBSD+11.0-RELEASE&arch=3Ddefault&format=3Dhtml



> > However, you wrote that you see this problem when closing the notebook.
> > FreeBSD's support for suspend/resume and hibernation (whatever applies
> > to your specific setup when closing the lid) sometimes requires to load
> > an additional ACPI kernel module (like for example acpi_ibm.ko), and in
> > other cases, it doesn't work at all. While I've seen this kind of
> > operation working on Linux, the FreeBSD experience is that it often
> > does not work as expected.
> So it seems here is a microphone in the lid which is directly on an
> output
>=20
> where would I search such a thing ?

The easiest way would be to disable it using the mixer. Example:

	% mixer
	Mixer vol      is currently set to  75:75
	Mixer pcm      is currently set to  75:75
	Mixer line     is currently set to   0:0
	Mixer mic      is currently set to   0:0	<--- silence
	Mixer cd       is currently set to   0:0
	Mixer rec      is currently set to   0:0
	Mixer igain    is currently set to   0:0	<--- maybe this
	Mixer monitor  is currently set to   0:0
	Recording source: mic				<--- maybe change that too

See "man mixer" for details.



--=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?20161111065327.062ddf40.freebsd>