mark hellewell wrote:

> Hi,
> 
> I have a Lenovo M83 dropped into a Tiny-in-One 23 and would like to find
> out how to get headphone audio working through the socket on the side
> of the Tiny-in-One screen.
> 
> Headphone sensing and output works by default when I plug headphones
> in to the socket built directly into the M83, but when the unit is plugged
> into the screen then plugging headphones into the screen's socket
> doesn't seem to do anything.
> 
> All I've really tried so far is setting outputs.hp_source to the other
> mixers
> identified by the system, but that achieved nothing.  I have no idea what
> I'm doing with this :(
> 
> Maybe this is something simple?  Maybe it is impossible at the moment?
> Perhaps I will have to keep the M83 out of the receptacle designed for it
> on the back of the screen and use the built-in headphone socket.
> 
> More generally, OpenBSD 5.7 stable seems to run very nicely on this
> computer :)  The only other issue I've encountered is when switching
> from X to console and back again, using Ctrl-Alt-F keys, X seems to
> lose acceleration.
> 
> audioctl, mixerctl, dmesg included below.
> 
> Thanks!
> 
> Mark
> 
> 
> audioctl:
> 
> name=HD-Audio
> encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
> properties=full_duplex,independent
> hiwat=9
> lowat=8
> mode=play,record
> play.rate=48000
> play.channels=2
> play.precision=16
> play.bps=2
> play.msb=1
> play.encoding=slinear_le
> play.samples=4002708480
> play.pause=0
> play.active=1
> play.block_size=3840
> play.errors=10560
> record.rate=48000
> record.channels=2
> record.precision=16
> record.bps=2
> record.msb=1
> record.encoding=slinear_le
> record.samples=4002750720
> record.pause=0
> record.active=1
> record.block_size=3840
> record.errors=0
> 
> 
> mixerctl:
> 
> inputs.dac-2:3=174,174
> inputs.dac-0:1=174,174
> record.adc-0:1_mute=off
> record.adc-0:1=124,124
> record.adc-2:3_mute=off
> record.adc-2:3=124,124
> inputs.mix_source=mic,mic2
> inputs.mix_mic=120,120
> inputs.mix_mic2=120,120
> inputs.mix2_source=dac-2:3,mix
> inputs.mix3_source=dac-0:1,mix
> outputs.spkr_source=mix2
> outputs.spkr_mute=off
> outputs.spkr_eapd=on
> inputs.mic=85,85
> outputs.mic_dir=input-vr80
> inputs.mic2=85,85
> outputs.mic2_dir=input-vr80
> outputs.hp_source=mix3
> outputs.hp_mute=off
> outputs.hp_boost=off
> outputs.hp_eapd=on
> record.adc-2:3_source=mic,mic2,mix
> record.adc-0:1_source=mic,mic2,mix
> outputs.mic_sense=unplugged
> outputs.mic2_sense=unplugged
> outputs.hp_sense=unplugged
> outputs.spkr_muters=hp
> outputs.master=255,255
> outputs.master.mute=off
> outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp
> record.volume=124,124
> record.volume.mute=off
> record.volume.slaves=adc-0:1,adc-2:3
> 
> 
> dmesg:
> 

...

> azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x06: msi
> azalia0: No codecs found

> azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x05: msi
> azalia1: codecs: Realtek/0x0233
> audio0 at azalia1

> uaudio0 at uhub4 port 3 configuration 1 interface 0 "CONEXANT
> Tiny-in-One 23" rev 2.00/0.04 addr 7
> uaudio0: audio rev 1.00, 5 mixer controls
> audio1 at uaudio0


You've got 3 separate audio devices, azalia0, azalia1 and uaudio0.
azalia0: probably HDMI audio which isn't supported yet AFAICT
azalia1: on-board audio detected as audio0, sndiod normally attaches to this
         device so all audio played on your systems is played through that.
uaudio0: your USB "Tiny-in-One 23" device, sndiod doesn't attach to this by
         default.


To make sndiod use both devices you can add a line to your rc.conf.local:
sndiod_flags="-f rsnd/0 -f rsnd/1"
where rsnd/0 represents audio0, exposed as snd/0 by sndiod, and rsnd/1 
represents audio/1, exposed as snd/1.

Specifying either snd/0 or snd/1 in your application determines which device 
the audio is played on.

If you want the USB device to be your default device you could try swapping 
the parameters:
sndiod_flags="-f rsnd/1 -f rsnd/0"
If that doesn't work, try:
sndiod_flags="-f rsnd/0 -f rsnd/1 -s default"

I hope this helps.

Reply via email to