* intel8x0, ad198x, no sound @ 2003-05-18 19:46 Jeffrey Baker 2003-05-18 20:27 ` Jeffrey Baker 0 siblings, 1 reply; 5+ messages in thread From: Jeffrey Baker @ 2003-05-18 19:46 UTC (permalink / raw) To: alsa-devel 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: intel8x0, ad198x, no sound 2003-05-18 19:46 intel8x0, ad198x, no sound Jeffrey Baker @ 2003-05-18 20:27 ` Jeffrey Baker 2003-05-18 21:17 ` Jeffrey Baker 0 siblings, 1 reply; 5+ messages in thread From: Jeffrey Baker @ 2003-05-18 20:27 UTC (permalink / raw) To: alsa-devel On Sun, May 18, 2003 at 12:46:17PM -0700, Jeffrey Baker wrote: > 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. 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: intel8x0, ad198x, no sound 2003-05-18 20:27 ` Jeffrey Baker @ 2003-05-18 21:17 ` Jeffrey Baker 2003-05-19 9:42 ` Takashi Iwai 0 siblings, 1 reply; 5+ messages in thread From: Jeffrey Baker @ 2003-05-18 21:17 UTC (permalink / raw) To: alsa-devel On Sun, May 18, 2003 at 01:27:06PM -0700, Jeffrey Baker wrote: > On Sun, May 18, 2003 at 12:46:17PM -0700, Jeffrey Baker wrote: > > 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. > > 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. Ah OK. I added this patch to ac97_codec.c: --- ac97_codec.c 2003-04-11 00:45:23.000000000 -0700 +++ /root/ac97_codec.c 2003-05-18 14:12:27.000000000 -0700 @@ -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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Re: intel8x0, ad198x, no sound 2003-05-18 21:17 ` Jeffrey Baker @ 2003-05-19 9:42 ` Takashi Iwai [not found] ` <20030519120102.GI16952@netbank.com.br> 0 siblings, 1 reply; 5+ messages in thread From: Takashi Iwai @ 2003-05-19 9:42 UTC (permalink / raw) To: Jeffrey Baker; +Cc: alsa-devel At Sun, 18 May 2003 14:17:25 -0700, Jeffrey Baker wrote: > > On Sun, May 18, 2003 at 01:27:06PM -0700, Jeffrey Baker wrote: > > On Sun, May 18, 2003 at 12:46:17PM -0700, Jeffrey Baker wrote: > > > 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. > > > > 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. > > Ah OK. I added this patch to ac97_codec.c: > > --- ac97_codec.c 2003-04-11 00:45:23.000000000 -0700 > +++ /root/ac97_codec.c 2003-05-18 14:12:27.000000000 -0700 > @@ -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. > 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? 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20030519120102.GI16952@netbank.com.br>]
* Re: Re: intel8x0, ad198x, no sound [not found] ` <20030519120102.GI16952@netbank.com.br> @ 2003-05-20 13:02 ` Takashi Iwai 0 siblings, 0 replies; 5+ messages in thread From: Takashi Iwai @ 2003-05-20 13:02 UTC (permalink / raw) To: Andreas; +Cc: Jeffrey Baker, alsa-devel At Mon, 19 May 2003 09:01:02 -0300, Andreas wrote: > > On Mon, May 19, 2003 at 11:42:40AM +0200, Takashi Iwai wrote: > > 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). > > 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-05-20 13:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-18 19:46 intel8x0, ad198x, no sound Jeffrey Baker
2003-05-18 20:27 ` Jeffrey Baker
2003-05-18 21:17 ` Jeffrey Baker
2003-05-19 9:42 ` Takashi Iwai
[not found] ` <20030519120102.GI16952@netbank.com.br>
2003-05-20 13:02 ` Takashi Iwai
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.