2002-03-14 15:28:10

by Jörg Prante

[permalink] [raw]
Subject: [PATCH] ALSA and IrDA workaround for Dell Inspiron


Here is a patch to solve an IrDA lockup when ALSA OSS is used with IrDA on
Dell Inspiron 8100. Maybe some other laptops are concerned, too. Please test
if other machines can use this patch.

The ALSA OSS initialization code performs a hard reset on the IrDA port of a
Dell Inspiron. No more data can be sent or received via the infrared port
until a cold restart of the system (power down). The lockup will always
happen when ALSA is started after IrDA which is normally the case.

I found the ALSA OSS AC97 modem probe is the reason. This patch enables a
workaround by a kernel option CONFIG_SOUND_NO_MODEM_PROBE which
disables the modem probe if the option is enabled.

The patch will be included in my upcoming kernel patch set -jp8.

Please reply with CC since I am not subscribed to the Linux kernel mailing
list.

Cheers,

J?rg Prante <[email protected]>


Attachments:
alsa-irda-no-modem-probe.patch (1.38 kB)

2002-03-14 19:37:54

by Jaroslav Kysela

[permalink] [raw]
Subject: Re: [PATCH] ALSA and IrDA workaround for Dell Inspiron

On Thu, 14 Mar 2002, [iso-8859-15] J?rg Prante wrote:

>
> Here is a patch to solve an IrDA lockup when ALSA OSS is used with IrDA on
> Dell Inspiron 8100. Maybe some other laptops are concerned, too. Please test
> if other machines can use this patch.
>
> The ALSA OSS initialization code performs a hard reset on the IrDA port of a
> Dell Inspiron. No more data can be sent or received via the infrared port
> until a cold restart of the system (power down). The lockup will always
> happen when ALSA is started after IrDA which is normally the case.
>
> I found the ALSA OSS AC97 modem probe is the reason. This patch enables a
> workaround by a kernel option CONFIG_SOUND_NO_MODEM_PROBE which
> disables the modem probe if the option is enabled.
>
> The patch will be included in my upcoming kernel patch set -jp8.
>
> Please reply with CC since I am not subscribed to the Linux kernel mailing
> list.

A small note: The directory linux/sound/oss contains only OSS sources
moved from linux/drivers/sound. They are not related with ALSA in any way.
ALSA AC97 codec routines don't touch modem registers at all.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com