|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Supported sound cards
I use Intel Corporation Comet Lake PCH cAVS as my sound device, but I can't make it work on OpenBSD, on FreeBSD works well. On Linux it use sof driver.
|
|
|||
If these sound cards are configured, can I use them bc they're supported? Where to select the default sound unit? In FreeBSD it was set to 0 that was invalid for me, maybe at OpenBSD it also was invalid.
|
|
||||
The NVIDIA /dev/audio0 device is your default sound card. Your Intel sound card is at /dev/audio1, and is not default. You should be able to provision the use of /dev/audio1 through sndio(7)-aware applications.
The sndio(7) man page states that the raw device descriptor for /dev/audio1 is "rsnd/1". It is implied that the block device descriptor is "snd/1". As described in the sndio(7) man page, applications will look for the environment variable AUDIODEVICE and if not provisioned, will attempt to connect with "snd/default" then "rsnd/0". So try setting this environment variable to "snd/1" and see if aucat(1) will output sound, or, use aucat with "-f snd/1" without the environment variable.. The mixerctl(8) application is for settings outside of sndio(8), and you can review settings and make changes if you use the -F option with /dev/audioctl1. --- I have used a USB attached sound device for recording, and it attached as /dev/audio1. After connecting the device I would configure the device to my preferred 60% input level with $ sndioctl -f snd/1 input.level=0.6 .
|
|
|||
It works, but how do I automatically set AUDIODEVICE to "snd/1" for every user and any shell?
|
|
||||
It's an environment variable.
|
|
|||
I have added `export AUDIODEVICE="snd/1"` to the ~/.xsession, but output of `echo $AUDIODEVICE` executed from a terminal emulator in my X11 session is blank.
|
|
||||
It works for me:
Code:
$ grep export .xsession export LC_CTYPE="en_US.UTF-8" x220-josh:~> echo $LC_CTYPE en_US.UTF-8 $
|
|
|||
Code:
export AUDIODEVICE=snd/1 & picom --daemon & i3 |
|
||||
I use i3wm also. But my last line in my .xsession script uses exec:
Code:
exec i3 Code:
exec [command [arg ...]] Replace the shell with command (and any optional arguments), without creating a new process.... |
|
|||
Quote:
Code:
export AUDIODEVICE="snd/1" & exec i3 |
|
|||
Removed. The variable is now "snd/1", thank you.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UBS WI-FI CARDS for OpenBSD. Any recomendations? | Nureo | OpenBSD General | 9 | 25th June 2016 07:37 PM |
AMD Radeon cards supported by the Radeon driver for Current/5.5 | guitarfreak | OpenBSD General | 3 | 4th April 2014 12:33 PM |
compatible video cards? | xxERICxx | OpenBSD Installation and Upgrading | 9 | 14th November 2013 10:53 AM |
Recording sound with external sound card | backrow | OpenBSD General | 5 | 21st August 2009 08:17 PM |
OpenBSD and ATI cards | h5n1 | OpenBSD General | 3 | 29th October 2008 12:46 PM |