diff options
author | Andy Walls <awalls@radix.net> | 2009-01-01 17:02:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:24 -0400 |
commit | 0d82fe801d7c6d8cb8987e66b570f6decde9e235 (patch) | |
tree | c161730acec942f8474516d5aa7587d6d64e2fd9 /drivers/media/video/cx18 | |
parent | 50299994181b835e5a6ee2882df2ee07e7fb4491 (diff) |
V4L/DVB (10276): cx18, cx2341x, ivtv: Add AC-3 audio encoding control to cx18
Initial addition of controls to set AC-3 audio encoding for the CX23418 - it
does not work yet due to firmware or cx18 driver issues. This change affects
the common cx2341x and ivtv modules due to shared structures and
common functions.
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18')
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.c | 3 | ||||
-rw-r--r-- | drivers/media/video/cx18/cx18-driver.h | 2 | ||||
-rw-r--r-- | drivers/media/video/cx18/cx18-fileops.c | 8 |
3 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c index f50cf2167adc..f9df3cc5aa3d 100644 --- a/drivers/media/video/cx18/cx18-driver.c +++ b/drivers/media/video/cx18/cx18-driver.c | |||
@@ -587,7 +587,8 @@ static int __devinit cx18_init_struct1(struct cx18 *cx) | |||
587 | (cx->params.video_temporal_filter_mode << 1) | | 587 | (cx->params.video_temporal_filter_mode << 1) | |
588 | (cx->params.video_median_filter_type << 2); | 588 | (cx->params.video_median_filter_type << 2); |
589 | cx->params.port = CX2341X_PORT_MEMORY; | 589 | cx->params.port = CX2341X_PORT_MEMORY; |
590 | cx->params.capabilities = CX2341X_CAP_HAS_TS; | 590 | cx->params.capabilities = CX2341X_CAP_HAS_TS | CX2341X_CAP_HAS_AC3 | |
591 | CX2341X_CAP_HAS_LPCM; | ||
591 | init_waitqueue_head(&cx->cap_w); | 592 | init_waitqueue_head(&cx->cap_w); |
592 | init_waitqueue_head(&cx->mb_apu_waitq); | 593 | init_waitqueue_head(&cx->mb_apu_waitq); |
593 | init_waitqueue_head(&cx->mb_cpu_waitq); | 594 | init_waitqueue_head(&cx->mb_cpu_waitq); |
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h index 0d2edebc39b4..36809dd3d848 100644 --- a/drivers/media/video/cx18/cx18-driver.h +++ b/drivers/media/video/cx18/cx18-driver.h | |||
@@ -413,7 +413,7 @@ struct cx18 { | |||
413 | 413 | ||
414 | /* dualwatch */ | 414 | /* dualwatch */ |
415 | unsigned long dualwatch_jiffies; | 415 | unsigned long dualwatch_jiffies; |
416 | u16 dualwatch_stereo_mode; | 416 | u32 dualwatch_stereo_mode; |
417 | 417 | ||
418 | /* Digitizer type */ | 418 | /* Digitizer type */ |
419 | int digitizer; /* 0x00EF = saa7114 0x00FO = saa7115 0x0106 = mic */ | 419 | int digitizer; /* 0x00EF = saa7114 0x00FO = saa7115 0x0106 = mic */ |
diff --git a/drivers/media/video/cx18/cx18-fileops.c b/drivers/media/video/cx18/cx18-fileops.c index 055f6e004b2d..863d29db85eb 100644 --- a/drivers/media/video/cx18/cx18-fileops.c +++ b/drivers/media/video/cx18/cx18-fileops.c | |||
@@ -128,10 +128,10 @@ static void cx18_release_stream(struct cx18_stream *s) | |||
128 | static void cx18_dualwatch(struct cx18 *cx) | 128 | static void cx18_dualwatch(struct cx18 *cx) |
129 | { | 129 | { |
130 | struct v4l2_tuner vt; | 130 | struct v4l2_tuner vt; |
131 | u16 new_bitmap; | 131 | u32 new_bitmap; |
132 | u16 new_stereo_mode; | 132 | u32 new_stereo_mode; |
133 | const u16 stereo_mask = 0x0300; | 133 | const u32 stereo_mask = 0x0300; |
134 | const u16 dual = 0x0200; | 134 | const u32 dual = 0x0200; |
135 | u32 h; | 135 | u32 h; |
136 | 136 | ||
137 | new_stereo_mode = cx->params.audio_properties & stereo_mask; | 137 | new_stereo_mode = cx->params.audio_properties & stereo_mask; |