TOSHIBA M6 Laptop/82801G (ICH7 Family) High Definition Audio

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: hannu, dev, cesium, kodachi

TOSHIBA M6 Laptop/82801G (ICH7 Family) High Definition Audio

Postby bplipschitz » Mon Dec 15, 2008 9:06 pm

Hi,

I'm running a Toshiba M6 laptop with the '82801G (ICH7 Family) High Definition Audio' chip [as reported by pciconf]. I'm running FreeBSD 6.4-stable, ports were updated today, and oss built today [4.1-build1050].

I have disabled any native FreeBSD drivers, and osscore.ko and oss_hdaudio.ko are loaded.

I can run ossinfo, ossdetect, and osstest. They all print out messages as though everything works. However, there is no sound.

Here are the relevant bits:

During boot:

Code: Select all

oss_hdaudio: Unknown HDA codec 0x11c13026
oss_hdaudio: Unknown HDA codec 0x11c13026
oss_hdaudio0: <Intel> mem 0xffd3c000-0xffd3ffff irq 22 at device 27.0 on pci0



Ossinfo:

Code: Select all
      Version info: OSS 4.1 (b 1050/200812151834) (0x00040100) BSD
Platform: FreeBSD/i386 6.4-STABLE FreeBSD 6.4-STABLE #0: Tue Dec  2 16:25:00 CST
2008     root@icclaptop:/usr/obj/usr/src/sys/ICC_8 (icclaptop)

Number of audio devices:        10
Number of audio engines:        10
Number of mixer devices:        1


Device objects
0: oss_hdaudio0 Intel HD Audio interrupts=2433 (2433)
    HD Audio controller Intel HD Audio
    Vendor ID    0x808627d8
    Subvendor ID 0x11790001
     Codec  0: AD1981 (0x11d41981/0x11790311)
     Codec  1: Unknown (0x11c13026)


Mixer devices
0: High Definition Audio AD1981 (Mixer 0 of device object 0)
    Device file /dev/oss/oss_hdaudio0/mix0, Legacy device /dev/mixer1
    Priority: 10
    Caps:


Audio devices
HD Audio play play                /dev/oss/oss_hdaudio0/pcm0  (device index 0)
    Legacy device /dev/dsp6
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
      Out engine  3: Available for use
      Out engine  4: Available for use
      Out engine  5: Available for use
      Out engine  6: Available for use
      Out engine  7: Available for use
      Out engine  8: Available for use
      Out engine  9: Available for use
HD Audio play (null)              /dev/oss/oss_hdaudio0/pcm1  (device index 1)
    Legacy device /dev/dsp7
    Caps: TRIGGER MMAP
    Modes: OUTPUT
      Out engine  1: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm2  (device index 2)
    Legacy device /dev/dsp8
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
      Out engine  3: Available for use
      Out engine  4: Available for use
      Out engine  5: Available for use
      Out engine  6: Available for use
      Out engine  7: Available for use
      Out engine  8: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm3  (device index 3)
    Legacy device /dev/dsp9
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
      Out engine  3: Available for use
      Out engine  4: Available for use
      Out engine  5: Available for use
      Out engine  6: Available for use
      Out engine  7: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm4  (device index 4)
    Legacy device /dev/dsp10
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
      Out engine  3: Available for use
      Out engine  4: Available for use
      Out engine  5: Available for use
      Out engine  6: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm5  (device index 5)
    Legacy device /dev/dsp11
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
      Out engine  3: Available for use
      Out engine  4: Available for use
      Out engine  5: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm6  (device index 6)
    Legacy device /dev/dsp12
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
      Out engine  3: Available for use
      Out engine  4: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm7  (device index 7)
    Legacy device /dev/dsp13
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
      Out engine  3: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm8  (device index 8)
    Legacy device /dev/dsp14
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use
      Out engine  2: Available for use
HD Audio play play (vmix)         /dev/oss/oss_hdaudio0/pcm9  (device index 9)
    Legacy device /dev/dsp15
    Caps: TRIGGER MMAP VIRTUAL
    Modes: OUTPUT
      Out engine  1: Available for use


For the devices that toss errors in the following snippet, this is also printed to the console:
Code: Select all
oss_hdaudio: No suitable rate found!
oss_hdaudio: No suitable rate found!
osscore: internal format error 2


osstest:
Code: Select all
Sound subsystem and version: OSS 4.1 (b 1050/200812151834) (0x00040100)
Platform: FreeBSD/i386 6.4-STABLE FreeBSD 6.4-STABLE #0: Tue Dec  2 16:25:00 CST 2008     roo

*** Scanning sound adapter #-1 ***
/dev/oss/oss_hdaudio0/pcm0 (audio engine 0): HD Audio play play
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm1 (audio engine 1): HD Audio play (null)
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_hdaudio0/pcm2 (audio engine 2): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm3 (audio engine 3): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm4 (audio engine 4): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm5 (audio engine 5): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm6 (audio engine 6): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm7 (audio engine 7): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm8 (audio engine 8): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/oss_hdaudio0/pcm9 (audio engine 9): HD Audio play play (vmix)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>

*** Some errors were detected during the tests ***


ossdetect -v
Code: Select all
Detected Intel High Definition Audio (ICH7)


If we're just not quite there yet and this thing doesn't work, it doesn't work. I'm OK with that. But, if there is something I've missed [this is my first foray into OSS, been a FreeBSD user/abuser for ~9 years] and can get this working, that would be loverly.

Thanks!
bplipschitz
 
Posts: 6
Joined: Mon Dec 15, 2008 7:46 pm

