Re: Using the audio(4) driver for recording under -current?

2022-10-27 Thread Brian Buhrow
hello Michael. Here is a demonstration of the issue I'm seeing, using audiorecord with two audio devices on the same machine. The audio1 device is a USB C-Media audio dongle. The audio0 device is a Realtek, Product ID: 0255, built into this Dell Optiplex 5050 desktop machine.

Re: Using the audio(4) driver for recording under -current?

2022-10-27 Thread Tetsuya Isaki
# It's not a main topic but a correction. At Thu, 27 Oct 2022 10:12:32 +, nia wrote: > > #set up the audio device first > > audioctl -d /dev/sound2 -w record.rate=44100 record.channels=2 > > record.precision=16 \ > > record.encoding=slinear_le : > > Then, to record: > > cat /dev/sound2 >

Re: Using the audio(4) driver for recording under -current?

2022-10-27 Thread Michael van Elst
buh...@nfbcal.org (Brian Buhrow) writes: > hello. The hdaudio driver I'm using is a locally patched version to > work around an issue >where the driver doesn't configure the headphone jack correctly. >Specifically, it seems >the default configuration configures the jack for use with a

Re: Using the audio(4) driver for recording under -current?

2022-10-27 Thread Michael van Elst
buh...@nfbcal.org (Brian Buhrow) writes: >Then, to record: >cat /dev/sound2 > rawrecordingfile Can you just try the audiorecord command instead of 'cat' ?

Re: Using the audio(4) driver for recording under -current?

2022-10-27 Thread nia
On Wed, Oct 26, 2022 at 03:39:44PM -0700, Brian Buhrow wrote: > hello. Just to clarify, I'm not trying to use two audio devices for > recording at the same > time. What I was doing was something like: > > #set up the audio device first > audioctl -d /dev/sound2 -w record.rate=44100

Re: Using the audio(4) driver for recording under -current?

2022-10-26 Thread Brian Buhrow
hello. The hdaudio driver I'm using is a locally patched version to work around an issue where the driver doesn't configure the headphone jack correctly. Specifically, it seems the default configuration configures the jack for use with a microphone, rather than with just a headset,

Re: Using the audio(4) driver for recording under -current?

2022-10-26 Thread RVP
On Wed, 26 Oct 2022, Brian Buhrow wrote: hello. Just to clarify, I'm not trying to use two audio devices for recording at the same time. What I was doing was something like: That (mildly adapted for my HW) works for me. Of course, the above parameters need to be changed for the

Re: Using the audio(4) driver for recording under -current?

2022-10-26 Thread Brian Buhrow
hello. Just to clarify, I'm not trying to use two audio devices for recording at the same time. What I was doing was something like: #set up the audio device first audioctl -d /dev/sound2 -w record.rate=44100 record.channels=2 record.precision=16 \ record.encoding=slinear_le #Now,

Re: Using the audio(4) driver for recording under -current?

2022-10-26 Thread Michael van Elst
buh...@nfbcal.org (Brian Buhrow) writes: > hello. thanks for the feedback. In my case, recording doesn't work > for hdaudio or uaudio >devices. What's strange is that I would expect data to be taken from the >wrong input, >resulting in a file of silence, but I wouldn't expect kernel

Re: Using the audio(4) driver for recording under -current?

2022-10-26 Thread Michael van Elst
r...@sdf.org (RVP) writes: >Perhaps the correct ADC was not selected? See Section 10.6.1 in the Guide[1]. If I follow this and use "all available sources", I get twice the amount of data, the sources are interleaved in the input stream. hdafg0: ADC02 2ch: Mic In [Jack] hdafg0: ADC03 2ch: Mic

Re: Using the audio(4) driver for recording under -current?

2022-10-26 Thread Brian Buhrow
. I'll try with a newer kernel. I'll also see if I can test with a 9.x kernel, to make sure it's just a transient error that we had during our march to NetBSD-10. -thanks -Brian On Oct 26, 9:22am, RVP wrote: } Subject: Re: Using the audio(4) driver for recording under -current? } On Tue, 25 Oct

Re: Using the audio(4) driver for recording under -current?

2022-10-26 Thread RVP
On Tue, 25 Oct 2022, Brian Buhrow wrote: Is anyone using the audio(4) driver for recording successfully under -current? audiorecord worked for me on 9.99.102: ``` hdaudio0 at pci0 dev 27 function 0: HD Audio Controller hdaudio0: interrupting at msi1 vec 0 hdaudio0: HDA ver. 1.0, OSS 4, ISS