Skip to contentSkip to conversation

intel8x0, ad198x, no sound

DISCUSSION Jeffrey Baker 2 participants 5 messages May 18, 2003 – May 20, 2003 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

This is related to the mail last week regarding the Asus P4PE with ad1980 sound chip. I got an Asus P4P800 with the ad1985. The intel8x0 driver works but there are problems with the sound routing. There is no sound at all coming from the main (line out) output. If I plug headphones into the line in jack, there is sound but it appears to be some kind of surround output, because it lacks all low frequencies entirely. No sound comes from the microphone jack.

I think the problem may be related to the "intelligent" jack sensing built into this hardware. It is supposed to be able to detect when you've got your headphones plugged into the wrong jack and reroute the audio. Either that, or the chip is stuck in some surround mode that isn't quite working.

The output from amixer is below. I tried every slider and I couldn't get sound out of the line out jack. Is there a modprobe argument to load this module in stereo instead of 6-channel mode (or vice versa)?

I haven't read it but full programming info is available on the Analog Devices web site.

-jwb

Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on]
Front Right: Playback 31 [100%] [on]
Simple mixer control 'Master Mono',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [on]
Front Right: Playback 0 [0%] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 19 [61%] [on]
Front Right: Playback 19 [61%] [on]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [on]
Front Right: Playback 0 [0%] [on]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [on]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [off]
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mic Boost (+20dB)',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Mic Select',0
Capabilities:
Mono:
Simple mixer control 'Video',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Phone',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [off]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958 Playback AC97-SPSA',0
Capabilities: volume volume-joined
Playback channels: Mono
Limits: 0 - 3
Mono: 0 [0%]
Simple mixer control 'PC Speaker',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 15
Mono: Playback 0 [0%] [off]
Simple mixer control 'Aux',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off] Capture [off]
Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Mono Output Select',0
Capabilities:
Mono:
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 15
Front Left: Capture 0 [0%] [off]
Front Right: Capture 0 [0%] [off]
Simple mixer control 'Mix',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mix Mono',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'External Amplifier Power Down',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge

#1 lore raw
Quoted 8 lines · Jeffrey Baker

This is related to the mail last week regarding the Asus P4PE with ad1980 sound chip. I got an Asus P4P800 with the ad1985. The intel8x0 driver works but there are problems with the sound routing. There is no sound at all coming from the main (line out) output. If I plug headphones into the line in jack, there is sound but it appears to be some kind of surround output, because it lacks all low frequencies entirely. No sound comes from the microphone jack.

Quoted 5 lines

I think the problem may be related to the "intelligent" jack sensing built into this hardware. It is supposed to be able to detect when you've got your headphones plugged into the wrong jack and reroute the audio. Either that, or the chip is stuck in some surround mode that isn't quite working.

Hi. It helps to read the datasheet. Although this isn't stated in the motherboard's documentation, the headphone amplifier is, in fact, connected to the line-in jack. There is a register (0x76) which controls the input for the headphone amp. It can be either 0 for the surround DAC or 1 for the mixer. By default it is 0. This explains why I am hearing high-passed surround audio from the headphones.

I glanced at intel8x0.c, but it wasn't immediately obvious how to set registers on the codec.

-jwb

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge

#2 lore raw
Quoted 23 lines · Jeffrey Baker
Quoted 8 lines · Jeffrey Baker

This is related to the mail last week regarding the Asus P4PE with ad1980 sound chip. I got an Asus P4P800 with the ad1985. The intel8x0 driver works but there are problems with the sound routing. There is no sound at all coming from the main (line out) output. If I plug headphones into the line in jack, there is sound but it appears to be some kind of surround output, because it lacks all low frequencies entirely. No sound comes from the microphone jack.

Quoted 5 lines

I think the problem may be related to the "intelligent" jack sensing built into this hardware. It is supposed to be able to detect when you've got your headphones plugged into the wrong jack and reroute the audio. Either that, or the chip is stuck in some surround mode that isn't quite working.

Hi. It helps to read the datasheet. Although this isn't stated in the motherboard's documentation, the headphone amplifier is, in fact, connected to the line-in jack. There is a register (0x76) which controls the input for the headphone amp. It can be either 0 for the surround DAC or 1 for the mixer. By default it is 0. This explains why I am hearing high-passed surround audio from the headphones.

Quoted 2 lines

I glanced at intel8x0.c, but it wasn't immediately obvious how to set registers on the codec.

Ah OK. I added this patch to ac97_codec.c:

root/ac97_codec.c 2003-05-18 14:12:27.000000000 -0700 renamed from ac97_codec.c 2003-04-11 00:45:23.000000000 -0700 +1 -0
@@ -104,6 +104,7 @@
 { 0x41445363, 0xffffffff, "AD1886A",           patch_ad1881,   NULL },
 { 0x41445370, 0xffffffff, "AD1980",            patch_ad1980,   NULL },
 { 0x41445372, 0xffffffff, "AD1981A",           patch_ad1881,   NULL },