Postby cesium » Mon Dec 15, 2008 9:12 pm

What's the output of "ossmix"? Maybe something is muted there...
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby bplipschitz » Mon Dec 15, 2008 9:40 pm

cesium wrote:What's the output of "ossmix"? Maybe something is muted there...


Code: Select all
Selected mixer 0/High Definition Audio AD1981
Known controls are:
codec1.jack.int-speaker.mode <play> (currently play)
codec1.jack.int-speaker [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.int-speaker.int-spe [<leftvol>:<rightvol>] (currently 94.4:94.4 dB)
codec1.jack.fp-black.mode <play> (currently play)
codec1.jack.fp-black.fp-headpho [<leftvol>:<rightvol>] (currently 94.4:94.4 dB)
codec1.jack.fp-black [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.int-mic.mode <play> (currently input)
codec1.jack.int-mic [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
codec1.jack.int-mic.int-mic [<leftvol>:<rightvol>] (currently 86.9:86.9 dB)
codec1.misc.mono-sel <play> (currently play)
codec1.misc.mic-mix <fp> (currently fp-mic)
codec1.misc.pcbeep-sel <monovol> (currently 44.9 dB)
codec1.misc.rec-mix <pcbeep> (currently pcbe
ep-sel)
codec1.misc.play [<leftvol>:<rightvol>] (currently 43.4:43.4 dB)
codec1.misc.fp-mic [<leftvol>:<rightvol>] (currently 43.4:43.4 dB)
codec1.misc.rec-sel1 [<leftvol>:<rightvol>] (currently 20.9:20.9 dB)
codec1.misc.rec-sel2 <mic> (currently mic-mix)
codec1.misc.int-speaker [<leftvol>:<rightvol>] (currently 43.4:43.4 dB)
codec1.misc.int-mic [<leftvol>:<rightvol>] (currently 43.4:43.4 dB)
codec1.misc.mute1 ON|OFF (currently OFF)
codec1.misc.mute2 ON|OFF (currently OFF)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal> (currently 48000) (Read-only)
vmix0-channels <Stereo> (currently Stereo)
vmix0-src <Fast> (currently Fast)
vmix0-outvol <monovol> (currently 24.7 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm5 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm6 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm7 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm8 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm9 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)


It all looked OK in ossxmix.

Thanks.
bplipschitz
 
Posts: 6
Joined: Mon Dec 15, 2008 7:46 pm

Postby cesium » Mon Dec 15, 2008 9:52 pm

You can try doing "osstest -l 0" in the background, and modify the combo boxes in ossxmix (i.e. jack modes, codec.misc settings, etc.) in the foreground and see if that helps (i.e. you hear something).
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby bplipschitz » Mon Dec 15, 2008 10:02 pm

cesium wrote:You can try doing "osstest -l 0" in the background, and modify the combo boxes in ossxmix (i.e. jack modes, codec.misc settings, etc.) in the foreground and see if that helps (i.e. you hear something).


Doing that right now, although no joy yet. Interesting to note that none of the LED bargraphs in ossxmix light up. Not sure if that indicates anything or not.
bplipschitz
 
Posts: 6
Joined: Mon Dec 15, 2008 7:46 pm

Postby cesium » Mon Dec 15, 2008 10:13 pm

osstest tries to override vmix unless you provide '-V' switch, so you won't see movement in the ossxmix bars in any case.. You can also edit /usr/local/lib/oss/conf/oss_hdaudio.conf and set "hdaudio_noskip=7" and see if it allows new options in the mixer after OSS has been restarted (the port has sample files in that directory).
cesium
 
Posts: 903
Joined: Sun Aug 12, 2007 12:51 am

Postby bplipschitz » Mon Dec 15, 2008 10:29 pm

cesium wrote:osstest tries to override vmix unless you provide '-V' switch, so you won't see movement in the ossxmix bars in any case.. You can also edit /usr/local/lib/oss/conf/oss_hdaudio.conf and set "hdaudio_noskip=7" and see if it allows new options in the mixer after OSS has been restarted (the port has sample files in that directory).


Yep--more options, still no joy.
bplipschitz
 
Posts: 6
Joined: Mon Dec 15, 2008 7:46 pm

Postby bplipschitz » Tue Dec 16, 2008 7:11 pm

bplipschitz wrote:
cesium wrote:osstest tries to override vmix unless you provide '-V' switch, so you won't see movement in the ossxmix bars in any case.. You can also edit /usr/local/lib/oss/conf/oss_hdaudio.conf and set "hdaudio_noskip=7" and see if it allows new options in the mixer after OSS has been restarted (the port has sample files in that directory).


Yep--more options, still no joy.


There's a lot of combinations of things there. At this point, still no sound. Any other things to try?
bplipschitz
 
Posts: 6
Joined: Mon Dec 15, 2008 7:46 pm

Postby dev » Wed Dec 17, 2008 7:15 pm

Try plugging in a pair of headphones to either the speaker or the mic jack and run osstest and see if that helps.


I suspect that this machine has GPIO bits that need to be turned on.
dev
 
Posts: 577
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby bplipschitz » Wed Dec 17, 2008 8:46 pm

dev wrote:Try plugging in a pair of headphones to either the speaker or the mic jack and run osstest and see if that helps.


I suspect that this machine has GPIO bits that need to be turned on.


Tried both. No joy.

What are GPIO bits?
bplipschitz
 
Posts: 6
Joined: Mon Dec 15, 2008 7:46 pm


Return to BSD

Who is online

Users browsing this forum: No registered users and 3 guests