Reply
 
Thread Tools Display Modes
  #11  
Old 07-24-2012, 07:17 AM
mav@ mav@ is offline
Junior Member
 
Join Date: May 2010
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default
Options you've added are system- and possibly BIOS-specific. They could be added to the driver, but will help only limited number of people having the same motherboard model. More universal solution probably would be to teach FreeBSD sound subsystem to automatically choose default device based on connection statuses. I am already thinking about implementing it for some time and hopefully will implement it at some point.
Reply With Quote
  #12  
Old 07-24-2012, 09:43 AM
David30 David30 is offline
Senior Member
 
Join Date: Jun 2012
Posts: 325
Thanks: 20
Thanked 28 Times in 27 Posts
Default
mav@ - it would be brilliant if the FreeBSD sound subsystem could automatically choose the default device based on when its connected. The same could hopefully apply when you plug in a microphone, including a USB microphone.

I can't get my USB microphone to work on PC-BSD though. I would be happy to paste more lines of info here if it can help discover why the USB microphone does not work in PC-BSD. I know the microphone itself does actually work.

Last edited by David30; 07-24-2012 at 09:44 AM. Reason: Added missing word.
Reply With Quote
  #13  
Old 07-24-2012, 10:02 AM
mav@ mav@ is offline
Junior Member
 
Join Date: May 2010
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default
There are probably two problems.
First -- is that FreeBSD now supports only one default device for both playback and recording. As result, you can't set pcm4 as default for playback, but pcm7 for recording. You have to set it in each application separately. That is the biggest problem I see now for implementing automatic switching of default device.
Second -- you've told that choosing pcm7 manually doesn't makes USB mic work. If (I suppose) it was not result of not working playback during the test, then problem is probably in snd_uaudio driver and specific mic model. Unluckily I am now very good in its internals and can't say what can be wrong there.
Reply With Quote
  #14  
Old 07-24-2012, 02:38 PM
David30 David30 is offline
Senior Member
 
Join Date: Jun 2012
Posts: 325
Thanks: 20
Thanked 28 Times in 27 Posts
Default
Originally Posted by mav@ View Post
Second -- you've told that choosing pcm7 manually doesn't makes USB mic work. If (I suppose) it was not result of not working playback during the test, then problem is probably in snd_uaudio driver and specific mic model. Unluckily I am now very good in its internals and can't say what can be wrong there.
If I plug in the USB microphone and then change the Sound Configuration to pcm7, I can still use the speakers or headphones for playback on the fly, while pcm7 is applied. It's only the USB microphone that is not being picked up by apps like Audacity and Sound Recorder (in GNOME).

I've attached a screenshot. Note the pcm7 mode only appears if I connect the USB microphone before opening the Sound Configuration.
Attached Images:
Reply With Quote
  #15  
Old 07-26-2012, 01:51 PM
David30 David30 is offline
Senior Member
 
Join Date: Jun 2012
Posts: 325
Thanks: 20
Thanked 28 Times in 27 Posts
Default
Going into the Terminal (in GNOME) and typing mixer showed that the volume for the connected USB microphone had been set to zero! Why on Earth would a sound recording or playback device be set to zero by default?

Turning the sound up to 100 for the microphone (using mixer) has got it working. Microphones don't seem to record well unless the volume is at 100 for a microphone, in my experience of using Skype and doing sound recording with computers.

I would suggest two ideas:

1. Whenever a sound device is plugged in (headphones, speakers, microphone etc) it becomes usable immediately to any sound app; no need to make a sound device the "default" or "enable" it first.

2. Playback and recording devices not set to zero volume.

Why not use a series of vertical GUI "sliders" for setting the sound volume of every sound device, accessible from the Control Panel?
Reply With Quote
  #16  
Old 09-30-2012, 10:42 PM
KlaymenDK KlaymenDK is offline
Junior Member
 
Join Date: Sep 2008
Posts: 22
Thanks: 3
Thanked 0 Times in 0 Posts
Default
Originally Posted by mav@ View Post
First -- is that FreeBSD now supports only one default device for both playback and recording. As result, you can't set pcm4 as default for playback, but pcm7 for recording. You have to set it in each application separately. That is the biggest problem I see now for implementing automatic switching of default device.
mav@, you seem to really know your stuff. A follow-up question based on the above statement:
My setup is such that I'm using the rear-end surround-sound jacks for output, but sound input is from my Logitech USB webcam. Can FreeBSD support such a setup? Or, do I need to provide an actual mic at some appropriate rear-end jack?

PS. On my previous Linux OS, this (rear out, usb in) worked fine, mostly. On the PCBSDv9.1RC1 that I've just installed, I'm struggling with getting any sound output at all. I'm still trying to figure out how to fix it, but if you will answer the above question in the negative, I might as well stop trying. (Hope is still alive!)
Reply With Quote
  #17  
Old 10-01-2012, 08:22 AM
mav@ mav@ is offline
Junior Member
 
Join Date: May 2010
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Default
As I have written above, you can't set different system-wide default devices for playback and recording. But in many cases it is possible to select specific devices in specific applications settings. For example, Skype can be set to record from different mic.
Reply With Quote
The Following User Says Thank You to mav@ For This Useful Post:
KlaymenDK (10-01-2012)
  #18  
Old 10-01-2012, 01:42 PM
KlaymenDK KlaymenDK is offline
Junior Member
 
Join Date: Sep 2008
Posts: 22
Thanks: 3
Thanked 0 Times in 0 Posts
Default
I am also impressed by your quick replies. I will suppose that Skype will be able to command its own audio input (unless proven otherwise).

I shall now do my best to get sound working at all on this machine, but I expect I will be posting back (probably most appropriately in a different thread).
Reply With Quote
  #19  
Old 11-07-2012, 02:21 AM
riberto riberto is offline
Junior Member
 
Join Date: Nov 2011
Location: Miami, Florida USA
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default same sound challenge here....
I am having the very same issue with my fresh PCBSD9 install on a Panasonic Toughbook CF-52.
(I only get sound when I plug in and use my headphones. LAPTOP speakers remain silent.)
I read the posts above and even tried to apply the same fix without success.

I am including the stats for my machine in the hope you can help me.

[riberto@mango] ~> dmesg | grep hda
hdac0: <Intel 5 Series/3400 Series High Definition Audio Controller> mem
0xeb120000-0xeb123fff irq 22 at device 27.0 on pci0
hdac0: HDA Codec #0: Conexant CX20584
hdac0: HDA Codec #3: Intel Ibex Peak HDMI
pcm0: <HDA Conexant CX20584 PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Conexant CX20584 PCM #1 Analog> at cad 0 nid 1 on hdac0
pcm2: <HDA Intel Ibex Peak HDMI PCM #0 DisplayPort> at cad 3 nid 1 on
hdac0

[riberto@mango] ~> cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <HDA Conexant CX20584 PCM #0 Analog> (play/rec) default
pcm1: <HDA Conexant CX20584 PCM #1 Analog> (play)
pcm2: <HDA Intel Ibex Peak HDMI PCM #0 DisplayPort> (play)
[riberto@mango] ~>


THANK YOU!

Rr
Reply With Quote
Reply

Tags
sound microphone

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:31 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.