Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23354 - Alsa mixed with bttv cause mixer to fail
Summary: Alsa mixed with bttv cause mixer to fail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-23 22:14 UTC by Evan Langlois
Modified: 2004-02-19 02:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Langlois 2003-06-23 22:14:26 UTC
Since bttv audio drivers are not in alsa, and only OSS, and they have their own
mixer, they will often get loaded before the alsa mixer since snd-mixer-oss is
demand loaded.  This means that the only mixer settings you get from OSS apps is
the TV Tuner mixer, and not the regular sound card (only the alsa mixer works
for it).

The work-around is to force the kernel to access /dev/mixer from
/etc/init.d/alsasound so that the alsa-oss mixer gets loaded first, during boot.
 Just add something like ...

echo "" >>/dev/mixer 

to the alsasound initialization in /etc/init.d/alsasound.

Then when the bttv stuff is loaded later on it will become /dev/mixer1 and
you'll get access to both mixers.  On mine, all the bttv mixers feed the one of
the inputs on the emu10k1.  Even though this is mixing OSS drivers with alsa
drivers, it works just fine.

-- Evan
aka Lain
Comment 1 J. Ellis (RETIRED) gentoo-dev 2003-08-09 21:59:07 UTC
I wonder if we can't just modprobe snd-mixer-oss after loading the sound drivers. Should get an opinion from agenkin.
Comment 2 Evan Langlois 2003-09-21 23:05:10 UTC
I prefer not to call modprobe at any time.  If everything is configured right, demand loading should work.  I don't use a modules.conf file either - I modified one of the start-up files to run modules-update on start-up, and there is a script in /etc/modules.d/ that outputs the alias lines for my ethernet and sound cards based on the pci listings.
Comment 3 Brian Harring (RETIRED) gentoo-dev 2004-02-06 02:09:34 UTC
Is this still an issue?
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-19 02:02:19 UTC
No response, so closing... it shouldn't be an issue any more as the alsasound init script loads the OSS drivers.