+{ 0x41445375, 0xffffffff, "AD1985",            patch_ad1980,   NULL },
 { 0x414c4300, 0xfffffff0, "RL5306",            NULL,           NULL },
 { 0x414c4310, 0xfffffff0, "RL5382",            NULL,           NULL },
 { 0x414c4320, 0xfffffff0, "RL5383",            NULL,           NULL },

This makes proper headphone-power audio emerge from the line-out jack. But, the main level is controlled by the "Surround" slider in the mixer, which isn't exposed to the OSS mixer interface.

It seems like mixer routing for this codec is a little screwed up. If the SURR_OUT and LINE_OUT are going to be swapped once in software (reg 0x76 <- 0x420), and then the motherboard vendor is swapping them again in hardware (by wiring the SURR_OUT/HP_OUT pin to the line out and the LINE_OUT to the LINE_IN), it's all very confusing.

What needs to happen to make the mixer sliders correspond to their actual effects?

-jwb

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge

#3 lore raw

At Sun, 18 May 2003 14:17:25 -0700,

Quoted 34 lines · Jeffrey Baker
Quoted 23 lines · Jeffrey Baker
Quoted 8 lines · Jeffrey Baker

This is related to the mail last week regarding the Asus P4PE with ad1980 sound chip. I got an Asus P4P800 with the ad1985. The intel8x0 driver works but there are problems with the sound routing. There is no sound at all coming from the main (line out) output. If I plug headphones into the line in jack, there is sound but it appears to be some kind of surround output, because it lacks all low frequencies entirely. No sound comes from the microphone jack.

Quoted 5 lines

I think the problem may be related to the "intelligent" jack sensing built into this hardware. It is supposed to be able to detect when you've got your headphones plugged into the wrong jack and reroute the audio. Either that, or the chip is stuck in some surround mode that isn't quite working.

Hi. It helps to read the datasheet. Although this isn't stated in the motherboard's documentation, the headphone amplifier is, in fact, connected to the line-in jack. There is a register (0x76) which controls the input for the headphone amp. It can be either 0 for the surround DAC or 1 for the mixer. By default it is 0. This explains why I am hearing high-passed surround audio from the headphones.

Quoted 2 lines

I glanced at intel8x0.c, but it wasn't immediately obvious how to set registers on the codec.

Ah OK. I added this patch to ac97_codec.c:

root/ac97_codec.c 2003-05-18 14:12:27.000000000 -0700 line 110

Quoted 7 lines
root/ac97_codec.c 2003-05-18 14:12:27.000000000 -0700 renamed from ac97_codec.c 2003-04-11 00:45:23.000000000 -0700 +1 -0
@@ -104,6 +104,7 @@
 { 0x41445363, 0xffffffff, "AD1886A",           patch_ad1881,   NULL },
 { 0x41445370, 0xffffffff, "AD1980",            patch_ad1980,   NULL },
 { 0x41445372, 0xffffffff, "AD1981A",           patch_ad1881,   NULL },
+{ 0x41445375, 0xffffffff, "AD1985",            patch_ad1980,   NULL },
 { 0x414c4300, 0xfffffff0, "RL5306",            NULL,           NULL },
 { 0x414c4310, 0xfffffff0, "RL5382",            NULL,           NULL },
 { 0x414c4320, 0xfffffff0, "RL5383",            NULL,           NULL },

thanks, the above patch is already in cvs.

Quoted 11 lines

This makes proper headphone-power audio emerge from the line-out jack. But, the main level is controlled by the "Surround" slider in the mixer, which isn't exposed to the OSS mixer interface.

It seems like mixer routing for this codec is a little screwed up. If the SURR_OUT and LINE_OUT are going to be swapped once in software (reg 0x76 <- 0x420), and then the motherboard vendor is swapping them again in hardware (by wiring the SURR_OUT/HP_OUT pin to the line out and the LINE_OUT to the LINE_IN), it's all very confusing.

Quoted 2 lines

What needs to happen to make the mixer sliders correspond to their actual effects?

then we'll need to stop swapping them.
or, more simply, we can swap the controls surround and line-out.

anyway, the workaround would be device-basis. please let me know the sub vendor/device id (output of lspci -vv and lspci -nvv).

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software.
http://www.objectstore.net/sourceforge

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

At Mon, 19 May 2003 09:01:02 -0300,

Quoted 5 lines · Andreas
Quoted 3 lines · Takashi Iwai

then we'll need to stop swapping them.
or, more simply, we can swap the controls surround and line-out.

Quoted 8 lines
Quoted 2 lines

anyway, the workaround would be device-basis. please let me know the sub vendor/device id (output of lspci -vv and lspci -nvv).

I've got a similar problem, line-out is controlled by the surround slider, but I didn't notice any sound distortion or low quality. Just so that more data can be gathered, here is my lspci and amixer output.

I'm currently using 0.9.2 and this is a P4PE Asus motherboard (845PE chipset):

i put a workaround for your mobo. could you try the cvs version?

thanks.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge