[mythtv-users] Two bttv cards - trying to access the second
audio stream
Brad Allen
Ulmo-Mythtv-Users at Usenet.Q.Net
Sun Jan 25 22:17:36 EST 2004
You said sound devices were missing. Here's what I have from what
ALSA installs:
w/o DevFS:
$ for i in driver oss; do sudo emerge "alsa-${i}"; done && depmod -ae
$ f='/usr/portage/distfiles/alsa-driver-1.0.1.tar.bz2' &&
tar jvtf "$f" |egrep snddevices
-rwxr-xr-x root/root 3524 2003-12-14 01:49:11 alsa-driver-1.0.1/snddevices.in
-rwxr-xr-x root/root 3524 2004-01-08 10:31:32 alsa-driver-1.0.1/snddevices
$ cd /tmp && d='alsa-driver-1.0.1' && x="$d/snddevices" &&
tar jxf "$f" "$x" && sudo ./"$x" && rm -r "$d" && sudo perm && ls -l /dev/snd
total 0
crw-rw---- 1 root audio 116, 0 Dec 12 10:51 controlC0
crw-rw---- 1 root audio 116, 32 Dec 12 10:51 controlC1
crw-rw---- 1 root audio 116, 64 Dec 12 10:51 controlC2
[...]
$
I didn't actually test above; it could be wrong. I think I might have
used ACCEPT_KEYWORDS='~x86' when doing emerge; use emerge -p
alsa-driver to test first.
$ emerge -p alsa-driver alsa-firmware \
alsa-lib alsa-oss alsa-tools alsa-utils
and perhaps
$ sudo emerge alsa-driver alsa-firmware \
alsa-lib alsa-oss alsa-tools alsa-utils
Not sure which ones aren't needed.
Permissions: see attached script. I still am doing this wrong; it
gets changed every time I log into X to be private to the user who
logged into X, which might be the behavior we want, but might not,
since we want all sorts of programs to operate correctly here and
there (mythbackend). Further investigation of this is needed. See
what devices get bad permissions when you log in to X. I couldn't
find anything in q/etc/X11/xdm & /etc/X11/gdm for the script piece
that does that.
================
Then, there's settings:
mythfrontend: Setup: General:
[first screen]
Audio output device: ALSA:hw:0,0
Mixer Device: /dev/mixer [! This is prob. wrong; it should be ALSA:something.]
Mixer Controls: PCM [see above comment]
Anyway, that works, but what's the correct device for native ALSA
mixer support? Let's see:
$ l /dev/snd/c*
crw-rw---- 1 root audio 116, 96 Dec 12 10:51 /dev/snd/controlC3
crw-rw---- 1 root audio 116, 64 Dec 12 10:51 /dev/snd/controlC2
crw-rw---- 1 root audio 116, 32 Dec 12 10:51 /dev/snd/controlC1
crw-rw---- 1 root audio 116, 0 Dec 12 10:51 /dev/snd/controlC0
$ l /dev/mixer
lrwxrwxrwx 1 root audio 11 Dec 12 10:51 /dev/mixer -> /dev/mixer0
$ l /dev/mixer
crw-rw---- 1 root audio 14, 0 Dec 12 10:51 /dev/mixer0
$
I tried ALSA:hw:0.0 for Mixer Device, and that didn't work, and nor
did ALSA:mixer:0,0. Next, I'm going to try /dev/snd/controlC0. Nope.
Back to /dev/mixer0. Yup, that still works.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perm
Type: application/octet-stream
Size: 984 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20040125/4c8de24a/perm.obj
More information about the mythtv-users
mailing list