problem with audio recording using Solaris 10 5/08

OSS specific Solaris discussion (x86/SPARC)

Moderators: cesium, dev, kodachi, hannu

problem with audio recording using Solaris 10 5/08

Postby half12 » Thu Feb 12, 2009 3:59 pm

Hi,

I have a problem when attempting to record audio. I have tried using the Solaris sound recorder and Snd 10.3 both record sound as a series of clicks. I checked the headphones and speaker on another computer and they work perfectly. Any suggestions on how to get recording working would be gratefully received.

$ ossinfo
Version info: OSS 4.1 (b 1051/200812302228) (0x00040100)
Platform: SunOS/i86pc 5.10 Generic_137138-09 (ts)

Number of audio devices: 9
Number of audio engines: 13
Number of mixer devices: 1


Device objects
0: osscore0 OSS common devices
1: oss_hdaudio0 nVidia HD Audio interrupts=3996794 (3998008)
HD Audio controller nVidia HD Audio
Vendor ID 0x10de0371
Subvendor ID 0x10decb84
Codec 0: ALC883 (0x10ec0883/0x10ec0883)
2: oss_usb0 USB audio/MIDI device
3: oss_sadasupport SADA compatibility layer


Mixer devices
0: High Definition Audio ALC883 (Mixer 0 of device object 1)

Audio devices
HD Audio play front /dev/oss/oss_hdaudio0/pcm0 (device index 0)
HD Audio play rear /dev/oss/oss_hdaudio0/pcm1 (device index 1)
HD Audio play center/LFE /dev/oss/oss_hdaudio0/pcm2 (device index 2)
HD Audio play side /dev/oss/oss_hdaudio0/pcm3 (device index 3)
HD Audio play pcm4 /dev/oss/oss_hdaudio0/pcm4 (device index 4)
HD Audio play spdif-out /dev/oss/oss_hdaudio0/spdout0 (device index 5)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin0 (device index 6)
HD Audio rec mix /dev/oss/oss_hdaudio0/pcmin1 (device index 7)
HD Audio rec spdifin /dev/oss/oss_hdaudio0/spdin0 (device index 8)


