Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Most programs can't initialize audio with snd-hda-intel

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Dr. Frankenbox
Apprentice
Apprentice
Posts: 171
Joined: Sat Jul 16, 2005 9:19 pm
Location: Iowa, USA

Most programs can't initialize audio with snd-hda-intel

  • Quote

Post by Dr. Frankenbox » Thu Aug 16, 2007 4:03 am

I'm using the snd-hda-intel driver for the built-in sound in an Asus M2N-E motherboard, and I'm having the weirdest problem. Audacious starts up and plays audio reliably, and my system sounds (played through mplayer at the command line) work just fine. However, most apps (ut2004, mplayer with gui, xine, wine) have trouble initializing the sound device. Just initializing it, though: they have no trouble playing if it's already initialized. I dicsovered that they can't use sound (or in some cases, they crash) if I'm not using the sound device, but if I'm running audacious in the background they work just fine. Any ideas what may be causing this and what to do about it? For reference, I'm running linux 2.6.21-gentoo-r4 compiled for amd64 (not a pure 64 bit environment, though).
Top
djscribble
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Wed Aug 03, 2005 9:23 pm

  • Quote

Post by djscribble » Thu Aug 16, 2007 8:02 pm

do you have dmix setup?

try using this for you .asoundrc:

Code: Select all

pcm.dmixer { 
    type dmix 
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0666                       # mixing for all users
    slave { 
        pcm "hw:0,0" 
        period_time 0 
        period_size 1024 
        buffer_size 8192
        rate 44100
    }
    bindings { 
        0 0 
        1 1 
    } 
} 

pcm.dsp0 { 
    type plug 
    slave.pcm "dmixer" 
} 

pcm.dsp {
    type plug
    slave.pcm "dmixer"  
}


pcm.!default { 
    type plug 
    slave.pcm "dmixer" 
} 

pcm.default { 
   type plug 
   slave.pcm "dmixer" 
} 

ctl.mixer0 { 
    type hw 
    card 0 
}
I had a similar problem -- also, then you have to make sure that everything is running through alsa. if you are still having problems you will want to try to emerge aoss and wrap the program you are having problems with in that

Code: Select all

aoss firefox
Top
Dr. Frankenbox
Apprentice
Apprentice
Posts: 171
Joined: Sat Jul 16, 2005 9:19 pm
Location: Iowa, USA

  • Quote

Post by Dr. Frankenbox » Sun Aug 26, 2007 4:01 am

Thanks, but where do I put this .asoundrc?
Top
djscribble
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Wed Aug 03, 2005 9:23 pm

  • Quote

Post by djscribble » Sun Aug 26, 2007 3:18 pm

you put it in your home directory
Top
Dr. Frankenbox
Apprentice
Apprentice
Posts: 171
Joined: Sat Jul 16, 2005 9:19 pm
Location: Iowa, USA

  • Quote

Post by Dr. Frankenbox » Tue Aug 28, 2007 9:03 pm

Well, I put that file in my home directory and did an /etc/init.d/alsasound restart, but that didn't solve the problem. Do I need a more serious restart, or should I try something else?
Top
tarpman
Veteran
Veteran
User avatar
Posts: 1083
Joined: Thu Nov 04, 2004 2:55 am
Location: Victoria, BC, Canada

  • Quote

Post by tarpman » Tue Aug 28, 2007 9:26 pm

dmix has been enabled for a long time now; it's no longer necessary to enable it in ~/.asoundrc (you can delete that file btw, it won't make a difference).

What are your USE flags? Are the programs you're having trouble with configured to use OSS, or ALSA?
Saving the world, one kilobyte at a time.
Top
Dr. Frankenbox
Apprentice
Apprentice
Posts: 171
Joined: Sat Jul 16, 2005 9:19 pm
Location: Iowa, USA

  • Quote

Post by Dr. Frankenbox » Tue Aug 28, 2007 10:06 pm

One major program that's having problems is wine, and that does have oss support (as well as alsa support). UT2004 is also affected, and I don't think that uses oss. As to .asoundrc, I just discovered that adding that file with the contents above actually worsened the problem - with that in place, wine couldn't initialize the sound device even when I was playing music in the background.
Top
djscribble
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 116
Joined: Wed Aug 03, 2005 9:23 pm

  • Quote

Post by djscribble » Tue Aug 28, 2007 10:28 pm

tarpman wrote:dmix has been enabled for a long time now; it's no longer necessary to enable it in ~/.asoundrc (you can delete that file btw, it won't make a difference).

What are your USE flags? Are the programs you're having trouble with configured to use OSS, or ALSA?
How did you get it enabled by default?? In fluxbox i could not get anything to play at the same time until i used .asoundrc.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic