Re: em28xx i2s volume control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Mon, 20 Jul 2009 14:00:08 -0400
acano@xxxxxxxxxxx escreveu:

> On Sun, Jul 19, 2009 at 10:50:49AM -0300, Mauro Carvalho Chehab wrote:
> > Em Sat, 18 Jul 2009 14:22:51 -0400
> > acano@xxxxxxxxxxx escreveu:
> >
> > > How do you control the i2s volume output on empia boards?
> >
> > the em28xx chip doesn't control volume. This is done at the audio chip.
> >
> > For ac97 chips, the volume is inside the em28xx driver, since we don't have a
> > v4l2 device driver for it yet.
> >
> > On the cases where the volume is on an i2s chips like msp34xx, the volume
> > control is done at the i2c driver, that should be exporting such controls via
> > v4l2 dev/subdev API, by calling:
> > 	v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_ctrl, ctrl);
> >
> > This way, any application can control the volume via the proper ioctl's.
> >
> > While trying to see why are you asking this, I noticed that the em28xx driver,
> > due to historic reasons, had an implementation that may cause
> > confusion.
> 
> The problem is that it's not working for usb audio streaming.  With a
> cable from line out of the device to my sound card it works well.
> Volume can be controlled by applications using the v4l2 ioctls.
> 
> The audio from /dev/dsp? is always at max and distorts horribly on
> many tv stations.  I can verify with 'modprobe msp3400 debug=1' that
> it is trying to set volume I pass to it, but it simply has no effect
> on the usb audio stream.
> 
> The reason I asked about i2s volume control is because the eeprom has
> the bit set that shows my device as "USB audio class volume control
> (capable) when audio source is i2s device".
> 
> Maybe it's a snd-usb-audio issue since the mixer setting for the
> device doesn't allow volume changing.

I need to double check here with a Hauppauge device I have with msp34xx,
but it seems weird that this can't be controlled. 

Maybe it is some kind of bug at usb audio class driver. Maybe you can enable
some debug code there to see what it is doing with volume.



Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux