Opened 4 years ago

Closed 4 years ago

#255 closed System Defect (fixed)

Duplicate Sound Devices Detected...Sound Not Working

Reported by: fitzlt Owned by:
Priority: major Milestone: 8.0
Component: System Configuration Version: 8.0-RC2
Keywords: Sound, Multimedia, Audio Cc: trac-bugs@…, anyedge@…

Description

Typing "dmesg | grep pcm" in konsole shows there are three sets of the same sound card according to PCBSD. KMixer shows two sets of "OSS Audio" tabs available--both with "Front" and "PCM" slide bars. I can individually set the settings for each "OSS Audio" tab, but there is still no sound. Sound was available during the PCBSD7 series.

Attachments (1)

Audio Problem (927 bytes) - added by fitzlt 4 years ago.
Some additional info. Saved in UTF-8.

Download all attachments as: .zip

Change History (10)

Changed 4 years ago by fitzlt

Some additional info. Saved in UTF-8.

comment:1 Changed 4 years ago by kris

Looks like its getting confused between the HDMI audio and regular analog:

pcm0: <HDA Realtek ALC268 PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA NVidia MCP78 HDMI PCM #0 Digital> at cad 3 nid 1 on hdac0

If you do "cat /dev/sndstat" can you send the output?

Also, do you have a separate physical sound-card, or is this an on-board card with a nvidia video card?

If we can't disable one of the devices, we may just need to put something in /etc/sysctl.conf:

(from "man snd")

hw.snd.default_unit

Default sound card for systems with multiple sound cards. When
using devfs(5), the default device for /dev/dsp. Equivalent to a
symlink from /dev/dsp to /dev/dsp${hw.snd.default_unit}.

So maybe give hw.snd.default_unit="0" a shot in sysctl.conf and reboot. Any improvement?

comment:2 Changed 4 years ago by nu2pcbsd

I too have noticed the same. But I do get sound. I have onboard sound. Another issue is that I have to turn to volume really high (on both the mixer and my speaker volume control) to get to hear anything.

comment:3 Changed 4 years ago by fitzlt

  • Cc anyedge@… added

I apologize for the late response, I responded to the email I received on this ticket--it never even occurred to me to respond here until I got a delivery error on the email(I'm kind of new to bug reporting).

When I "cat /dev/sndstat", I get this:

root@pcbsd-2939# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <HDA Realtek ALC268 PCM #0 Analog> at cad 0 nid 1 on hdac0 kld
snd_hda [MPSAFE] (1p:4v/1r:4v channels duplex default)
pcm1: <HDA NVidia MCP78 HDMI PCM #0 Digital> at cad 3 nid 1 on hdac0
kld snd_hda [MPSAFE] (1p:2v/0r:0v channels simplex)


My computer is a Sager NP2096 laptop. It has an onboard Realtek
ALC268 with a separate nVidia GeForce? 9600M GT video card.

I went into /etc/sysctl.conf and hw.snd.default_unit was set to 1 and
commented out. First I removed the comment and rebooted.

I played with the volume settings and any changes to volume affected
the duplicate mixers as well(normally they are set individually).
Still no sound.

I then changed hw.snd.default_unit to 0 and rebooted. Mixers were
back to individual settings, but still no sound.

Please let me know if there is anything else I can do. Thank you for your help.

comment:4 Changed 4 years ago by kris

Here's something interesting from the snd_hda manpage (the driver for your card)

A few Hardware/OEM vendors tend to screw up BIOS settings, thus rendering
the snd_hda driver useless, which usually results in a state where the
snd_hda driver seems to attach and work, but without any sound. Some of
that cases can be solved by tuning loader.conf variables. But before try-
ing to fix problem that way, make sure that problem is really exists and
the PCM audio device you are using really corresponds to expected audio
connector.

A friend of mine has a newer laptop, and we ran into an issue like this. What we found was that the headphone jack was active, and plugging into that resulted in working sound (via the headphones) According to the manpage (man snd_hda) there are some configuration options which can be used to re-assign the pin / port configuration to default to the speakers, but it may vary from system to system :(

Can you check the headphone jack, see if we have sound there? If so, it may be worthwhile to send a message over to freebsd-multimedia below, since thats where most of the sound developers hang out, and they may have some suggestions on changing the pin configuration via the software:

http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia

comment:5 Changed 4 years ago by fitzlt

Unfortunately, I can tell you offhand that the headphone jack is not producing any sound either. I will check with the multimedia devs and see what they have to say. I will report any findings back here as soon as possible. Thanks.

comment:6 Changed 4 years ago by fitzlt

There are two bug reports related to this problem at http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The two report numbers are 143505 and 143715. So far, it does not look like they have been resolved. I do have a question.

root@pcbsd-8111# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <HDA Realtek ALC268 PCM #0 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:5v/1r:4v channels duplex default)
pcm1: <HDA NVidia MCP78 HDMI PCM #0 Digital> at cad 3 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:2v/0r:0v channels simplex)

This is showing that I am using the 32bit pcm driver, but I am running the amd64 version of PCBSD. According to 143505, the 64-bit driver seems to not work either. If, however, it IS possible that my sound is an error due to the driver type--how would I install the 64-bit version(or is that even advisable)? Thanks again.

comment:7 Changed 4 years ago by kris

Sounds like some of these issues are getting reported to the sound devs, which will help get them fixed for 8.1.

As for 32/64bit, I'm not sure if the "newpcm: 32bit" section you are seeing there is indicating that its a 32bit driver, or rather its indicating your card supports 32bit sound-quality, like some support 16bit, 24bit, etc. All the drivers on the amd64 version are 64bit native compiled, so I think its the latter case.

comment:8 Changed 4 years ago by fitzlt

Great news! Someone found a solution to my problem. Check here in the PCBSD forums: http://forums.pcbsd.org/viewtopic.php?f=26&t=15172&p=85659#p85659. Typing "mixer" in a terminal brings up this:

[lawrence@pcbsd-8111]/home/lawrence(52)% mixer
Mixer vol is currently set to 100:100
Mixer pcm is currently set to 100:100
Mixer speaker is currently set to 75:75
Mixer mic is currently set to 75:75
Mixer rec is currently set to 75:75
Mixer ogain is currently set to 0:0
Mixer monitor is currently set to 75:75
Recording source: mic

Apparently, mixer ogain(whatever that is) is set to 0 by default. Typing "mixer ogain 100:100" set the value to 100 and I now have full sound. This also seems to have worked for several other people. I will notify the FreeBSD-multimedia devs so maybe in 8.1 ogain will be set a value other than 0 by default. Thanks again for everyone's help.

comment:9 Changed 4 years ago by kris

  • Resolution set to fixed
  • Status changed from new to closed

Great! Hopefully the multimedia devs can get that adjusted for 8.1. I'll mark this closed then :)

Note: See TracTickets for help on using tickets.