From: acano@fastmail.fm
To: linux-media@vger.kernel.org
Subject: [PATCH] em28xx: enable usb audio for plextor px-tv100u
Date: Sat, 18 Jul 2009 13:37:58 -0400 [thread overview]
Message-ID: <20090718173758.GA32708@localhost.localdomain> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 2009-07-18-01-plextor.patch --]
[-- Type: text/x-diff, Size: 1702 bytes --]
diff -r 27ddf3fe0ed9 linux/drivers/media/video/em28xx/em28xx-cards.c
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c Wed Jun 17 04:38:12 2009 +0000
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c Sat Jul 18 13:32:04 2009 -0400
@@ -639,10 +639,10 @@ struct em28xx_board em28xx_boards[] = {
},
[EM2861_BOARD_PLEXTOR_PX_TV100U] = {
.name = "Plextor ConvertX PX-TV100U",
- .valid = EM28XX_BOARD_NOT_VALIDATED,
.tuner_type = TUNER_TNF_5335MF,
.tda9887_conf = TDA9887_PRESENT,
.decoder = EM28XX_TVP5150,
+ .has_msp34xx = 1,
.input = { {
.type = EM28XX_VMUX_TELEVISION,
.vmux = TVP5150_COMPOSITE0,
@@ -1950,6 +1950,10 @@ void em28xx_pre_card_setup(struct em28xx
/* FIXME guess */
/* Turn on analog audio output */
em28xx_write_reg(dev, EM28XX_R08_GPIO, 0xfd);
+
+ /* enable audio 12mhz i2s */
+ em28xx_write_reg(dev, EM28XX_R0F_XCLK, 0xa7);
+ dev->i2s_speed = 2048000;
break;
case EM2861_BOARD_KWORLD_PVRTV_300U:
case EM2880_BOARD_KWORLD_DVB_305U:
diff -r 27ddf3fe0ed9 linux/drivers/media/video/em28xx/em28xx-video.c
--- a/linux/drivers/media/video/em28xx/em28xx-video.c Wed Jun 17 04:38:12 2009 +0000
+++ b/linux/drivers/media/video/em28xx/em28xx-video.c Sat Jul 18 13:32:04 2009 -0400
@@ -1087,9 +1087,12 @@ static int vidioc_s_ctrl(struct file *fi
mutex_lock(&dev->lock);
- if (dev->board.has_msp34xx)
+ if (dev->board.has_msp34xx) {
+ /*FIXME hack to unmute usb audio stream */
+ em28xx_set_ctrl(dev, ctrl);
+
v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_ctrl, ctrl);
- else {
+ } else {
rc = 1;
for (i = 0; i < ARRAY_SIZE(em28xx_qctrl); i++) {
if (ctrl->id == em28xx_qctrl[i].id) {
next reply other threads:[~2009-07-18 17:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-18 17:37 acano [this message]
2009-07-28 0:28 ` [PATCH] em28xx: enable usb audio for plextor px-tv100u Mauro Carvalho Chehab
2009-07-29 0:07 ` acano
2009-07-29 4:57 ` Mauro Carvalho Chehab
2009-07-29 6:09 ` Hans Verkuil
2009-07-29 12:40 ` Mauro Carvalho Chehab
2009-07-29 13:14 ` Hans Verkuil
2009-07-29 14:42 ` Mauro Carvalho Chehab
2009-07-29 15:08 ` Hans Verkuil
2009-07-30 3:06 ` Mauro Carvalho Chehab
2009-07-30 6:39 ` Hans Verkuil
2009-07-29 22:13 ` acano
2009-07-30 4:06 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090718173758.GA32708@localhost.localdomain \
--to=acano@fastmail.fm \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox