Mailing List Archive

magic btaudio incantation ;-)
Hmm, I've never had very good results with btaudio, however I finally have it
so the driver loads automatically and mythtv uses btaudio for recording.
However I can't seem to get the btaudio mixer device to show up reliably.
Either btaudio works but no mixer device or vice versa. Can one of the other
btaudio users check out this modules.conf and tell me if they can see where I
am going wrong?

/etc/modules.conf
******************************

alias usb-interface usb-uhci

###alsa stuff - added jul21-03###
alias char-major-116 snd
alias snd-card-0 snd-emu10k1

####alias snd-card-1 snd-via82xx
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

####via alsa drivers
# ALSA portion
alias char-major-116 snd
alias snd-card-1 snd-via82xx
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-1 snd-card-1

# card #2
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss


##################################

probeall scsi_hostadapter aic7xxx
alias eth0 tulip
alias scsi_hostadapter aic7xxx

#### LIRC settings for packard bell serial remote
alias char-major-61 lirc_serial
options lirc_serial irq=3 io=0x2f8
### LIRC settings for Avermedia TVPhone remote control
#alias char-major-61 lirc_gpio
#options lirc_gpio gpio_mask=0xf88000 gpio_lock_mask=0x10000
#gpio_xor_mask=0x

## I2c
alias char-major-89 i2c-dev
options i2c-core i2c_debug=1
options i2c-algo-bit bit_test=1

## Video
alias char-major-81 videodev
alias char-major-81-0 bttv debug=2
options bttv card=6,63 radio=1,0 tuner=2,8 #pll=1
options tuner debug=2
pre-install bttv(/sbin/modprobe -k "tuner")
options btaudio debug=2
#alias sound-service-1 via82cxxx_audio
### alias sound-card-2 btaudio
###alias sound-slot-2 btaudio
###alias sound-service-2-0 btaudio

### Video card drivers
alias /dev/nvidia* NVdriver

--
Harondel J. Sibble
Sibble Computer Consulting
Creating solutions for the small business and home computer user.
help@pdscc.com (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax) (604) 686-2253 (pager)
Re: magic btaudio incantation ;-) [ In reply to ]
Harondel J. Sibble wrote:

>Hmm, I've never had very good results with btaudio, however I finally have it
>so the driver loads automatically and mythtv uses btaudio for recording.
>However I can't seem to get the btaudio mixer device to show up reliably.
>Either btaudio works but no mixer device or vice versa. Can one of the other
>btaudio users check out this modules.conf and tell me if they can see where I
>am going wrong?
>
>/etc/modules.conf
>******************************
>
>alias usb-interface usb-uhci
>
>###alsa stuff - added jul21-03###
>alias char-major-116 snd
>alias snd-card-0 snd-emu10k1
>
>####alias snd-card-1 snd-via82xx
># module options should go here
>
># OSS/Free portion
>alias char-major-14 soundcore
>alias sound-slot-0 snd-card-0
>alias sound-slot-1 snd-card-1
>
># card #1
>alias sound-service-0-0 snd-mixer-oss
>alias sound-service-0-1 snd-seq-oss
>alias sound-service-0-3 snd-pcm-oss
>alias sound-service-0-8 snd-seq-oss
>alias sound-service-0-12 snd-pcm-oss
>
>####via alsa drivers
># ALSA portion
>alias char-major-116 snd
>alias snd-card-1 snd-via82xx
># module options should go here
>
># OSS/Free portion
>alias char-major-14 soundcore
>alias sound-slot-1 snd-card-1
>
># card #2
>alias sound-service-1-0 snd-mixer-oss
>alias sound-service-1-1 snd-seq-oss
>alias sound-service-1-3 snd-pcm-oss
>alias sound-service-1-8 snd-seq-oss
>alias sound-service-1-12 snd-pcm-oss
>
>
>##################################
>
>probeall scsi_hostadapter aic7xxx
>alias eth0 tulip
>alias scsi_hostadapter aic7xxx
>
>#### LIRC settings for packard bell serial remote
>alias char-major-61 lirc_serial
>options lirc_serial irq=3 io=0x2f8
>### LIRC settings for Avermedia TVPhone remote control
>#alias char-major-61 lirc_gpio
>#options lirc_gpio gpio_mask=0xf88000 gpio_lock_mask=0x10000
>#gpio_xor_mask=0x
>
>## I2c
>alias char-major-89 i2c-dev
>options i2c-core i2c_debug=1
>options i2c-algo-bit bit_test=1
>
>## Video
>alias char-major-81 videodev
>alias char-major-81-0 bttv debug=2
>options bttv card=6,63 radio=1,0 tuner=2,8 #pll=1
>options tuner debug=2
>pre-install bttv(/sbin/modprobe -k "tuner")
>options btaudio debug=2
>#alias sound-service-1 via82cxxx_audio
>### alias sound-card-2 btaudio
>###alias sound-slot-2 btaudio
>###alias sound-service-2-0 btaudio
>
>### Video card drivers
>alias /dev/nvidia* NVdriver
>
>
>
>------------------------------------------------------------------------
>
>
>

Hi.

The magic in using a live and btaudio is probing your mixer first so as
to let it grab dev/dsp0 first. I'm using alsa and rh9 - pvr 250 and a
tvwonder. Nforce 2 mb. Using the live for the digital out so as to go
upstairs to the entertainment system with the picture and remote.

Here is mine (messy but hey - need to wash my car too.)

[root@linuxbox root]# cat /etc/modules.conf

alias char-major-188 off

pre-install btaudio modprobe snd-pcm-oss

alias char-major-61 lirc_i2c

#__
alias char-major-81 videodev
#__________________________________________
# TV wonder

alias char-major-81-0 btttv
options bttv card=63 radio=0 pll=1
options tuner type=2 debug=0
options bttv debug=2
options btaudio debug=2 digital=1 analog=0 rate=32000

#_______________________________________________
# ivtv modules setup
alias char-major-81-1 ivtv
options ivtv debug=1
options tuner type=2
options msp3400 once=1 simple=1
options ivtv mpg_buffers=60
add below ivtv msp3400 saa7115 tuner lirc_dev lirc_i2c

#_______________________________________________
alias usb-controller usb-ohci
alias usb-controller1 ehci-hcd
alias eth0 nvnet

#_______________________________________________

alias char-major-116 snd
alias snd-card-0 snd-emu10k1
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
#alias snd-card-0 snd-card-emu10k1 #same here


#
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
#________________________________
alias sound-slot-2 btaudio
alias sound-service-1-0 btaudio
alias sound-slot-2 btaudio
alias sound-service-2-0 btaudio
#________________________________

options snd-card-emu10k1 snd_index=0 snd_id=SBLive

#________________________

post-install btaudio modprobe bttv

post-install emu10k1 /sbin/modprobe btaudio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L
>/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
>/dev/null 2>&1 || :
alias char-major-195 nvidia


Hope this helps. Forget where I got this from but it made all the
difference. Also change your setting in mythtvsetup ( to /dev/dsp1) for
your tuner.


./gary


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: magic btaudio incantation ;-) [ In reply to ]
Gary, thanks for the info, some questions follow inline with your responses.

On 1 Aug 2003 at 19:32, Gary Balliet wrote:

> The magic in using a live and btaudio is probing your mixer first so as
> to let it grab dev/dsp0 first. I'm using alsa and rh9 - pvr 250 and a
Let the live or btaudio get the mixer? Best I can tell the live gets either
1 or 2 mixers (or more likely one goes to my onboard via audio) and btaudio
gets the next in line

# cat /var/log/messages | grep btaudio

Aug 3 22:04:01 marcus kernel: btaudio: driver version 0.7 loaded [digital]
Aug 3 22:04:01 marcus kernel: btaudio: Bt878 (rev 2) at 00:0d.1, irq: 10,
latency: 32, mmio: 0xe3104000
Aug 3 22:04:01 marcus kernel: btaudio: using card config "default"
Aug 3 22:04:01 marcus kernel: btaudio: registered device dsp2 [digital]]

What I find odd (and maybe this in one part of my problem) is that none of
the other dsp's being grabbed get logged to syslog

# cat /var/log/messages | grep dsp
Aug 3 20:44:53 marcus kernel: btaudio: registered device dsp2 [digital]
Aug 3 22:04:01 marcus kernel: btaudio: registered device dsp2 [digital]


> alias sound-slot-2 btaudio
> alias sound-service-1-0 btaudio
> alias sound-slot-2 btaudio
> alias sound-service-2-0 btaudio

Why do you have 2 _different_ sound-service aliases for btaudio?

> post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L
> >/dev/null 2>&1 || :
> pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
> >/dev/null 2>&1 || :
What is the purpose of these 2 lines?

> Hope this helps. Forget where I got this from but it made all the
> difference. Also change your setting in mythtvsetup ( to /dev/dsp1) for your
> tuner.

Well I am getting closer....

Thanks

--
Harondel J. Sibble
Sibble Computer Consulting
Creating solutions for the small business and home computer user.
help@pdscc.com (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax) (604) 686-2253 (pager)
Re: magic btaudio incantation ;-) [ In reply to ]
Harondel J. Sibble wrote:

>Gary, thanks for the info, some questions follow inline with your responses.
>
>
>
># cat /var/log/messages | grep btaudio
>
>Aug 3 22:04:01 marcus kernel: btaudio: driver version 0.7 loaded [digital]
>Aug 3 22:04:01 marcus kernel: btaudio: Bt878 (rev 2) at 00:0d.1, irq: 10,
>latency: 32, mmio: 0xe3104000
>Aug 3 22:04:01 marcus kernel: btaudio: using card config "default"
>Aug 3 22:04:01 marcus kernel: btaudio: registered device dsp2 [digital]]
>
>What I find odd (and maybe this in one part of my problem) is that none of
>the other dsp's being grabbed get logged to syslog
>
># cat /var/log/messages | grep dsp
>Aug 3 20:44:53 marcus kernel: btaudio: registered device dsp2 [digital]
>Aug 3 22:04:01 marcus kernel: btaudio: registered device dsp2 [digital]
>
>
>
Here's what I've got Harondel


[root@linuxbox root]# cat /var/log/messages | grep btaudio
Aug 3 07:00:02 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 07:00:02 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 14:03:43 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 14:03:43 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 15:21:44 linuxbox kernel: btaudio: driver version 0.7 loaded
[digital]
Aug 3 15:21:44 linuxbox kernel: btaudio: Bt878 (rev 17) at 01:08.1,
irq: 11, latency: 32, mmio: 0xdc000000
Aug 3 15:21:44 linuxbox kernel: btaudio: using card config "default"
Aug 3 15:21:44 linuxbox kernel: btaudio: registered device dsp1 [digital]
Aug 3 15:30:33 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 15:30:33 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 16:00:02 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 16:30:02 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 16:50:01 linuxbox kernel: <7>btaudio: SNDCTL_DSP_GETISPACE
returns 8192/16/0/0
Aug 3 21:59:16 linuxbox kernel: btaudio: driver version 0.7 loaded
[digital]
Aug 3 21:59:16 linuxbox kernel: btaudio: Bt878 (rev 17) at 01:08.1,
irq: 11, latency: 32, mmio: 0xdc000000
Aug 3 21:59:16 linuxbox kernel: btaudio: using card config "default"
Aug 3 21:59:16 linuxbox kernel: btaudio: registered device dsp1 [digital]
Aug 3 23:25:17 linuxbox kernel: btaudio: open digital dsp [19]
Aug 3 23:28:04 linuxbox kernel: btaudio: open digital dsp [19]
Aug 4 00:00:02 linuxbox kernel: btaudio: open digital dsp [19]
Aug 4 07:34:11 linuxbox kernel: btaudio: driver version 0.7 loaded
[digital]
Aug 4 07:34:11 linuxbox kernel: btaudio: Bt878 (rev 17) at 01:08.1,
irq: 11, latency: 32, mmio: 0xdc000000
Aug 4 07:34:11 linuxbox kernel: btaudio: using card config "default"
Aug 4 07:34:11 linuxbox kernel: btaudio: registered device dsp1 [digital]

>
>
>>alias sound-slot-2 btaudio
>>alias sound-service-1-0 btaudio
>>alias sound-slot-2 btaudio
>>alias sound-service-2-0 btaudio
>>
>>
>
>Why do you have 2 _different_ sound-service aliases for btaudio?
>

Hate to admit it but I don't know. Just works. Could be the setting of
full duplex?

>
>
>
>>post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L
>> >/dev/null 2>&1 || :
>>pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S
>> >/dev/null 2>&1 || :
>>
>>
>What is the purpose of these 2 lines?
>
>
From the archives

http://www.gossamer-threads.com/archive/MythTV_C2/Users_F11/bttv_loading_problem_fixed,_but_wont_load_automatically_now._P65326/


The post install just means that after the via-snd is loaded, the next
step is to load the mixer settings from a file. The pre remove just
means, before the via-snd module is removed, the mixer settings are
saved to a file.




Hope this helps

./gary


_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users