I have configured audio using the ossxmix, the configuration is shown below
$ /usr/bin/ossmix
Selected mixer 0/High Definition Audio ALC883
Known controls are:
jack.green.mode <front> (currently front)
jack.green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.green.mute ON|OFF (currently OFF)
jack.black.mode <front> (currently rear)
jack.black [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.black.mute ON|OFF (currently OFF)
jack.orange.mode <front> (currently center/LFE)
jack.orange [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.orange.mute ON|OFF (currently OFF)
jack.gray.mode <front> (currently side)
jack.gray [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.gray.mute ON|OFF (currently OFF)
jack.pink.mode <front> (currently input)
jack.pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.pink.mute ON|OFF (currently OFF)
jack.fp-pink.mode <front> (currently front)
jack.fp-pink [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.fp-pink.mute ON|OFF (currently OFF)
jack.blue.mode <front> (currently input)
jack.blue [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.blue.mute ON|OFF (currently OFF)
jack.fp-green.mode <front> (currently front)
jack.fp-green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.fp-green.mute ON|OFF (currently OFF)
record.mix.mute.mic1 ON|OFF (currently OFF)
record.mix.mute.fp-mic1 ON|OFF (currently OFF)
record.mix.mute.linein1 ON|OFF (currently OFF)
record.mix.mute.fp-headphone1 ON|OFF (currently OFF)
record.mix.mute.int-cd1 ON|OFF (currently OFF)
record.mix.mute.lineout1 ON|OFF (currently OFF)
record.mix.mute.green1 ON|OFF (currently OFF)
record.mix.mute.black1 ON|OFF (currently OFF)
record.mix.mute.orange1 ON|OFF (currently OFF)
record.mix.mute.gray1 ON|OFF (currently OFF)
record.mix.mute.input-mix1 ON|OFF (currently OFF)
record.mix1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
record.mix.mute.mic2 ON|OFF (currently OFF)
record.mix.mute.fp-mic2 ON|OFF (currently OFF)
record.mix.mute.linein2 ON|OFF (currently OFF)
record.mix.mute.fp-headphone2 ON|OFF (currently OFF)
record.mix.mute.int-cd2 ON|OFF (currently OFF)
record.mix.mute.lineout2 ON|OFF (currently OFF)
record.mix.mute.green2 ON|OFF (currently OFF)
record.mix.mute.black2 ON|OFF (currently OFF)
record.mix.mute.orange2 ON|OFF (currently OFF)
record.mix.mute.gray2 ON|OFF (currently OFF)
record.mix.mute.input-mix2 ON|OFF (currently OFF)
record.mix2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.fp-mic [<leftvol>:<rightvol>] (currently 37.4:37.4 dB)
misc.linein [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.fp-headphone [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.int-cd [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.lineout [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.green [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.black [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.orange [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.gray [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.input-mix <mic> (currently mic)
misc.front-mute ON|OFF (currently OFF)
misc.input-mix-mute1 ON|OFF (currently OFF)
misc.front1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.front2 <front> (currently front)
misc.rear-mute ON|OFF (currently OFF)
misc.input-mix-mute2 ON|OFF (currently OFF)
misc.rear1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.rear2 <rear> (currently rear)
misc.center/lfe-mute ON|OFF (currently OFF)
misc.input-mix-mute3 ON|OFF (currently OFF)
misc.center/lfe1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.center/lfe2 <center> (currently center/LFE)
misc.side-mute ON|OFF (currently OFF)
misc.input-mix-mute4 ON|OFF (currently OFF)
misc.side1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.side2 <side> (currently side)
misc.pcm4-mute ON|OFF (currently OFF)
misc.input-mix-mute5 ON|OFF (currently OFF)
misc.pcm41 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.pcm42 <pcm4> (currently input-mix)
pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("SADA")
pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
half12
New Member
 
Posts: 2
Joined: Thu Feb 12, 2009 3:44 pm

Postby cesium » Thu Feb 12, 2009 4:05 pm

Does 'ossrecord' work?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

ossrecord/ossplay

Postby half12 » Thu Feb 12, 2009 4:22 pm

no, ossrecord produces the same clicking noise during record and there is no sound playback using ossplay

Update!!
I noticed on power up that the following message appears in /var/adm/messages
Feb 15 11:25:39 fred pseudo: [ID 129642 kern.info] pseudo-device: oss_sadasupport0
Feb 15 11:25:39 fred genunix: [ID 936769 kern.info] oss_sadasupport0 is /pseudo/oss_sadasupport@0
Feb 15 11:25:39 fred pseudo: [ID 129642 kern.info] pseudo-device: oss_sadasupport0
Feb 15 11:25:39 fred genunix: [ID 936769 kern.info] oss_sadasupport0 is /pseudo/oss_sadasupport@0
Feb 15 11:25:46 fred pcplusmp: [ID 637496 kern.info] pcplusmp: pci10de,371 (oss_hdaudio) instance 0 vector 0x17 ioapic 0x4 intin 0x17 is bound to cpu 0
Feb 15 11:25:46 fred npe: [ID 236367 kern.info] PCI Express-device: pci10de,cb84@6,1, oss_hdaudio0
Feb 15 11:25:46 fred genunix: [ID 936769 kern.info] oss_hdaudio0 is /pci@0,0/pci10de,cb84@6,1
Feb 15 11:25:46 fred pseudo: [ID 129642 kern.info] pseudo-device: osscore0
Feb 15 11:25:46 fred genunix: [ID 936769 kern.info] osscore0 is /pseudo/osscore@0
Feb 15 11:25:46 fred oss_sadasupport: [ID 517056 kern.warning] WARNING: ldi_open_by_name("/dev/dsp") failed, errno=19


Checking the dev links

# ls -l /dev/oss/oss_hdaudio0/
total 20
lrwxrwxrwx 1 root root 59 Feb 9 15:29 mix0 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,mix0
lrwxrwxrwx 1 root root 59 Feb 9 15:29 pcm0 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,pcm0
lrwxrwxrwx 1 root root 59 Feb 9 15:29 pcm1 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,pcm1
lrwxrwxrwx 1 root root 59 Feb 9 15:29 pcm2 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,pcm2
lrwxrwxrwx 1 root root 59 Feb 9 15:29 pcm3 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,pcm3
lrwxrwxrwx 1 root root 59 Feb 9 15:29 pcm4 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,pcm4
lrwxrwxrwx 1 root root 61 Feb 9 15:29 pcmin0 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,pcmin0
lrwxrwxrwx 1 root root 61 Feb 9 15:29 pcmin1 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,pcmin1
lrwxrwxrwx 1 root root 61 Feb 9 15:29 spdin0 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,spdin0
lrwxrwxrwx 1 root root 62 Feb 9 15:29 spdout0 -> ../../../devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,spdout0

# ls -l /devices/pci@0,0/pci10de,cb84@6,1:*
crw-rw-rw- 1 root sys 225, 25 Feb 15 14:47 pci10de,cb84@6,1:oss_hdaudio0,mix-1
crw-rw-rw- 1 root sys 225, 3 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,pcm0
crw-rw-rw- 1 root sys 225, 5 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,pcm1
crw-rw-rw- 1 root sys 225, 7 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,pcm2
crw-rw-rw- 1 root sys 225, 9 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,pcm3
crw-rw-rw- 1 root sys 225, 11 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,pcm4
crw-rw-rw- 1 root sys 225, 15 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,pcmin0
crw-rw-rw- 1 root sys 225, 17 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,pcmin1
crw-rw-rw- 1 root sys 225, 19 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,spdin0
crw-rw-rw- 1 root sys 225, 13 Feb 15 11:25 pci10de,cb84@6,1:oss_hdaudio0,spdout0


Note the discrepancy for /dev/oss/oss_hdaudio0/mix0 which is linked to devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,mix0 however this device does not exist.
while /devices/pci@0,0/pci10de,cb84@6,1:oss_hdaudio0,mix-1 does exist, so I changed the symbollic link for mix0 to link to the mix-1 device.
half12
New Member
 
Posts: 2
Joined: Thu Feb 12, 2009 3:44 pm


Return to Solaris

Who is online

Users browsing this forum: No registered users and 1 guest