Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-27 Thread Uros Vampl
On 26.09.09 21:33, Devin Heitmueller wrote:
> On Sat, Sep 26, 2009 at 8:23 PM, Uros Vampl  wrote:
> > On 26.09.09 16:59, Devin Heitmueller wrote:
> >> On Fri, Sep 25, 2009 at 6:10 PM, Uros Vampl  
> >> wrote:
> >> > Alright, success!!!
> >> >
> >> > Since it seems everything for this tuner is set up the same as for the
> >> > Hauppauge WinTV HVR 900, I figured let's set things up *exactly* the
> >> > same. So, like it's there for the Hauppauge, I added .mts_firmware = 1
> >> > to the definition of the hybrid XS em2882. And well, working TV audio!!
> >> >
> >> >
> >> > dmesg output this time:
> >> >
> >> > xc2028 4-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 
> >> > .
> >> > MTS (4), id 00ff:
> >> > xc2028 4-0061: Loading firmware for type=MTS (4), id 00010007.
> >> >
> >> >
> >> > So now with the attached patch, everything (analog, digital, remote)
> >> > works!
> >> >
> >> > Regards,
> >> > Uroš
> >> >
> >>
> >> Hello Uros,
> >>
> >> Please test out the following tree, which has all the relevant fixes
> >> (enabling dvb, your audio fix, proper gpio setting, etc).
> >>
> >> http://kernellabs.com/hg/~dheitmueller/misc-fixes2/
> >>
> >> If you have any trouble, please let me know.  Otherwise I would like
> >> to issue a PULL request for this tree.
> >
> >
> > Hi,
> >
> > Your tree does not work, no audio. I quickly found the problem though:
> > gpio is set to default_analog, but it needs to be set to
> > hauppauge_wintv_hvr_900_analog. So I guess treating the EM2880 and
> > EM2882 as the same will not work, because they require different gpio
> > settings.
> >
> > Regards,
> > Uroš
> 
> Hmm..  Interesting.  That does make me wonder whether the GPIOs are
> setup for audio properly on the em2880 version of the profile, or
> whether the user in question just never tested it.  I'll have to go
> back and check the USB trace.
> 
> Nonetheless, I'll just check in your version of the patch, and scrap
> my version entirely for now.  Could you please add your SOB to the
> patch?
> 
> Thanks,
> 
> Devin

Ok, here we go...


Make analog audio, dvb and the remote work on a Terratec Cinergy Hybrid 
XS (em2882).

Signed-off-by: Uroš Vampl 


