Skip to contentSkip to conversation

Alsa support for Realtek ALC850

DISCUSSION Dirk Jagdmann 3 participants 5 messages Apr 18, 2005 – Apr 19, 2005

lore
Share & tools
lore
#0 lore raw

Hello developers,

I recently purchased an ASUS P4P800-E mainboard which features i865 chipset with an Realtek ALC850 AC'97 Codec. This codec is recognized by the i8x0 drivers (I tested this with Alsa 1.0.8) as an 6 channel device. However this chip supports 8 channels, but this is not supported/recognized by Alsa currently. I had a quick look into the i8x0 sources, but did not find the correct spot, where to patch the source to support 8 channels. I ask you for assistance on this subject. Please tell me which contents of /proc or /sys you'd like to see or please give me some pointers into the source.

Signature · 10 lines
---> doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#1 lore raw
Quoted 7 lines · Dirk Jagdmann

I recently purchased an ASUS P4P800-E mainboard which features i865 chipset with an Realtek ALC850 AC'97 Codec. This codec is recognized by the i8x0 drivers (I tested this with Alsa 1.0.8) as an 6 channel device. However this chip supports 8 channels, but this is not supported/recognized by Alsa currently. I had a quick look into the i8x0 sources, but did not find the correct spot, where to patch the source to support 8 channels.

The ICH5 southbridge does not support 8-channel streams. However, it would be possible to combine the standard 6-channel device and the SPDIF device into an 8-channel device, if the codec expects the last two channels on the AC'97 slots usually used for SPDIF.

Put the following into your ~/.asoundrc file:

pcm.ch123456 {
type hw
card 0
device 0
}

pcm.ch78 {
type hw
card 0
device 4
}

pcm.eight {
	type plug
	slave.pcm {
		type multi
		slaves.a {
			pcm ch123456
			channels 6
		}
		slaves.b {
			pcm ch78
			channels 2
		}
		bindings [
			{ slave a channel 0 }
			{ slave a channel 1 }
			{ slave a channel 2 }
			{ slave a channel 3 }
			{ slave a channel 4 }
			{ slave a channel 5 }
			{ slave b channel 0 }
			{ slave b channel 1 }
		]
	}
}

However, it might be possible that the chip needs some configuration bit to be set that the driver doesn't yet know about.

HTH
Clemens

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw
Quoted 1 line

The ICH5 southbridge does not support 8-channel streams. However, it

My manual says it's an ICH5R. The board is pretty new. The datasheet for the ALC850 codec claims it can do 8 channel sound. Thus I have just made a check (under windows) by playing back an 8 channel wav. All eight channels are clearly present on the 4 stereo 3.5mm (onboard jacks). Further the S/PDIF connector is the same as the first two channels (front l/r). So I conclude I have a true 8 channel codec.

Quoted 2 lines

However, it might be possible that the chip needs some configuration bit to be set that the driver doesn't yet know about.

I say yes.

So, how can I help in supporting this chip.

Website for ALC850: http://www.realtek.com.tw/products/products1-2.aspx?modelid=2003101

Signature · 10 lines
---> doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
#3 lore raw

I should have mentioned that this setup is currently recognized and working as a 6 channel device with Alsa. The first 6 channels work flawlessly, but channel 7+8 can not be accessed.

Signature · 10 lines
---> doj / cubic
----> http://cubic.org/~doj
-----> http://llg.cubic.org


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
#4 lore raw

At Tue, 19 Apr 2005 10:39:15 +0200,

Quoted 4 lines · Dirk Jagdmann

I should have mentioned that this setup is currently recognized and working as a 6 channel device with Alsa. The first 6 channels work flawlessly, but channel 7+8 can not be accessed.

According to the spec, we'll need to flip the register 0x6a bit 9/10 and adjust Aux volume, at least.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728