Re: Using a C310 Logitech webcam mic with internal speakers

2020-04-23 Thread Alexandre Ratchov
On Thu, Apr 23, 2020 at 10:01:52AM -0400, Jon Fineman wrote:
> On 2020-04-23 08:40, Alexandre Ratchov wrote:
> > On Wed, Apr 22, 2020 at 02:17:35PM +, Jon Fineman wrote:
> > > 
> > > Is there a way to set the mic to one channel and the speakers to
> > > another? Or merge the speakers from channel rsnd/0 and rsnd/1
> > > together and have them output on rsnd/0?
> > 
> > Sorry, two devices can't be combined into a single one on OpenBSD.
> > 
> 
> What started me down this path was that I can't get chromium or firefox to
> recognize the webcam if it is using rsnd/1. Changing it to rsnd/0 allowed
> the browsers to see it.
> 
> Am I doing something wrong with configuring things? I am on 6.7
> GENERIC.MP#128 amd64.
> 
> If the browser recognizes the webcam on rsnd/1 I could then get a combo
> headphone and mic and plug that into rsnd/0, assuming the browser will
> recognize the audio on rsnd/0.
> 

The c310 has two devices inside a webcam and a usb microphone.

The webcam is a video(4) device and can be used for video capture no
matter if the microphone is used or not. For video(4) devices to work,
/dev/video0 permissions need to be adjusted.

Currently browsers need a full-duplex audio device for telephony
web-sites, so the webcam microphone won't work for them, sorry.

Note that the "rsnd/N" you're refering to were disabled to regular
users recently, but that's not related your problem.



Re: Using a C310 Logitech webcam mic with internal speakers

2020-04-23 Thread Jon Fineman

On 2020-04-23 08:40, Alexandre Ratchov wrote:

On Wed, Apr 22, 2020 at 02:17:35PM +, Jon Fineman wrote:


Is there a way to set the mic to one channel and the speakers to
another? Or merge the speakers from channel rsnd/0 and rsnd/1
together and have them output on rsnd/0?


Sorry, two devices can't be combined into a single one on OpenBSD.



What started me down this path was that I can't get chromium or firefox 
to recognize the webcam if it is using rsnd/1. Changing it to rsnd/0 
allowed the browsers to see it.


Am I doing something wrong with configuring things? I am on 6.7 
GENERIC.MP#128 amd64.


If the browser recognizes the webcam on rsnd/1 I could then get a combo 
headphone and mic and plug that into rsnd/0, assuming the browser will 
recognize the audio on rsnd/0.




Re: Using a C310 Logitech webcam mic with internal speakers

2020-04-23 Thread Alexandre Ratchov
On Wed, Apr 22, 2020 at 02:17:35PM +, Jon Fineman wrote:
>
> Is there a way to set the mic to one channel and the speakers to
> another? Or merge the speakers from channel rsnd/0 and rsnd/1
> together and have them output on rsnd/0?

Sorry, two devices can't be combined into a single one on OpenBSD.



Using a C310 Logitech webcam mic with internal speakers

2020-04-22 Thread Jon Fineman
I would like to use my webcam and its built in mic with my headphones plugged 
into the internal audio of my NUC. I don't have a combo headphones + mic.

The C310 mic is on rsnd/1. When I change the default to this my speakers on 
rsnd/0 don't work as they get set to the C310, which doesn't have any speakers.

Is there a way to set the mic to one channel and the speakers to another? Or 
merge the speakers from channel rsnd/0 and rsnd/1 together and have them output 
on rsnd/0?

Thanks.

The DMESG snipit:
uhub1 at uhub0 port 3 configuration 1 interface 0 "VIA Labs, Inc. USB2.0 Hub" 
rev 2.10/b.e0 addr 2
uvideo0 at uhub1 port 1 configuration 1 interface 0 "Logitech Webcam C310" rev 
2.00/0.12 addr 3
video0 at uvideo0

uaudio0 at uhub1 port 1 configuration 1 interface 3 "Logitech Webcam C310" rev 
2.00/0.12 addr 3
uaudio0: class v1, high-speed, sync, channels: 0 play, 1 rec, 2 ctls
audio1 at uaudio0

"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Realtek/0x0283, Intel/0x2809, using Realtek/0x0283
audio0 at azalia0