Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



	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 messages telling me the audio device
timed out.
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 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 4, BSS 0, SDO 1, 64-bit
} hdafg0 at hdaudio0: VIA product 8446
} hdafg0: DAC00 2ch: Speaker [Built-In], HP Out [Jack]
} hdafg0: ADC01 2ch: Mic In [Built-In]
} hdafg0: 2ch/2ch 48000Hz PCM16*
} audio0 at hdafg0: playback, capture, full duplex, independent
} audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
} audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
} spkr0 at audio0: PC Speaker (synthesized)
} wsbell at spkr0 not configured
} hdafg1 at hdaudio0: Intel product 2806
} hdafg1: DP00 8ch: Digital Out [Jack]
} hdafg1: 8ch/0ch 48000Hz PCM16*
} audio1 at hdafg1: playback, capture, full duplex, independent
} audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
} audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
} spkr1 at audio1: PC Speaker (synthesized)
} wsbell at spkr1 not configured
} ```
} 
} 
} > The symptom is that after  I set up the recording parameters, channels, encoding, sampling rate,
} > when I try to read data from the /dev/soundx device, I get resource temporarily unavailable
} > errors back from the read calls and kernel messages telling me that the audio device has timed
} > out.
} >
} 
} Perhaps the correct ADC was not selected? See Section 10.6.1 in the Guide[1].
} 
} -RVP
} 
} [1]: https://netbsd.org/docs/guide/en/chap-audio.html#chap-audio-hdaudio-dacs-adcs
>-- End of excerpt from RVP




Home | Main Index | Thread Index | Old Index