Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User

Sound card drivers must be modules?

 

 

Gentoo user RSS feed   Index | Next | Previous | View Threaded


emailgrant at gmail

Nov 4, 2009, 8:48 AM

Post #1 of 17 (61 views)
Permalink
Sound card drivers must be modules?

I'm trying to configure my laptop's internal sound card and external
USB sound card. I have /etc/modprobe.d/alsa.conf:

alias snd-card-0 snd-hda-intel
options snd-hda-intel index=0

alias snd-card-1 snd-usb-audio
options snd-usb-audio index=1

and restarting alsasound I get:

WARNING: Module snd_hda_intel not found.
WARNING: Module snd_usb_audio not found.

Do I have to compile both drivers as modules in order to use them both?

- Grant


emailgrant at gmail

Nov 4, 2009, 9:25 AM

Post #2 of 17 (60 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

>> I'm trying to configure my laptop's internal sound card and external
>> USB sound card.  I have /etc/modprobe.d/alsa.conf:
>>
>> alias snd-card-0 snd-hda-intel
>> options snd-hda-intel index=0
>>
>> alias snd-card-1 snd-usb-audio
>> options snd-usb-audio index=1
>>
>> and restarting alsasound I get:
>>
>> WARNING: Module snd_hda_intel not found.
>> WARNING: Module snd_usb_audio not found.
>>
>> Do I have to compile both drivers as modules in order to use them both?
>
> For the built-in chip, no.

But I get the warning about "Module snd_hda_intel not found" which is
the built-in chip.

- Grant


> For the USB card, not if you have it plugged in at boot time.  But better
> build this one as a module since USB devices can be plugged in and out at
> random.


neil at digimed

Nov 4, 2009, 9:27 AM

Post #3 of 17 (60 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On Wed, 4 Nov 2009 09:25:21 -0800, Grant wrote:

> But I get the warning about "Module snd_hda_intel not found" which is
> the built-in chip.

That's because you don't have that module, it's built into the kernel.
This also means the the options lines in alsa.conf will not do anything.


--
Neil Bothwick

Light travels faster than sound. This is why some people appear bright
until you hear them speak.
Attachments: signature.asc (0.19 KB)


emailgrant at gmail

Nov 4, 2009, 9:30 AM

Post #4 of 17 (60 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

>> But I get the warning about "Module snd_hda_intel not found" which is
>> the built-in chip.
>
> That's because you don't have that module, it's built into the kernel.
> This also means the the options lines in alsa.conf will not do anything.

OK, so I need to build them as modules, or I need to change those
lines in alsa.conf? If I can avoid building them as modules I'd like
to. How can those lines be written when the drivers are built into
the kernel?

- Grant


realnc at arcor

Nov 4, 2009, 10:20 AM

Post #5 of 17 (60 views)
Permalink
Re: Sound card drivers must be modules? [In reply to]

On 11/04/2009 06:48 PM, Grant wrote:
> I'm trying to configure my laptop's internal sound card and external
> USB sound card. I have /etc/modprobe.d/alsa.conf:
>
> alias snd-card-0 snd-hda-intel
> options snd-hda-intel index=0
>
> alias snd-card-1 snd-usb-audio
> options snd-usb-audio index=1
>
> and restarting alsasound I get:
>
> WARNING: Module snd_hda_intel not found.
> WARNING: Module snd_usb_audio not found.
>
> Do I have to compile both drivers as modules in order to use them both?

For the built-in chip, no.

For the USB card, not if you have it plugged in at boot time. But
better build this one as a module since USB devices can be plugged in
and out at random.


caneko at gmail

Nov 4, 2009, 12:02 PM

Post #6 of 17 (60 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On Wed, Nov 4, 2009 at 11:30 AM, Grant <emailgrant[at]gmail.com> wrote:
>>> But I get the warning about "Module snd_hda_intel not found" which is
>>> the built-in chip.
>>
>> That's because you don't have that module, it's built into the kernel.
>> This also means the the options lines in alsa.conf will not do anything.
>
> OK, so I need to build them as modules, or I need to change those
> lines in alsa.conf?  If I can avoid building them as modules I'd like
> to.  How can those lines be written when the drivers are built into
> the kernel?

You pass the parameters in the kernel boot line. For examen, in my
grub.conf I have:

title Gentoo Linux (linux-2.6.31.5)
root (hd0,3)
kernel /boot/kernel-2.6.31.5 root=/dev/sda4 quiet udev
splash=silent,fadein,theme:natural_gentoo CONSOLE=/dev/tty1
iwlagn.swcrypto=1 snd-hda-intel.model=basic
initrd /boot/initrd-2.6.31.5

I have two parameters for my built-in modules: for the iwlagn module,
the parameter swcrypto=1, and for the snd-hda-intel the parameter
model= basic. In general, for a built-in module called "module", you
pass the parameter "parm" with value "val" this way:

module.parm=val

As of now, in my laptop I have *all* my modules built-in. In other
machines, I have modules where there is no other option (like nvidia
drivers, LIRC, ndiswrapper, stuff like that).

Good luck.
--
Canek Peláez Valdés
Instituto de Matemáticas
Universidad Nacional Autónoma de México


w41ter at gmail

Nov 4, 2009, 12:20 PM

Post #7 of 17 (60 views)
Permalink
Re: Sound card drivers must be modules? [In reply to]

On 11/04/2009 09:30 AM, Grant wrote:
>>> But I get the warning about "Module snd_hda_intel not found" which is
>>> the built-in chip.
>>
>> That's because you don't have that module, it's built into the kernel.
>> This also means the the options lines in alsa.conf will not do anything.
>
> OK, so I need to build them as modules, or I need to change those
> lines in alsa.conf? If I can avoid building them as modules I'd like
> to. How can those lines be written when the drivers are built into
> the kernel?

This is from /etc/conf.d/alsasound:

# LOAD_ON_START:
# Do you want to load sound modules when alsasound starts?
# Note: The Gentoo ALSA developers encourage you to build your sound
# drivers into the kernel unless the device is hotpluggable or
# you need to supply specific options (such as model= to HD-Audio).
# no - Do not load modules
# yes - Load modules
LOAD_ON_START="yes"

I've never had a hot-pluggable sound card, so I can only guess whether
hald would somehow load that sound module for you.

So say LOAD_ON_START="no", compile the on-board sound driver into the
kernel and do the other one as a module -- and let us know if it works
when you plug it in :o)


michaelkintzios at gmail

Nov 4, 2009, 2:44 PM

Post #8 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On Wednesday 04 November 2009 20:02:03 Canek Peláez Valdés wrote:
> On Wed, Nov 4, 2009 at 11:30 AM, Grant <emailgrant[at]gmail.com> wrote:
> >>> But I get the warning about "Module snd_hda_intel not found" which is
> >>> the built-in chip.
> >>
> >> That's because you don't have that module, it's built into the kernel.
> >> This also means the the options lines in alsa.conf will not do anything.
> >
> > OK, so I need to build them as modules, or I need to change those
> > lines in alsa.conf? If I can avoid building them as modules I'd like
> > to. How can those lines be written when the drivers are built into
> > the kernel?
>
> You pass the parameters in the kernel boot line. For examen, in my
> grub.conf I have:
>
> title Gentoo Linux (linux-2.6.31.5)
> root (hd0,3)
> kernel /boot/kernel-2.6.31.5 root=/dev/sda4 quiet udev
> splash=silent,fadein,theme:natural_gentoo CONSOLE=/dev/tty1
> iwlagn.swcrypto=1 snd-hda-intel.model=basic
> initrd /boot/initrd-2.6.31.5
>
> I have two parameters for my built-in modules: for the iwlagn module,
> the parameter swcrypto=1, and for the snd-hda-intel the parameter
> model= basic. In general, for a built-in module called "module", you
> pass the parameter "parm" with value "val" this way:
>
> module.parm=val
>
> As of now, in my laptop I have *all* my modules built-in. In other
> machines, I have modules where there is no other option (like nvidia
> drivers, LIRC, ndiswrapper, stuff like that).

I used to have my alsa drivers which are different to the OP, built in the
kernel. For years on end. Then alsasound stop working - something like 5
kernels back, can't recall exactly. I had to build alsa separately as
modules. Haven't tried to go back to building them in the kernel again.

YMMV.
--
Regards,
Mick
Attachments: signature.asc (0.19 KB)


emailgrant at gmail

Nov 5, 2009, 7:25 AM

Post #9 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

>>>> But I get the warning about "Module snd_hda_intel not found" which is
>>>> the built-in chip.
>>>
>>> That's because you don't have that module, it's built into the kernel.
>>> This also means the the options lines in alsa.conf will not do anything.
>>
>> OK, so I need to build them as modules, or I need to change those
>> lines in alsa.conf?  If I can avoid building them as modules I'd like
>> to.  How can those lines be written when the drivers are built into
>> the kernel?
>
> This is from /etc/conf.d/alsasound:
>
> # LOAD_ON_START:
> # Do you want to load sound modules when alsasound starts?
> # Note: The Gentoo ALSA developers encourage you to build your sound
> #       drivers into the kernel unless the device is hotpluggable or
> #       you need to supply specific options (such as model= to HD-Audio).
> # no - Do not load modules
> # yes - Load modules
> LOAD_ON_START="yes"
>
> I've never had a hot-pluggable sound card, so I can only guess whether
> hald would somehow load that sound module for you.
>
> So say LOAD_ON_START="no", compile the on-board sound driver into the
> kernel and do the other one as a module -- and let us know if it works
> when you plug it in :o)