diff -r 29e4ba1a09bc linux/drivers/media/video/em28xx/em28xx-cards.c
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c   Sat Sep 19 09:45:22 
2009 -0300
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c   Sat Sep 26 00:06:37 
2009 +0200
@@ -1441,11 +1441,12 @@
.valid= EM28XX_BOARD_NOT_VALIDATED,
.tuner_type   = TUNER_XC2028,
.tuner_gpio   = default_tuner_gpio,
+   .mts_firmware = 1,
.decoder  = EM28XX_TVP5150,
-#if 0 /* FIXME: add an entry at em28xx-dvb */
.has_dvb  = 1,
.dvb_gpio = hauppauge_wintv_hvr_900_digital,
-#endif
+   .ir_codes = &ir_codes_terratec_cinergy_xs_table,
+   .xclk = EM28XX_XCLK_FREQUENCY_12MHZ,
.input= { {
.type = EM28XX_VMUX_TELEVISION,
.vmux = TVP5150_COMPOSITE0,
@@ -2119,6 +2120,7 @@
switch (dev->model) {
case EM2880_BOARD_EMPIRE_DUAL_TV:
case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900:
+   case EM2882_BOARD_TERRATEC_HYBRID_XS:
ctl->demod = XC3028_FE_ZARLINK456;
break;
case EM2880_BOARD_TERRATEC_HYBRID_XS:
diff -r 29e4ba1a09bc linux/drivers/media/video/em28xx/em28xx-dvb.c
--- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Sep 19 09:45:22 
2009 -0300
+++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Sep 26 00:06:37 
2009 +0200
@@ -494,6 +494,7 @@
}
break;
case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900:
+   case EM2882_BOARD_TERRATEC_HYBRID_XS:
case EM2880_BOARD_EMPIRE_DUAL_TV:
dvb->frontend = dvb_attach(zl10353_attach,
   &em28xx_zl10353_xc3028_no_i2c_gate,
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-26 Thread Devin Heitmueller
On Sat, Sep 26, 2009 at 8:23 PM, Uros Vampl  wrote:
> On 26.09.09 16:59, Devin Heitmueller wrote:
>> On Fri, Sep 25, 2009 at 6:10 PM, Uros Vampl  wrote:
>> > Alright, success!!!
>> >
>> > Since it seems everything for this tuner is set up the same as for the
>> > Hauppauge WinTV HVR 900, I figured let's set things up *exactly* the
>> > same. So, like it's there for the Hauppauge, I added .mts_firmware = 1
>> > to the definition of the hybrid XS em2882. And well, working TV audio!!
>> >
>> >
>> > dmesg output this time:
>> >
>> > xc2028 4-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 
>> > .
>> > MTS (4), id 00ff:
>> > xc2028 4-0061: Loading firmware for type=MTS (4), id 00010007.
>> >
>> >
>> > So now with the attached patch, everything (analog, digital, remote)
>> > works!
>> >
>> > Regards,
>> > Uroš
>> >
>>
>> Hello Uros,
>>
>> Please test out the following tree, which has all the relevant fixes
>> (enabling dvb, your audio fix, proper gpio setting, etc).
>>
>> http://kernellabs.com/hg/~dheitmueller/misc-fixes2/
>>
>> If you have any trouble, please let me know.  Otherwise I would like
>> to issue a PULL request for this tree.
>
>
> Hi,
>
> Your tree does not work, no audio. I quickly found the problem though:
> gpio is set to default_analog, but it needs to be set to
> hauppauge_wintv_hvr_900_analog. So I guess treating the EM2880 and
> EM2882 as the same will not work, because they require different gpio
> settings.
>
> Regards,
> Uroš

Hmm..  Interesting.  That does make me wonder whether the GPIOs are
setup for audio properly on the em2880 version of the profile, or
whether the user in question just never tested it.  I'll have to go
back and check the USB trace.

Nonetheless, I'll just check in your version of the patch, and scrap
my version entirely for now.  Could you please add your SOB to the
patch?

Thanks,

Devin



-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-26 Thread Uros Vampl
On 26.09.09 16:59, Devin Heitmueller wrote:
> On Fri, Sep 25, 2009 at 6:10 PM, Uros Vampl  wrote:
> > Alright, success!!!
> >
> > Since it seems everything for this tuner is set up the same as for the
> > Hauppauge WinTV HVR 900, I figured let's set things up *exactly* the
> > same. So, like it's there for the Hauppauge, I added .mts_firmware = 1
> > to the definition of the hybrid XS em2882. And well, working TV audio!!
> >
> >
> > dmesg output this time:
> >
> > xc2028 4-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 
> > .
> > MTS (4), id 00ff:
> > xc2028 4-0061: Loading firmware for type=MTS (4), id 00010007.
> >
> >
> > So now with the attached patch, everything (analog, digital, remote)
> > works!
> >
> > Regards,
> > Uroš
> >
> 
> Hello Uros,
> 
> Please test out the following tree, which has all the relevant fixes
> (enabling dvb, your audio fix, proper gpio setting, etc).
> 
> http://kernellabs.com/hg/~dheitmueller/misc-fixes2/
> 
> If you have any trouble, please let me know.  Otherwise I would like
> to issue a PULL request for this tree.


Hi,

Your tree does not work, no audio. I quickly found the problem though: 
gpio is set to default_analog, but it needs to be set to 
hauppauge_wintv_hvr_900_analog. So I guess treating the EM2880 and 
EM2882 as the same will not work, because they require different gpio 
settings.

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


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-26 Thread Devin Heitmueller
On Fri, Sep 25, 2009 at 6:10 PM, Uros Vampl  wrote:
> Alright, success!!!
>
> Since it seems everything for this tuner is set up the same as for the
> Hauppauge WinTV HVR 900, I figured let's set things up *exactly* the
> same. So, like it's there for the Hauppauge, I added .mts_firmware = 1
> to the definition of the hybrid XS em2882. And well, working TV audio!!
>
>
> dmesg output this time:
>
> xc2028 4-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 
> .
> MTS (4), id 00ff:
> xc2028 4-0061: Loading firmware for type=MTS (4), id 00010007.
>
>
> So now with the attached patch, everything (analog, digital, remote)
> works!
>
> Regards,
> Uroš
>

Hello Uros,

Please test out the following tree, which has all the relevant fixes
(enabling dvb, your audio fix, proper gpio setting, etc).

http://kernellabs.com/hg/~dheitmueller/misc-fixes2/

If you have any trouble, please let me know.  Otherwise I would like
to issue a PULL request for this tree.

Thanks,

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-25 Thread Devin Heitmueller
On Fri, Sep 25, 2009 at 6:10 PM, Uros Vampl  wrote:
> On 25.09.09 20:22, Uros Vampl wrote:
>> On 25.09.09 13:41, Devin Heitmueller wrote:
>> > >> Interesting.  Have you tried the A/V inputs (as opposed to the tuner)?
>> > >>  That might help us identify whether it's an issue with the xc3028
>> > >> tuner chip extracting the audio carrier or whether it's something
>> > >> about the way we are programming the emp202.
>> > >
>> > >
>> > > Hello,
>> > >
>> > > That was a great idea. Tested with a Playstation2 and audio is ok. It's
>> > > just TV input that has a problem. So I guess that means the issue is
>> > > with the tuner chip. That's progress. Where do I go from here?
>> >
>> > Ok, that's good to hear.  What video standard specifically are you
>> > using?  I suspect the core issue is that the application is not
>> > properly specifying the video standard, which results in the xc3028
>> > improperly decoding the audio (the xc3028 needs to know exactly what
>> > standard is being used).
>>
>> I'm from Slovenia, which is a PAL-B country. Tvtime can be set to either
>> PAL-BG, PAL-DK or PAL-I, makes no difference. MPlayer has a whole bunch
>> of options (PAL, PAL-BG, etc...), but again none of them make a
>> difference.
>>
>> When the app is started, this appears in dmesg:
>>
>> xc2028 4-0061: Loading firmware for type=BASE F8MHZ (3), id .
>> (0), id 00ff:
>> xc2028 4-0061: Loading firmware for type=(0), id 00010007.
>> xc2028 4-0061: Loading SCODE for type=MONO SCODE HAS_IF_5320 (60008000), id 
>> 000f0007.
>
>
> Alright, success!!!
>
> Since it seems everything for this tuner is set up the same as for the
> Hauppauge WinTV HVR 900, I figured let's set things up *exactly* the
> same. So, like it's there for the Hauppauge, I added .mts_firmware = 1
> to the definition of the hybrid XS em2882. And well, working TV audio!!
>
>
> dmesg output this time:
>
> xc2028 4-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 
> .
> MTS (4), id 00ff:
> xc2028 4-0061: Loading firmware for type=MTS (4), id 00010007.
>
>
> So now with the attached patch, everything (analog, digital, remote)
> works!
>
> Regards,
> Uroš
>

Excellent!  I will check your patch into my current hg tree
(http://kernellabs.com/hg/~dheitmueller/misc-fixes2/), which I planned
on submitting a PULL for on Monday.

Cheers,

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-25 Thread Uros Vampl
On 25.09.09 20:22, Uros Vampl wrote:
> On 25.09.09 13:41, Devin Heitmueller wrote:
> > >> Interesting.  Have you tried the A/V inputs (as opposed to the tuner)?
> > >>  That might help us identify whether it's an issue with the xc3028
> > >> tuner chip extracting the audio carrier or whether it's something
> > >> about the way we are programming the emp202.
> > >
> > >
> > > Hello,
> > >
> > > That was a great idea. Tested with a Playstation2 and audio is ok. It's
> > > just TV input that has a problem. So I guess that means the issue is
> > > with the tuner chip. That's progress. Where do I go from here?
> > 
> > Ok, that's good to hear.  What video standard specifically are you
> > using?  I suspect the core issue is that the application is not
> > properly specifying the video standard, which results in the xc3028
> > improperly decoding the audio (the xc3028 needs to know exactly what
> > standard is being used).
> 
> I'm from Slovenia, which is a PAL-B country. Tvtime can be set to either 
> PAL-BG, PAL-DK or PAL-I, makes no difference. MPlayer has a whole bunch 
> of options (PAL, PAL-BG, etc...), but again none of them make a 
> difference.
> 
> When the app is started, this appears in dmesg:
> 
> xc2028 4-0061: Loading firmware for type=BASE F8MHZ (3), id .
> (0), id 00ff:
> xc2028 4-0061: Loading firmware for type=(0), id 00010007.
> xc2028 4-0061: Loading SCODE for type=MONO SCODE HAS_IF_5320 (60008000), id 
> 000f0007.


Alright, success!!!

Since it seems everything for this tuner is set up the same as for the 
Hauppauge WinTV HVR 900, I figured let's set things up *exactly* the 
same. So, like it's there for the Hauppauge, I added .mts_firmware = 1 
to the definition of the hybrid XS em2882. And well, working TV audio!!


dmesg output this time:

xc2028 4-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 
.
MTS (4), id 00ff:
xc2028 4-0061: Loading firmware for type=MTS (4), id 00010007.


So now with the attached patch, everything (analog, digital, remote) 
works!

Regards,
Uroš
diff -r 29e4ba1a09bc linux/drivers/media/video/em28xx/em28xx-cards.c
--- a/linux/drivers/media/video/em28xx/em28xx-cards.c   Sat Sep 19 09:45:22 
2009 -0300
+++ b/linux/drivers/media/video/em28xx/em28xx-cards.c   Sat Sep 26 00:06:37 
2009 +0200
@@ -1441,11 +1441,12 @@
.valid= EM28XX_BOARD_NOT_VALIDATED,
.tuner_type   = TUNER_XC2028,
.tuner_gpio   = default_tuner_gpio,
+   .mts_firmware = 1,
.decoder  = EM28XX_TVP5150,
-#if 0 /* FIXME: add an entry at em28xx-dvb */
.has_dvb  = 1,
.dvb_gpio = hauppauge_wintv_hvr_900_digital,
-#endif
+   .ir_codes = &ir_codes_terratec_cinergy_xs_table,
+   .xclk = EM28XX_XCLK_FREQUENCY_12MHZ,
.input= { {
.type = EM28XX_VMUX_TELEVISION,
.vmux = TVP5150_COMPOSITE0,
@@ -2119,6 +2120,7 @@
switch (dev->model) {
case EM2880_BOARD_EMPIRE_DUAL_TV:
case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900:
+   case EM2882_BOARD_TERRATEC_HYBRID_XS:
ctl->demod = XC3028_FE_ZARLINK456;
break;
case EM2880_BOARD_TERRATEC_HYBRID_XS:
diff -r 29e4ba1a09bc linux/drivers/media/video/em28xx/em28xx-dvb.c
--- a/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Sep 19 09:45:22 
2009 -0300
+++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c Sat Sep 26 00:06:37 
2009 +0200
@@ -494,6 +494,7 @@
}
break;
case EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900:
+   case EM2882_BOARD_TERRATEC_HYBRID_XS:
case EM2880_BOARD_EMPIRE_DUAL_TV:
dvb->frontend = dvb_attach(zl10353_attach,
   &em28xx_zl10353_xc3028_no_i2c_gate,


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-25 Thread Uros Vampl
On 25.09.09 13:41, Devin Heitmueller wrote:
> >> Interesting.  Have you tried the A/V inputs (as opposed to the tuner)?
> >>  That might help us identify whether it's an issue with the xc3028
> >> tuner chip extracting the audio carrier or whether it's something
> >> about the way we are programming the emp202.
> >
> >
> > Hello,
> >
> > That was a great idea. Tested with a Playstation2 and audio is ok. It's
> > just TV input that has a problem. So I guess that means the issue is
> > with the tuner chip. That's progress. Where do I go from here?
> 
> Ok, that's good to hear.  What video standard specifically are you
> using?  I suspect the core issue is that the application is not
> properly specifying the video standard, which results in the xc3028
> improperly decoding the audio (the xc3028 needs to know exactly what
> standard is being used).

I'm from Slovenia, which is a PAL-B country. Tvtime can be set to either 
PAL-BG, PAL-DK or PAL-I, makes no difference. MPlayer has a whole bunch 
of options (PAL, PAL-BG, etc...), but again none of them make a 
difference.

When the app is started, this appears in dmesg:

xc2028 4-0061: Loading firmware for type=BASE F8MHZ (3), id .
(0), id 00ff:
xc2028 4-0061: Loading firmware for type=(0), id 00010007.
xc2028 4-0061: Loading SCODE for type=MONO SCODE HAS_IF_5320 (60008000), id 
000f0007.

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


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-25 Thread Devin Heitmueller
On Fri, Sep 25, 2009 at 1:22 PM, Uros Vampl  wrote:
> On 22.09.09 19:47, Devin Heitmueller wrote:
>> >> If the audio is present but very quiet, then it's probably some issue
>> >> you are having with your mixer.  I would check your ALSA and
>> >> PulseAudio configuration (in particular the mixer volume controls).
>> >>
>> >> Devin
>> >
>> > No PulseAudio here. And I've played plenty with the ALSA mixer, all the
>> > sliders that are there.
>> >
>> > Using em28xx-new instead of v4l-dvb, all else being equal, tv volume is
>> > fine. So there's gotta be a difference somewhere in the way em28xx-new
>> > sets up audio compared to how v4l-dvb does it.
>>
>> Interesting.  Have you tried the A/V inputs (as opposed to the tuner)?
>>  That might help us identify whether it's an issue with the xc3028
>> tuner chip extracting the audio carrier or whether it's something
>> about the way we are programming the emp202.
>
>
> Hello,
>
> That was a great idea. Tested with a Playstation2 and audio is ok. It's
> just TV input that has a problem. So I guess that means the issue is
> with the tuner chip. That's progress. Where do I go from here?

Ok, that's good to hear.  What video standard specifically are you
using?  I suspect the core issue is that the application is not
properly specifying the video standard, which results in the xc3028
improperly decoding the audio (the xc3028 needs to know exactly what
standard is being used).

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-25 Thread Uros Vampl
On 22.09.09 19:47, Devin Heitmueller wrote:
> >> If the audio is present but very quiet, then it's probably some issue
> >> you are having with your mixer.  I would check your ALSA and
> >> PulseAudio configuration (in particular the mixer volume controls).
> >>
> >> Devin
> >
> > No PulseAudio here. And I've played plenty with the ALSA mixer, all the
> > sliders that are there.
> >
> > Using em28xx-new instead of v4l-dvb, all else being equal, tv volume is
> > fine. So there's gotta be a difference somewhere in the way em28xx-new
> > sets up audio compared to how v4l-dvb does it.
> 
> Interesting.  Have you tried the A/V inputs (as opposed to the tuner)?
>  That might help us identify whether it's an issue with the xc3028
> tuner chip extracting the audio carrier or whether it's something
> about the way we are programming the emp202.


Hello,

That was a great idea. Tested with a Playstation2 and audio is ok. It's 
just TV input that has a problem. So I guess that means the issue is 
with the tuner chip. That's progress. Where do I go from here?

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


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-22 Thread Devin Heitmueller
On Tue, Sep 22, 2009 at 5:12 AM, Uros Vampl  wrote:
> On 21.09.09 18:29, Devin Heitmueller wrote:
>> On Mon, Sep 21, 2009 at 6:15 PM, Uros Vampl  wrote:
>> > I tried arecord/aplay and sox with tvtime, and also mplayer (which
>> > has
>> > built-in audio support). I know about these tricks, I've used them
>> > successfully with Markus' em28xx-new driver. But with v4l-dvb it's as I
>> > said, audio is there but it's extremely quiet. If you have suggestions
>> > how I should try to diagnoze this, I'm all ears.
>> >
>> > Regards,
>> > Uroš
>>
>> If the audio is present but very quiet, then it's probably some issue
>> you are having with your mixer.  I would check your ALSA and
>> PulseAudio configuration (in particular the mixer volume controls).
>>
>> Devin
>
> No PulseAudio here. And I've played plenty with the ALSA mixer, all the
> sliders that are there.
>
> Using em28xx-new instead of v4l-dvb, all else being equal, tv volume is
> fine. So there's gotta be a difference somewhere in the way em28xx-new
> sets up audio compared to how v4l-dvb does it.

Interesting.  Have you tried the A/V inputs (as opposed to the tuner)?
 That might help us identify whether it's an issue with the xc3028
tuner chip extracting the audio carrier or whether it's something
about the way we are programming the emp202.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-22 Thread Uros Vampl
On 21.09.09 18:29, Devin Heitmueller wrote:
> On Mon, Sep 21, 2009 at 6:15 PM, Uros Vampl  wrote:
> > I tried arecord/aplay and sox with tvtime, and also mplayer (which
> > has
> > built-in audio support). I know about these tricks, I've used them
> > successfully with Markus' em28xx-new driver. But with v4l-dvb it's as I
> > said, audio is there but it's extremely quiet. If you have suggestions
> > how I should try to diagnoze this, I'm all ears.
> >
> > Regards,
> > Uroš
> 
> If the audio is present but very quiet, then it's probably some issue
> you are having with your mixer.  I would check your ALSA and
> PulseAudio configuration (in particular the mixer volume controls).
> 
> Devin

No PulseAudio here. And I've played plenty with the ALSA mixer, all the 
sliders that are there.

Using em28xx-new instead of v4l-dvb, all else being equal, tv volume is 
fine. So there's gotta be a difference somewhere in the way em28xx-new 
sets up audio compared to how v4l-dvb does it.

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


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-21 Thread Devin Heitmueller
On Mon, Sep 21, 2009 at 6:15 PM, Uros Vampl  wrote:
> I tried arecord/aplay and sox with tvtime, and also mplayer (which
> has
> built-in audio support). I know about these tricks, I've used them
> successfully with Markus' em28xx-new driver. But with v4l-dvb it's as I
> said, audio is there but it's extremely quiet. If you have suggestions
> how I should try to diagnoze this, I'm all ears.
>
> Regards,
> Uroš

If the audio is present but very quiet, then it's probably some issue
you are having with your mixer.  I would check your ALSA and
PulseAudio configuration (in particular the mixer volume controls).

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-21 Thread Uros Vampl
On 21.09.09 16:49, Devin Heitmueller wrote:
> On Mon, Sep 21, 2009 at 4:44 PM, Uros Vampl  wrote:
> > Hello.
> >
> > Partial success. With the attached patch, DVB works. But I have no idea
> > how to get analog audio working correctly. Any help would be
> > appreciated.
> >
> > Regards,
> > Uroš
> 
> Hello Uroš,
> 
> Sorry I somehow missed your previous email.  I have a patch already
> which should make the device work correctly, and am issuing a PULL
> request for it this week.
> 
> Regarding the analog audio, I'm not sure how you are testing, but if
> you are using tvtime, it is known that tvtime does not support analog
> audio for raw devices such as this.  You need to run arecord/aplay in
> a separate window.
> 
> Devin

Hi,

I tried arecord/aplay and sox with tvtime, and also mplayer (which 
has 
built-in audio support). I know about these tricks, I've used them 
successfully with Markus' em28xx-new driver. But with v4l-dvb it's as I 
said, audio is there but it's extremely quiet. If you have suggestions 
how I should try to diagnoze this, I'm all ears.

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


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-21 Thread Devin Heitmueller
On Mon, Sep 21, 2009 at 4:44 PM, Uros Vampl  wrote:
> Hello.
>
> Partial success. With the attached patch, DVB works. But I have no idea
> how to get analog audio working correctly. Any help would be
> appreciated.
>
> Regards,
> Uroš

Hello Uroš,

Sorry I somehow missed your previous email.  I have a patch already
which should make the device work correctly, and am issuing a PULL
request for it this week.

Regarding the analog audio, I'm not sure how you are testing, but if
you are using tvtime, it is known that tvtime does not support analog
audio for raw devices such as this.  You need to run arecord/aplay in
a separate window.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-21 Thread Uros Vampl
Hello.

Partial success. With the attached patch, DVB works. But I have no idea 
how to get analog audio working correctly. Any help would be 
appreciated.

Regards,
Uroš



On 13.09.09 21:31, Uros Vampl wrote:
> Hello.
> 
> I have the Terratec Cinergy Hybrid T XS USB (em2882) - usb-id 0ccd:005e. 
> It works with Marcus Rechberger's em28xx-new driver, but since that code 
> is unmaintained now, I tested this device with v4l-dvb today.
> 
> The analog picture is there, but audio is very, very quiet, almost not 
> there. Is there some way to increase the volume?
> 
> Second question, what would be required to get DVB working?
> 
> The final thing is not a question, it's actually something that works: 
> the remote. It's the same one as comes with the other Hybrid XS 
> (0ccd:0042), adding these two lines to the definition of this card in 
> em28xx-cards.c makes it work:
> 
>   .ir_codes   = &ir_codes_terratec_cinergy_xs_table,
>   .xclk   = EM28XX_XCLK_FREQUENCY_12MHZ,
> 
> 
> Any pointers to solving my issues (analog audio, dvb) appreciated. I can 
> test patches, I can give ssh access to my machine if it helps. There's 
> even a Windows install on this machine, so USB sniffing of the Windows 
> driver is possible, I just need instructions on what exactly to do.
> Dmesg output for this device is attached.
> 
> 
> Regards,
> Uroš

> usb 1-4: new high speed USB device using ehci_hcd and address 6
> usb 1-4: configuration #1 chosen from 1 choice
> Linux video capture interface: v2.00
> em28xx: New device TerraTec Electronic GmbH Cinergy Hybrid T USB XS (2882) @ 
> 480 Mbps (0ccd:005e, interface 0, class 0)
> em28xx #0: chip ID is em2882/em2883
> em28xx #0: i2c eeprom 00: 1a eb 67 95 cd 0c 5e 00 d0 12 5c 03 9e 40 de 1c
> em28xx #0: i2c eeprom 10: 6a 34 27 57 46 07 01 00 00 00 00 00 00 00 00 00
> em28xx #0: i2c eeprom 20: 46 00 01 00 f0 10 31 00 b8 00 14 00 5b 1e 00 00
> em28xx #0: i2c eeprom 30: 00 00 20 40 20 6e 02 20 10 01 00 00 00 00 00 00
> em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 34 03 54 00 65 00
> em28xx #0: i2c eeprom 70: 72 00 72 00 61 00 54 00 65 00 63 00 20 00 45 00
> em28xx #0: i2c eeprom 80: 6c 00 65 00 63 00 74 00 72 00 6f 00 6e 00 69 00
> em28xx #0: i2c eeprom 90: 63 00 20 00 47 00 6d 00 62 00 48 00 00 00 40 03
> em28xx #0: i2c eeprom a0: 43 00 69 00 6e 00 65 00 72 00 67 00 79 00 20 00
> em28xx #0: i2c eeprom b0: 48 00 79 00 62 00 72 00 69 00 64 00 20 00 54 00
> em28xx #0: i2c eeprom c0: 20 00 55 00 53 00 42 00 20 00 58 00 53 00 20 00
> em28xx #0: i2c eeprom d0: 28 00 32 00 38 00 38 00 32 00 29 00 00 00 1c 03
> em28xx #0: i2c eeprom e0: 30 00 36 00 30 00 39 00 30 00 32 00 30 00 31 00
> em28xx #0: i2c eeprom f0: 33 00 38 00 34 00 33 00 00 00 00 00 00 00 00 00
> em28xx #0: EEPROM ID= 0x9567eb1a, EEPROM hash = 0x7713bfbe
> em28xx #0: EEPROM info:
> em28xx #0:  AC97 audio (5 sample rates)
> em28xx #0:  500mA max power
> em28xx #0:  Table at 0x27, strings=0x409e, 0x1cde, 0x346a
> em28xx #0: Identified as Terratec Hybrid XS (em2882) (card=55)
> em28xx #0:
> 
> em28xx #0: The support for this board weren't valid yet.
> em28xx #0: Please send a report of having this working
> em28xx #0: not to V4L mailing list (and/or to other addresses)
> 
> tvp5150 4-005c: chip found @ 0xb8 (em28xx #0)
> tuner 4-0061: chip found @ 0xc2 (em28xx #0)
> xc2028 4-0061: creating new instance
> xc2028 4-0061: type set to XCeive xc2028/xc3028 tuner
> usb 1-4: firmware: requesting xc3028-v27.fw
> xc2028 4-0061: Loading 80 firmware images from xc3028-v27.fw, type: xc2028 
> firmware, ver 2.7
> xc2028 4-0061: Loading firmware for type=BASE (1), id .
> xc2028 4-0061: Loading firmware for type=(0), id b700.
> SCODE (2000), id b700:
> xc2028 4-0061: Loading SCODE for type=MONO SCODE HAS_IF_4320 (60008000), id 
> 8000.
> em28xx #0: Config register raw data: 0xd0
> em28xx #0: AC97 vendor ID = 0x
> em28xx #0: AC97 features = 0x6a90
> em28xx #0: Empia 202 AC97 audio processor detected
> tvp5150 4-005c: tvp5150am1 detected.
> em28xx #0: v4l2 driver version 0.1.2
> em28xx #0: V4L2 device registered as /dev/video0 and /dev/vbi0
> usbcore: registered new interface driver em28xx
> em28xx driver loaded
> em28xx-audio.c: probing for em28x1 non standard usbaudio
> em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
> Em28xx: Initialized (Em28xx Audio Extension) extension
> tvp5150 4-005c: tvp5150am1 detected.
> xc2028 4-0061: Loading firmware for type=BASE F8MHZ (3), id .
> xc2028 4-0061: Loading firmware for type=(0), id 00010007.
> xc2028 4-0061: Loading SCODE for type=MONO SCODE HAS_IF_5320 (60008000), id 
> 000f0007.

diff -r 29e4ba1a09bc linux/drivers/media/video/em28xx/em28xx-cards.c
--- a/linux/drivers/media/video/em28xx/em28xx-car

Questions about Terratec Hybrid XS (em2882) [0ccd:005e]

2009-09-13 Thread Uros Vampl
Hello.

I have the Terratec Cinergy Hybrid T XS USB (em2882) - usb-id 0ccd:005e. 
It works with Marcus Rechberger's em28xx-new driver, but since that code 
is unmaintained now, I tested this device with v4l-dvb today.

The analog picture is there, but audio is very, very quiet, almost not 
there. Is there some way to increase the volume?

Second question, what would be required to get DVB working?

The final thing is not a question, it's actually something that works: 
the remote. It's the same one as comes with the other Hybrid XS 
(0ccd:0042), adding these two lines to the definition of this card in 
em28xx-cards.c makes it work:

.ir_codes   = &ir_codes_terratec_cinergy_xs_table,
.xclk   = EM28XX_XCLK_FREQUENCY_12MHZ,


Any pointers to solving my issues (analog audio, dvb) appreciated. I can 
test patches, I can give ssh access to my machine if it helps. There's 
even a Windows install on this machine, so USB sniffing of the Windows 
driver is possible, I just need instructions on what exactly to do.
Dmesg output for this device is attached.


Regards,
Uroš
usb 1-4: new high speed USB device using ehci_hcd and address 6
usb 1-4: configuration #1 chosen from 1 choice
Linux video capture interface: v2.00
em28xx: New device TerraTec Electronic GmbH Cinergy Hybrid T USB XS (2882) @ 
480 Mbps (0ccd:005e, interface 0, class 0)
em28xx #0: chip ID is em2882/em2883
em28xx #0: i2c eeprom 00: 1a eb 67 95 cd 0c 5e 00 d0 12 5c 03 9e 40 de 1c
em28xx #0: i2c eeprom 10: 6a 34 27 57 46 07 01 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 20: 46 00 01 00 f0 10 31 00 b8 00 14 00 5b 1e 00 00
em28xx #0: i2c eeprom 30: 00 00 20 40 20 6e 02 20 10 01 00 00 00 00 00 00
em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 34 03 54 00 65 00
em28xx #0: i2c eeprom 70: 72 00 72 00 61 00 54 00 65 00 63 00 20 00 45 00
em28xx #0: i2c eeprom 80: 6c 00 65 00 63 00 74 00 72 00 6f 00 6e 00 69 00
em28xx #0: i2c eeprom 90: 63 00 20 00 47 00 6d 00 62 00 48 00 00 00 40 03
em28xx #0: i2c eeprom a0: 43 00 69 00 6e 00 65 00 72 00 67 00 79 00 20 00
em28xx #0: i2c eeprom b0: 48 00 79 00 62 00 72 00 69 00 64 00 20 00 54 00
em28xx #0: i2c eeprom c0: 20 00 55 00 53 00 42 00 20 00 58 00 53 00 20 00
em28xx #0: i2c eeprom d0: 28 00 32 00 38 00 38 00 32 00 29 00 00 00 1c 03
em28xx #0: i2c eeprom e0: 30 00 36 00 30 00 39 00 30 00 32 00 30 00 31 00
em28xx #0: i2c eeprom f0: 33 00 38 00 34 00 33 00 00 00 00 00 00 00 00 00
em28xx #0: EEPROM ID= 0x9567eb1a, EEPROM hash = 0x7713bfbe
em28xx #0: EEPROM info:
em28xx #0:  AC97 audio (5 sample rates)
em28xx #0:  500mA max power
em28xx #0:  Table at 0x27, strings=0x409e, 0x1cde, 0x346a
em28xx #0: Identified as Terratec Hybrid XS (em2882) (card=55)
em28xx #0:

em28xx #0: The support for this board weren't valid yet.
em28xx #0: Please send a report of having this working
em28xx #0: not to V4L mailing list (and/or to other addresses)

tvp5150 4-005c: chip found @ 0xb8 (em28xx #0)
tuner 4-0061: chip found @ 0xc2 (em28xx #0)
xc2028 4-0061: creating new instance
xc2028 4-0061: type set to XCeive xc2028/xc3028 tuner
usb 1-4: firmware: requesting xc3028-v27.fw
xc2028 4-0061: Loading 80 firmware images from xc3028-v27.fw, type: xc2028 
firmware, ver 2.7
xc2028 4-0061: Loading firmware for type=BASE (1), id .
xc2028 4-0061: Loading firmware for type=(0), id b700.
SCODE (2000), id b700:
xc2028 4-0061: Loading SCODE for type=MONO SCODE HAS_IF_4320 (60008000), id 
8000.
em28xx #0: Config register raw data: 0xd0
em28xx #0: AC97 vendor ID = 0x
em28xx #0: AC97 features = 0x6a90
em28xx #0: Empia 202 AC97 audio processor detected
tvp5150 4-005c: tvp5150am1 detected.
em28xx #0: v4l2 driver version 0.1.2
em28xx #0: V4L2 device registered as /dev/video0 and /dev/vbi0
usbcore: registered new interface driver em28xx
em28xx driver loaded
em28xx-audio.c: probing for em28x1 non standard usbaudio
em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
Em28xx: Initialized (Em28xx Audio Extension) extension
tvp5150 4-005c: tvp5150am1 detected.
xc2028 4-0061: Loading firmware for type=BASE F8MHZ (3), id .
xc2028 4-0061: Loading firmware for type=(0), id 00010007.
xc2028 4-0061: Loading SCODE for type=MONO SCODE HAS_IF_5320 (60008000), id 
000f0007.