STAC9227X no sound recording

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium, kodachi

STAC9227X no sound recording

Postby helpdeskdan » Fri Oct 09, 2009 7:05 am

Please forgive me for asking more than one question in the same night.

I have tried ossrecord on all three of these interfaces. None of them yield any sound. (attached mic to front speaker) Any help greatly appreciated.

HD Audio rec input1-mux /dev/oss/oss_hdaudio0/pcmin0 (device index 5)
HD Audio rec input2-mux /dev/oss/oss_hdaudio0/pcmin1 (device index 6)
HD Audio rec input3-mux /dev/oss/oss_hdaudio0/pcmin2 (device index 7)

ossrecord -d /dev/dsp -t 5 file.wav
ossrecord -d /dev/dsp -t 6 file.wav
ossrecord -d /dev/dsp -t 7 file.wav

Other info:

dan@dan-desktop:~$ ossinfo
Version info: OSS 4.2 (b rc3/200910072330) (0x00040100) GPL
Platform: Linux/i686 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:49:34 UTC 2009 (dan-desktop)

Number of audio devices: 9
Number of audio engines: 13
Number of MIDI devices: 0
Number of mixer devices: 2


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=453031 (453031)
HD Audio controller Intel HD Audio
Vendor ID 0x8086284b
Subvendor ID 0x102801dd
Codec 2: STAC9227X (0x83847618/0x102801dd)
2: oss_usb0 USB audio core services
3: usb046d09a1-0 USB sound device
4: usb046d09a1-1 USB sound device

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio STAC9227X (Mixer 0 of device object 1)
1: USB sound device (Mixer 0 of device object 3)

Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm1 (device index 1)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm2 (device index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
HD Audio play spdif-out /dev/oss/oss_hdaudio0/spdout0 (device index 4)
HD Audio rec input1-mux /dev/oss/oss_hdaudio0/pcmin0 (device index 5)
HD Audio rec input2-mux /dev/oss/oss_hdaudio0/pcmin1 (device index 6)
HD Audio rec input3-mux /dev/oss/oss_hdaudio0/pcmin2 (device index 7)
USB sound device rec /dev/oss/usb046d09a1-1/pcmin0 (device index 8)

Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
dan@dan-desktop:~$ ossinfo
Version info: OSS 4.2 (b rc3/200910072330) (0x00040100) GPL
Platform: Linux/i686 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:49:34 UTC 2009 (dan-desktop)

Number of audio devices: 9
Number of audio engines: 13
Number of MIDI devices: 0
Number of mixer devices: 2


Device objects
0: osscore0 OSS core services
1: oss_hdaudio0 Intel HD Audio interrupts=453031 (453031)
HD Audio controller Intel HD Audio
Vendor ID 0x8086284b
Subvendor ID 0x102801dd
Codec 2: STAC9227X (0x83847618/0x102801dd)
2: oss_usb0 USB audio core services
3: usb046d09a1-0 USB sound device
4: usb046d09a1-1 USB sound device

MIDI devices (/dev/midi*)

Mixer devices
0: High Definition Audio STAC9227X (Mixer 0 of device object 1)
1: USB sound device (Mixer 0 of device object 3)

Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm1 (device index 1)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm2 (device index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
HD Audio play spdif-out /dev/oss/oss_hdaudio0/spdout0 (device index 4)
HD Audio rec input1-mux /dev/oss/oss_hdaudio0/pcmin0 (device index 5)
HD Audio rec input2-mux /dev/oss/oss_hdaudio0/pcmin1 (device index 6)
HD Audio rec input3-mux /dev/oss/oss_hdaudio0/pcmin2 (device index 7)
USB sound device rec /dev/oss/usb046d09a1-1/pcmin0 (device index 8)

Nodes
/dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
/dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
/dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0

dan@dan-desktop:~$ ossmix
Selected mixer 0/High Definition Audio STAC9227X
Known controls are:
jack.fp-black.mode1 <front|center/LFE|input> (currently front)
jack.fp-black.mode2 <front|center/LFE|input> (currently front)
jack.pink.mode <center/LFE|input> (currently center/LFE)
jack.pink.center/lfe [<leftvol>:<rightvol>] (currently 82.4:82.4 dB)
jack.green.mode <front|input> (currently front)
jack.green.front [<leftvol>:<rightvol>] (currently 78.6:78.6 dB)
jack.black.mode1 <rear|input> (currently rear)
jack.black.rear [<leftvol>:<rightvol>] (currently 78.6:78.6 dB)
jack.orange.mode <side|input> (currently side)
jack.orange.side [<leftvol>:<rightvol>] (currently 75.6:75.6 dB)
jack.blue.mode <rear|input> (currently input)
jack.gray.mode <center/LFE|input> (currently center/LFE)
jack.black.mode2 <spdif-out|adat|input1-mux|input2-mux|input3-mux> (currently spdif-out)
record.input1-mux.input1-mux1 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
record.input1-mux.input1-mux2 <fp-mic|center/LFE|rear> (currently fp-mic)
record.input1-mux [<leftvol>:<rightvol>] (currently 17.9:17.9 dB)
record.input1-mux.mute ON|OFF (currently OFF)
record.input2-mux.input2-mux1 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
record.input2-mux.input2-mux2 <fp-mic|center/LFE|rear> (currently center/LFE)
record.input2-mux [<leftvol>:<rightvol>] (currently 17.9:17.9 dB)
record.input2-mux.mute ON|OFF (currently OFF)
record.input3-mux.input3-mux1 [<leftvol>:<rightvol>] (currently 39.9:39.9 dB)
record.input3-mux.input3-mux2 <fp-mic|center/LFE|rear> (currently rear)
record.input3-mux [<leftvol>:<rightvol>] (currently 17.9:17.9 dB)
record.input3-mux.mute ON|OFF (currently OFF)
misc.headphone [<leftvol>:<rightvol>] (currently 94.4:94.4 dB)
misc <-28.-8dB|-19.-2dB|-9.-6dB|0.0dB> (currently 0.0dB)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <Fast|High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 23.4 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm8 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
dan@dan-desktop:~$
helpdeskdan
New Member
 
Posts: 4
Joined: Fri Oct 09, 2009 6:15 am

Re: STAC9227X no sound recording

Postby cesium » Fri Oct 09, 2009 11:32 pm

Every hdaudio card has a different mixer layout, so it's difficult to give particular advice, but I can give general one: I suggest having "ossrecord - | ossplay -" (with '-d' switches if you want) in the background, and "ossxmix" in the foreground. Try changing some mixer controls (especially record.input1-mux.input1-mux2 and record.input1-mux.input2-mux2) and see if you can get an echo. As a rule, the jack your mic is connected to needs to be at state "input" and it's possible you'll need to fiddle with input-mux controls as well.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Re: STAC9227X no sound recording

Postby helpdeskdan » Sat Oct 10, 2009 5:19 am

Thanks much for the advice. I was able, at last, to get ALSA working. Oss4 sounds very good, I hope all the bugs get worked out.
helpdeskdan
New Member
 
Posts: 4
Joined: Fri Oct 09, 2009 6:15 am


Return to Linux

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest