By Date: <-- -->
By Thread: <-- -->

saa7134-oss fails with multiple cards



Am Sonntag, den 26.03.2006, 12:41 -0800 schrieb David Liontooth:
> Ricardo Cerqueira wrote:
> > On Sun, 2006-03-26 at 11:46 -0800, David Liontooth wrote:
> >   
> >> With the recent saa7134-oss module separated out, there's a problem with 
> >> multiple cards -- perhaps fixed in mercurial already?
> >>
> >> When using the insmod parameter "oss=1,1" for multiple cards, insertion 
> >> fails because saa7134 uses the "index" parameter to install multiple 
> >> cards -- a parameter not present in saa7134-oss, which uses dsp_nr and 
> >> mixer_nr, so it shouldn't be passed.
> >>     
> >
> > Actually, it's saa7134-alsa that takes index as a parameter, not saa7134
> > itself. For legacy reasons, saa7134-oss takes dsp_nr, but the syntax
> > should be the same. "modprobe saa7134-oss dsp_nr=4,5,6,7
> > mixer_nr=4,5,6,7" should work.
> >   
> Right, it's saa7134-alsa that takes the index parameter, but when you 
> load saa7134 with the "oss=1,1" parameter, it automatically loads
> the saa7134-oss module -- and it does so by mistakenly passing it the 
> "index" parameter, and consequently it fails. In other words, the OSS 
> module functions as a default when "oss=1," is specified, so I never get 
> a chance to issue "modprobe saa7134-oss dsp_nr=4,5,6,7 mixer_nr=4,5,6,7".

Since saa7134-oss is factored out oss=1 doesn't work anymore for what I
know. Just modprobe saa7134-oss should be enough since auto enumeration
works fine.

tuner 4-0060: chip found  (at)  0xc0 (saa7134[3])
tuner 4-0060: type set to 5 (Philips PAL_BG (FI1216 and compatibles))
saa7134[3]: Huh, no eeprom present (err=-5)?
saa7134[3]: registered device video3 [v4l2]
saa7134[3]: registered device vbi3
saa7134[3]: registered device radio3
saa7134 OSS driver for DMA sound loaded
saa7134[0]: registered device dsp1
saa7134[0]: registered device mixer1
saa7134[1]: registered device dsp2
saa7134[1]: registered device mixer2
saa7133[2]: registered device dsp3
saa7133[2]: registered device mixer3
saa7134[3]: registered device dsp4
saa7134[3]: registered device mixer4

For autoloading something like this should do.

install saa7134 /sbin/modprobe --first-time --ignore-install saa7134 && { /sbin/modprobe saa7134-oss || :; }

You can't use saa7134-alsa and saa7134-oss at once. It returns EBUSY.

With Ricardo's fixes this is also fine again in mercurial now.

Hermann


--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list