Thanks, I will try that right away. Is it necessary for me to keep
the USB sound driver as a module since it could be plugged in or not?
I can't build that one in too?

- Grant


caneko at gmail

Nov 5, 2009, 7:47 AM

Post #10 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On Thu, Nov 5, 2009 at 9:53 AM, Valmor de Almeida <val.gentoo[at]gmail.com> wrote:
> Canek Peláez Valdés wrote:
>> On Wed, Nov 4, 2009 at 11:30 AM, Grant <emailgrant[at]gmail.com> wrote:
> ...[snip]...
>>
>> As of now, in my laptop I have *all* my modules built-in. In other
>> machines, I have modules where there is no other option (like nvidia
>> drivers, LIRC, ndiswrapper, stuff like that).
>>
>> Good luck.
>
> Just curious. Are you able to play an adobe flash video with audio using
>  a flash firefox plugin? (if you have it installed by any chance).

Indeed I am able. Not only that; I also have PulseAudio running (and
loving it) in all my machines. Flash, MPlayer and all the GStreamer
applications work without a hitch.

Also, in my laptop (amd64 with Intel Core2 Duo) I don't have any
emul-linux-* package; both Firefox and the Flash plugin (I use
www-plugins/adobe-flash) are the 64bit versions.

Regards.
--
Canek Peláez Valdés
Instituto de Matemáticas
Universidad Nacional Autónoma de México


caneko at gmail

Nov 5, 2009, 7:51 AM

Post #11 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On Thu, Nov 5, 2009 at 9:25 AM, Grant <emailgrant[at]gmail.com> wrote:
>>>>> But I get the warning about "Module snd_hda_intel not found" which is
>>>>> the built-in chip.
>>>>
>>>> That's because you don't have that module, it's built into the kernel.
>>>> This also means the the options lines in alsa.conf will not do anything.
>>>
>>> OK, so I need to build them as modules, or I need to change those
>>> lines in alsa.conf?  If I can avoid building them as modules I'd like
>>> to.  How can those lines be written when the drivers are built into
>>> the kernel?
>>
>> This is from /etc/conf.d/alsasound:
>>
>> # LOAD_ON_START:
>> # Do you want to load sound modules when alsasound starts?
>> # Note: The Gentoo ALSA developers encourage you to build your sound
>> #       drivers into the kernel unless the device is hotpluggable or
>> #       you need to supply specific options (such as model= to HD-Audio).
>> # no - Do not load modules
>> # yes - Load modules
>> LOAD_ON_START="yes"
>>
>> I've never had a hot-pluggable sound card, so I can only guess whether
>> hald would somehow load that sound module for you.
>>
>> So say LOAD_ON_START="no", compile the on-board sound driver into the
>> kernel and do the other one as a module -- and let us know if it works
>> when you plug it in :o)
>
> Thanks, I will try that right away.  Is it necessary for me to keep
> the USB sound driver as a module since it could be plugged in or not?
> I can't build that one in too?

Of course you can. If the module is not being used (i.e., the USB card
is not connected), it barely uses resources. In my desktop I have the
gspca webcam module built-in, even if my webcam is not connected all
the time. The same thing with things like USB gamepads.

Regards.
--
Canek Peláez Valdés
Instituto de Matemáticas
Universidad Nacional Autónoma de México


val.gentoo at gmail

Nov 5, 2009, 7:53 AM

Post #12 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

Canek Peláez Valdés wrote:
> On Wed, Nov 4, 2009 at 11:30 AM, Grant <emailgrant[at]gmail.com> wrote:
...[snip]...
>
> As of now, in my laptop I have *all* my modules built-in. In other
> machines, I have modules where there is no other option (like nvidia
> drivers, LIRC, ndiswrapper, stuff like that).
>
> Good luck.

Just curious. Are you able to play an adobe flash video with audio using
a flash firefox plugin? (if you have it installed by any chance).

Thanks,

--
Valmor


jarausch at igpm

Nov 5, 2009, 8:06 AM

Post #13 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On 5 Nov, Canek Peláez Valdés wrote:
...
> Also, in my laptop (amd64 with Intel Core2 Duo) I don't have any
> emul-linux-* package; both Firefox and the Flash plugin (I use
> www-plugins/adobe-flash) are the 64bit versions.

Then you have built firefox from source? Or is there a 64 bit version
of mozilla-firefox-bin around?

Thanks,
Helmut.

--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany


rdalek1967 at gmail

Nov 5, 2009, 8:13 AM

Post #14 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

Canek Peláez Valdés wrote:
> On Thu, Nov 5, 2009 at 9:25 AM, Grant <emailgrant[at]gmail.com> wrote:
>
>>>>>> But I get the warning about "Module snd_hda_intel not found" which is
>>>>>> the built-in chip.
>>>>>>
>>>>> That's because you don't have that module, it's built into the kernel.
>>>>> This also means the the options lines in alsa.conf will not do anything.
>>>>>
>>>> OK, so I need to build them as modules, or I need to change those
>>>> lines in alsa.conf? If I can avoid building them as modules I'd like
>>>> to. How can those lines be written when the drivers are built into
>>>> the kernel?
>>>>
>>> This is from /etc/conf.d/alsasound:
>>>
>>> # LOAD_ON_START:
>>> # Do you want to load sound modules when alsasound starts?
>>> # Note: The Gentoo ALSA developers encourage you to build your sound
>>> # drivers into the kernel unless the device is hotpluggable or
>>> # you need to supply specific options (such as model= to HD-Audio).
>>> # no - Do not load modules
>>> # yes - Load modules
>>> LOAD_ON_START="yes"
>>>
>>> I've never had a hot-pluggable sound card, so I can only guess whether
>>> hald would somehow load that sound module for you.
>>>
>>> So say LOAD_ON_START="no", compile the on-board sound driver into the
>>> kernel and do the other one as a module -- and let us know if it works
>>> when you plug it in :o)
>>>
>> Thanks, I will try that right away. Is it necessary for me to keep
>> the USB sound driver as a module since it could be plugged in or not?
>> I can't build that one in too?
>>
>
> Of course you can. If the module is not being used (i.e., the USB card
> is not connected), it barely uses resources. In my desktop I have the
> gspca webcam module built-in, even if my webcam is not connected all
> the time. The same thing with things like USB gamepads.
>
> Regards.
>

I agree. I have USB stuff and I don't use any modules except the nvidia
driver. Modules are I think a handy when you need to switch things on
and off but I have never used a module except to test a driver to see
which driver I need. Even then I go back and compile it in.

Dale

:-) :-)


paul.hartman+gentoo at gmail

Nov 5, 2009, 8:21 AM

Post #15 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On Thu, Nov 5, 2009 at 10:13 AM, Dale <rdalek1967[at]gmail.com> wrote:
> Canek Peláez Valdés wrote:
>> On Thu, Nov 5, 2009 at 9:25 AM, Grant <emailgrant[at]gmail.com> wrote:
>>
>>>>>>> But I get the warning about "Module snd_hda_intel not found" which is
>>>>>>> the built-in chip.
>>>>>>>
>>>>>> That's because you don't have that module, it's built into the kernel.
>>>>>> This also means the the options lines in alsa.conf will not do anything.
>>>>>>
>>>>> OK, so I need to build them as modules, or I need to change those
>>>>> lines in alsa.conf? If I can avoid building them as modules I'd like
>>>>> to. How can those lines be written when the drivers are built into
>>>>> the kernel?
>>>>>
>>>> This is from /etc/conf.d/alsasound:
>>>>
>>>> # LOAD_ON_START:
>>>> # Do you want to load sound modules when alsasound starts?
>>>> # Note: The Gentoo ALSA developers encourage you to build your sound
>>>> # drivers into the kernel unless the device is hotpluggable or
>>>> # you need to supply specific options (such as model= to HD-Audio).
>>>> # no - Do not load modules
>>>> # yes - Load modules
>>>> LOAD_ON_START="yes"
>>>>
>>>> I've never had a hot-pluggable sound card, so I can only guess whether
>>>> hald would somehow load that sound module for you.
>>>>
>>>> So say LOAD_ON_START="no", compile the on-board sound driver into the
>>>> kernel and do the other one as a module -- and let us know if it works
>>>> when you plug it in :o)
>>>>
>>> Thanks, I will try that right away. Is it necessary for me to keep
>>> the USB sound driver as a module since it could be plugged in or not?
>>> I can't build that one in too?
>>>
>>
>> Of course you can. If the module is not being used (i.e., the USB card
>> is not connected), it barely uses resources. In my desktop I have the
>> gspca webcam module built-in, even if my webcam is not connected all
>> the time. The same thing with things like USB gamepads.
>>
>> Regards.
>>
>
> I agree. I have USB stuff and I don't use any modules except the nvidia
> driver. Modules are I think a handy when you need to switch things on
> and off but I have never used a module except to test a driver to see
> which driver I need. Even then I go back and compile it in.

I'm the opposite, I prefer to do everything as a module when possible
(except for a few core drivers required to be built-in for booting).
Trying different models for alsa hda-intel module would have been no
fun if i had to reboot every time. rmmod and modprobe is so much
faster. :)


rdalek1967 at gmail

Nov 5, 2009, 8:42 AM

Post #16 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

Paul Hartman wrote:
> On Thu, Nov 5, 2009 at 10:13 AM, Dale <rdalek1967[at]gmail.com> wrote:
>
>> Canek Peláez Valdés wrote:
>>
>>> On Thu, Nov 5, 2009 at 9:25 AM, Grant <emailgrant[at]gmail.com> wrote:
>>>
>>>
>>>>>>>> But I get the warning about "Module snd_hda_intel not found" which is
>>>>>>>> the built-in chip.
>>>>>>>>
>>>>>>>>
>>>>>>> That's because you don't have that module, it's built into the kernel.
>>>>>>> This also means the the options lines in alsa.conf will not do anything.
>>>>>>>
>>>>>>>
>>>>>> OK, so I need to build them as modules, or I need to change those
>>>>>> lines in alsa.conf? If I can avoid building them as modules I'd like
>>>>>> to. How can those lines be written when the drivers are built into
>>>>>> the kernel?
>>>>>>
>>>>>>
>>>>> This is from /etc/conf.d/alsasound:
>>>>>
>>>>> # LOAD_ON_START:
>>>>> # Do you want to load sound modules when alsasound starts?
>>>>> # Note: The Gentoo ALSA developers encourage you to build your sound
>>>>> # drivers into the kernel unless the device is hotpluggable or
>>>>> # you need to supply specific options (such as model= to HD-Audio).
>>>>> # no - Do not load modules
>>>>> # yes - Load modules
>>>>> LOAD_ON_START="yes"
>>>>>
>>>>> I've never had a hot-pluggable sound card, so I can only guess whether
>>>>> hald would somehow load that sound module for you.
>>>>>
>>>>> So say LOAD_ON_START="no", compile the on-board sound driver into the
>>>>> kernel and do the other one as a module -- and let us know if it works
>>>>> when you plug it in :o)
>>>>>
>>>>>
>>>> Thanks, I will try that right away. Is it necessary for me to keep
>>>> the USB sound driver as a module since it could be plugged in or not?
>>>> I can't build that one in too?
>>>>
>>>>
>>> Of course you can. If the module is not being used (i.e., the USB card
>>> is not connected), it barely uses resources. In my desktop I have the
>>> gspca webcam module built-in, even if my webcam is not connected all
>>> the time. The same thing with things like USB gamepads.
>>>
>>> Regards.
>>>
>>>
>> I agree. I have USB stuff and I don't use any modules except the nvidia
>> driver. Modules are I think a handy when you need to switch things on
>> and off but I have never used a module except to test a driver to see
>> which driver I need. Even then I go back and compile it in.
>>
>
> I'm the opposite, I prefer to do everything as a module when possible
> (except for a few core drivers required to be built-in for booting).
> Trying different models for alsa hda-intel module would have been no
> fun if i had to reboot every time. rmmod and modprobe is so much
> faster. :)
>
>

That is why I said I have used them to test a driver to see if it works
or not. It is easier to test them that way but once you find the right
one, you don't need it to be a module unless you have some reason to
change them from time to time and don't want to reboot.

Either way works tho.

Dale

:-) :-)


caneko at gmail

Nov 5, 2009, 12:02 PM

Post #17 of 17 (51 views)
Permalink
Re: Re: Sound card drivers must be modules? [In reply to]

On Thu, Nov 5, 2009 at 10:06 AM, Helmut Jarausch
<jarausch[at]igpm.rwth-aachen.de> wrote:
> On  5 Nov, Canek Peláez Valdés wrote:
> ...
>> Also, in my laptop (amd64 with Intel Core2 Duo) I don't have any
>> emul-linux-* package; both Firefox and the Flash plugin (I use
>> www-plugins/adobe-flash) are the 64bit versions.
>
> Then you have built firefox from source?  Or is there a 64 bit version
> of mozilla-firefox-bin around?

I compile firefox. And OpenOffice ;)

Regards.
--
Canek Peláez Valdés
Instituto de Matemáticas
Universidad Nacional Autónoma de México

Gentoo user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.