DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th July 2021
invicta invicta is offline
Port Guard
 
Join Date: Jul 2021
Posts: 16
Default no audio.

hello when i play a video in my browser i get no audio, here are some outputs

unix# mixerctlclear
ksh: mixerctlclear: not found
unix# mixerctl -av
inputs.dac-0:1_mute=off [ off on ]
inputs.dac-0:1=222,222
inputs.dac-2:3_mute=off [ off on ]
inputs.dac-2:3=222,222
inputs.beep=108
record.adc-2:3_source=mic [ mic mic2 ]
record.adc-2:3_mute=off [ off on ]
record.adc-2:3=126,126
record.adc-0:1_source=mic2 [ mic2 ]
record.adc-0:1_mute=off [ off on ]
record.adc-0:1=126,126
outputs.hp_source=dac-0:1 [ dac-0:1 dac-2:3 ]
outputs.hp_boost=off [ off on ]
outputs.hp_eapd=on [ off on ]
outputs.spkr_source=dac-2:3 [ dac-0:1 dac-2:3 ]
outputs.spkr_eapd=on [ off on ]
inputs.mic=85,85
outputs.mic_dir=input-vr80 [ none input input-vr50 input-vr80 ]
inputs.mic2=85,85
outputs.hp_sense=unplugged [ unplugged plugged ]
outputs.mic_sense=unplugged [ unplugged plugged ]
outputs.spkr_muters=hp { hp }
outputs.master=255,255
outputs.master.mute=off [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3 { dac-0:1 dac-2:3 beep }
record.volume=126,126
record.volume.mute=off [ off on ]
record.volume.slaves=adc-2:3,adc-0:1 { adc-2:3 adc-0:1 mic mic2 }
record.enable=sysctl [ off on sysctl ]
unix#

unix# lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 Non-Volatile memory controller: Device 1e0f:0001
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
04:00.0 Network controller: Intel Corporation Wireless-AC 9260 (rev 29)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c2)
05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
05:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
unix#
Reply With Quote
  #2   (View Single Post)  
Old 24th July 2021
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 167
Default

Hi.

If you use OpenBSD ≥ 6.7, you need to use sndioctl
And add your userid to operator group…
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
  #3   (View Single Post)  
Old 24th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

To my understanding, operator group membership is not necessary for sndio(7) use. And from a security perspective it adds an attack vector not present for normal users.
Reply With Quote
  #4   (View Single Post)  
Old 24th July 2021
invicta invicta is offline
Port Guard
 
Join Date: Jul 2021
Posts: 16
Default

heres my sndioctl output.

unix$ sndioctl
input.level=0.494
input.mute=0
output.level=1.000
output.mute=0
app/iridium0.level=1.000
app/iridium1.level=1.000
app/pulseau0.level=1.000
unix$

it might be my browser. is there a way to play a beep from the terminal?
Reply With Quote
  #5   (View Single Post)  
Old 25th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

Quote:
Originally Posted by invicta View Post
...is there a way to play a beep from the terminal?
There's a way to play audio files. http://www.openbsd.org/faq/faq13.html#playaudio
Reply With Quote
  #6   (View Single Post)  
Old 25th July 2021
CiotBSD CiotBSD is offline
c107:b5d::
 
Join Date: Jun 2019
Location: Under /
Posts: 167
Default

Hi

@jggimi: In this post, You wrote:
Quote:
If the default audio device is requested by an application, the sndio(7) library will first attempt to connect with snd/0, the first device managed by sndiod(8). If the device is not available through sndiod(8), the library will then try to connect to the raw audio device -- rsnd/0. This will then translate into access to the appropriate device special file such as /dev/audio0. These device special files are owner:group root:_sndiop, and have no world access, so I'm not clear why adding your userid to the operator group made a difference. I could guess that there was a reboot, under the assumption that sndiod was not running or the audio device was in use by another userid.
In any case, being in the operator group is often necessary, depending on the DE used.
It seems if you are not on operator group, you can use/access to sndioctl, isn't-it ‽
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E
GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733
Reply With Quote
  #7   (View Single Post)  
Old 25th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

My follow-up post in that thread provides the likely reason: use of the audio device by root.
Reply With Quote
  #8   (View Single Post)  
Old 25th July 2021
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 304
Default

Quote:
Originally Posted by invicta View Post
is there a way to play a beep from the terminal?
Jggimi's reply links to the faq, which tells you how to record some sound and play it back.

But if you don't happen to have any soundfile at hand and want a real quick'n'dirty way to test sound output you can do this:
Code:
cat /dev/urandom | doas tee /dev/audio0 > /dev/null
You should hear static noise if your sound is properly configured.
Reply With Quote
  #9   (View Single Post)  
Old 26th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

A similar command, $ cat /dev/urandom | aucat -i - should produce the same output. It tests the sndio(7) subsystem and sndiod(8) configuration, while avoiding the need for the superuser.
Reply With Quote
Old 26th July 2021
Prevet Prevet is offline
Package Pilot
 
Join Date: Oct 2017
Posts: 196
Default

I like it. White noise.

aucat -i /dev/urandom
Reply With Quote
Old 26th July 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,416
Default

Oh, that's even better!
Reply With Quote
Old 27th July 2021
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 304
Default

Yep, Prevet definitely wins this round.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio over HDMI marek OpenBSD General 2 25th May 2020 09:26 PM
Audio Devices Freyja OpenBSD General 1 21st March 2020 10:55 AM
azalia Intel SCH HD Audio strange audio issues tehsean OpenBSD General 3 26th August 2012 12:21 AM
netbsd 5 audio from mic in jaideep_jdof NetBSD General 0 28th April 2010 06:15 PM
macmini audio gosha OpenBSD General 15 14th January 2009 02:43 AM


All times are GMT. The time now is 06:21 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick