Toshiba laptop sound config

Bob_Tracy (rct@gherkin.sa.wlk.com)
Thu, 20 Aug 1998 08:16:15 -0500 (CDT)


The CS4232 sound config for the Tecra 730XCDT (and other Toshibas I
would assume) is a bit non-standard. Specifically, the audio I/O base
address is offset by 4 relative to the standard addresses offered in
the linux/drivers/sound/Config.in file. This issue is mentioned in a
Toshiba laptop Linux configuration note I read *somewhere* on the web.

Anyway, I've had to apply something similar to the following patch ever
since buying one of the beasts:

====--CUT HERE--====
--- linux/drivers/sound/Config.in.orig Mon Aug 3 13:41:27 1998
+++ linux/drivers/sound/Config.in Mon Aug 3 13:42:42 1998
@@ -156,7 +156,7 @@

dep_tristate 'Support for Crystal CS4232 based (PnP) cards' CONFIG_SOUND_CS4232 $CONFIG_SOUND_OSS
if [ "$CONFIG_SOUND_CS4232" = "y" ]; then
- hex 'CS4232 audio I/O base 530, 604, E80 or F40' CONFIG_CS4232_BASE 530
+ hex 'CS4232 audio I/O base 534, 608, E84 or F44' CONFIG_CS4232_BASE 534
int 'CS4232 audio IRQ 5, 7, 9, 11, 12 or 15' CONFIG_CS4232_IRQ 11
int 'CS4232 audio DMA 0, 1 or 3' CONFIG_CS4232_DMA 0
int 'CS4232 second (duplex) DMA 0, 1 or 3' CONFIG_CS4232_DMA2 3
====--CUT HERE--====

There are any number of cleaner ways to handle this that don't butcher
Config.in for everyone else with a CS4232, which is why I'm raising the
issue :-). Maybe something like...

if [ "$CONFIG_SOUND_CS4232" = "y" ]; then
bool 'Toshiba laptop' CONFIG_CS4232_BASE_OFFSET
if [ "$CONFIG_CS4232_BASE_OFFSET" = "y" ]; then
hex 'CS4232 audio I/O base 534, 608, E84 or F44' CONFIG_CS4232_BASE 534
else
hex 'CS4232 audio I/O base 530, 604, E80 or F40' CONFIG_CS4232_BASE 530
fi
(...)

I guess it depends on whether Toshiba laptops are the only special case.

-- 
Bob Tracy               |  "They couldn't hit an elephant at this dist- "
Firewall Security Corp. |   - Last words of Union General John Sedgwick,
rct@frus.com            |  Battle of Spotsylvania Court House, U.S. Civil War

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html