Sound in CX88
- From: Jelle Foks <jelle (at) foks.8m.com>
- Date: Wed, 07 Feb 2007 01:55:16 -0500
Adam Sulmicki wrote:
>
>> So, we set television input .extadc = 0 ... anything else?
>
> as far as I can tell this is irrelevant as far as mpeg recording goes.
> it seems to work with it set to either 1 or 0.
>
>> If you want to create a patch and send it in with your sign-off, then
>> Il apply it for you. Otherwise, I can just make the change above to
>> the television mux.
>
> so no change seems to be needed.
>
> the issue was that tvtime was muting the sound, and I needed to
>
> v4l2-ctl -d /dev/video1 -c mute=0 -c volume=63
>
>>> Now I get sound with mpeg stream (video1)!
Maybe the attached patch works for you too? The patch unmutes/mutes the
audio in streamon/streamoff of cx88-blackbird.c
With that patch you may (should?) not need to do the v4lctl command anymore.
Jelle.
diff -r 4a2a265bd791 linux/drivers/media/video/cx88/cx88-blackbird.c
--- a/linux/drivers/media/video/cx88/cx88-blackbird.c Wed Nov 22 13:52:36 2006 -0200
+++ b/linux/drivers/media/video/cx88/cx88-blackbird.c Fri Nov 24 19:21:16 2006 -0500
(at) (at) -871,12 +871,24 (at) (at) static int vidioc_streamon(struct file *
static int vidioc_streamon(struct file *file, void *priv, enum v4l2_buf_type i)
{
struct cx8802_fh *fh = priv;
+ struct cx8802_dev *dev = fh->dev;
+ struct cx88_core *core = dev->core;
+
+ /* unmute audio source */
+ cx_clear(AUD_VOL_CTL, (1 << 6));
+
return videobuf_streamon(&fh->mpegq);
}
static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
{
struct cx8802_fh *fh = priv;
+ struct cx8802_dev *dev = fh->dev;
+ struct cx88_core *core = dev->core;
+
+ /* mute audio source */
+ cx_set(AUD_VOL_CTL, (1 << 6));
+
return videobuf_streamoff(&fh->mpegq);
}
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list