redirect spkr to headphone jack?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

redirect spkr to headphone jack?

quartz-2
We have a system with NO physical internal speaker of any kind. Audio
otherwise works from the headphone/line jack, playing wave files with
aucat and messing with mixerctl all work as expected, but there are no
'beeps' (can't get a terminal bell using echo, can't get anything from
wsconsctl, nothing's muted in mixerctl). Is there an easy way to
redirect the "pc-speaker" to output via the headphone/line jack?

Reply | Threaded
Open this post in threaded view
|

Re: redirect spkr to headphone jack?

Alexandre Ratchov-2
On Mon, Sep 28, 2015 at 11:54:46PM -0400, Quartz wrote:
> We have a system with NO physical internal speaker of any kind. Audio
> otherwise works from the headphone/line jack, playing wave files with aucat
> and messing with mixerctl all work as expected, but there are no 'beeps'
> (can't get a terminal bell using echo, can't get anything from wsconsctl,
> nothing's muted in mixerctl). Is there an easy way to redirect the
> "pc-speaker" to output via the headphone/line jack?

The pc-speakers and the sound card are different circuits. On some
(rare) machines the output of the pc-speaker is connected to one of
the sound-card inputs instead of a small speaker. In this case
there are related mixerctl controles. Could you show the output
of "mixerctl -v" ?

OpenBSD console can only use the pc-speaker as the console beep and
there's no way to emulate it using the sound-card.

Reply | Threaded
Open this post in threaded view
|

Re: redirect spkr to headphone jack?

quartz-2
> The pc-speakers and the sound card are different circuits.

Right, I know that. What I'm wondering is if there's some magic
incantation for mixerctl or some other utility that will let output
intended for the console speaker to be 'copied' or otherwise redirected
to the headphone/line output.


> OpenBSD console can only use the pc-speaker as the console beep and
> there's no way to emulate it using the sound-card.

I'm not sure if 'emulation' is what I'm looking for. I mean, one way or
another the system is sending a sine wave down that path that causes the
motherboard speaker to beep (normally). Surely there's some way to make
it send that signal to the chip running the jacks on the back, right?
Maybe if not via a utility then via tweaking a custom kernel?


>Could you show the output
> of "mixerctl -v" ?

Sure, but gimme a few hours. I don't have the machine in front of me at
the moment.

Reply | Threaded
Open this post in threaded view
|

Re: redirect spkr to headphone jack?

quartz-2
In reply to this post by Alexandre Ratchov-2
>Could you show the output
> of "mixerctl -v" ?


inputs.dac-0:1=126,126
inputs.dac-2:3=126,126
inputs.dac-4:5=126,126
inputs.dac-6:7=126,126
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=125,125
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=125,125
inputs.mix_source=line-in,mic2,hp,line  { line-in mic2 hp line }
inputs.mix_line-in=120,120
inputs.mix_mic2=120,120
inputs.mix_hp=120,120
inputs.mix_line=120,120
inputs.mix2_source=dac-0:1,mix  { dac-0:1 mix }
inputs.mix3_source=dac-2:3,mix  { dac-2:3 mix }
inputs.mix4_source=dac-4:5,mix  { dac-4:5 mix }
inputs.mix5_source=dac-6:7,mix  { dac-6:7 mix }
outputs.line_source=mix2  [ mix2 ]
outputs.line_mute=off  [ off on ]
outputs.line_dir=output  [ none output input ]
outputs.line_boost=off  [ off on ]
outputs.line_eapd=on  [ off on ]
outputs.line-in_source=mix3  [ mix2 mix3 mix4 mix5 mix8 ]
outputs.line-in_mute=off  [ off on ]
inputs.line-in=85,85
outputs.line-in_dir=input  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.mic2_source=mix5  [ mix2 mix3 mix4 mix5 mix8 ]
outputs.mic2_mute=off  [ off on ]
inputs.mic2=85,85
outputs.mic2_dir=input-vr80  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.mic2_boost=off  [ off on ]
outputs.spkr_source=mix8  [ mix2 mix3 mix4 mix5 mix8 ]
outputs.spkr_mute=on  [ off on ]
outputs.spkr_dir=output  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.hp_source=mix4  [ mix2 mix3 mix4 mix5 mix8 ]
outputs.hp_mute=off  [ off on ]
inputs.hp=85,85
outputs.hp_dir=output  [ none output input input-vr0 input-vr50
input-vr80 input-vr100 ]
outputs.hp_boost=off  [ off on ]
outputs.hp_eapd=on  [ off on ]
record.adc-0:1_source=line-in,mic2,hp,line,mix,mic  { line-in mic2 hp
line mix mic }
record.adc-2:3_source=line-in,mic2,hp,line,mix  { line-in mic2 hp line mix }
inputs.dac-8:9=126,126
inputs.mix8_source=dac-8:9,mix  { dac-8:9 mix }
outputs.line_sense=plugged  [ unplugged plugged ]
outputs.line-in_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=line,line-in  { line line-in }
outputs.master=128,128
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-4:5,line,spkr,hp,dac-8:9  { dac-0:1
dac-2:3 dac-4:5 dac-6:7 line line-in mic2 spkr hp dac-8:9 }
record.volume=125,125
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-2:3,adc-0:1  { adc-2:3 adc-0:1 line-in mic2
spkr hp }