Skip to contentSkip to conversation

snd_hda_intel reports -ENOMEM on probe

DISCUSSION Takashi Iwai 1 participant 2 messages May 28, 2008 – May 29, 2008 3 messages not in the archive

lore
Share & tools
lore

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

#1 lore raw

At Tue, 27 May 2008 19:01:34 +0200,

Quoted 10 lines · Pierre Ossman

Since I upgraded my bios (in which the changelog mentioned nothing about sound changes, damn MSI), my onboard audio no longer work. I get the following in dmesg:

hda-intel: Error creating card!
HDA Intel: probe of 0000:00:14.2 failed with error -12

-12 is -ENOMEM so I'm guessing some BIOS table is involved and tricks the driver into allocating too much memory.

Try to turn on CONFIG_SND_DEBUG=y. If you still don't get any relevant error messages, it's really an error from kmalloc().

Usually, it's a conflict of sound slots to be assigned, etc.

Takashi

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

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

#4 lore raw

At Wed, 28 May 2008 23:33:43 +0200,

Quoted 6 lines · Pierre Ossman

I missed one line that was part of the module's output:

cannot find the slot for index 1 (range 0-1), error: -16

This comes before the other two.

Then I guess it was just a coincidence that the kernel with CONFIG_SND_DEBUG=y worked.

Take a look at /etc/modprobe.d/sound or whatever module config file containing the sound setup. You must have a line with

options snd-XXX index=1

and this conflicts with the actual hardware. Take a look at /proc/asound/cards. The secondary slot must be already occupied by other drivers that are auto-loaded beforehand.

Either add a proper index to that driver as well, or use slots option for snd module. The latter is a new option introduced on 2.6.25. See ALSA-Configuration.txt for details.

Takashi