public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Florian Klink <flokli@flokli.de>
Cc: linux-media@vger.kernel.org
Subject: Re: em28xx: Terratec Grabby no sound
Date: Mon, 25 Oct 2010 15:28:25 -0200	[thread overview]
Message-ID: <4CC5BE39.70206@redhat.com> (raw)
In-Reply-To: <f9fc4355b0c721744c6522a720ee2df7@flokli.de>

Em 25-10-2010 15:24, Florian Klink escreveu:
> Hi,
> 
> I recently bought a Terratec Grabby. The device has a S-Video and 3 Cinch
> cables (sound left, sound right, video). I want to record some video
> cassettes with it. (with a cinch-scart adapter).
> 
> I checked the signal, there is audio and video on it.
> 
> When I try to "play" the capture device with e.g. mplayer, I see "no
> sound", even with various options.
> 
> I can hear sound only by doing "arecord -D hw:2,0 -r 32000 -c 2 -f S16_LE |
> aplay -", but as soon as mplayer is starting, I can't hear anything
> anymore.
> 
> ...which means that using alsa as the sound device with mplayer doesn't
> work either.
> 
> Am I missing something?

Maybe the amux is wrong. The only way to know for sure is to check the used GPIO's,
via a USB snoop dump. Please take a look at linuxtv.org Wiki (search for usbsnoop).
After getting the dump, please parse it and send me.

> 
> I checked the source code, Terratec Grabby support was introduced with
> 4557af9c5338605c85fe54f5ebba3d4b14a60ab8:
> 
> -----------------------------------------
> diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
> index 7cb93fb..b4c78f2 100644
> --- a/drivers/media/video/em28xx/em28xx-cards.c
> +++ b/drivers/media/video/em28xx/em28xx-cards.c
> @@ -1347,6 +1347,22 @@ struct em28xx_board em28xx_boards[] = {
>              .amux     = EM28XX_AMUX_VIDEO,
>          } },
>      },
> +    [EM2860_BOARD_TERRATEC_GRABBY] = {
> +        .name            = "Terratec Grabby",
> +        .vchannels       = 2,
> +        .tuner_type      = TUNER_ABSENT,
> +        .decoder         = EM28XX_SAA711X,
> +        .xclk            = EM28XX_XCLK_FREQUENCY_12MHZ,
> +        .input           = { {
> +            .type     = EM28XX_VMUX_COMPOSITE1,
> +            .vmux     = SAA7115_COMPOSITE0,
> +            .amux     = EM28XX_AMUX_VIDEO2,
> +        }, {
> +            .type     = EM28XX_VMUX_SVIDEO,
> +            .vmux     = SAA7115_SVIDEO3,
> +            .amux     = EM28XX_AMUX_VIDEO2,
> +        } },
> +    },
>  };
>  const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
> 
> @@ -1410,6 +1426,8 @@ struct usb_device_id em28xx_id_table[] = {
>              .driver_info = EM2870_BOARD_TERRATEC_XS },
>      { USB_DEVICE(0x0ccd, 0x0047),
>              .driver_info = EM2880_BOARD_TERRATEC_PRODIGY_XS },
> +    { USB_DEVICE(0x0ccd, 0x0096),
> +            .driver_info = EM2860_BOARD_TERRATEC_GRABBY },
>      { USB_DEVICE(0x185b, 0x2870),
>              .driver_info = EM2870_BOARD_COMPRO_VIDEOMATE },
>      { USB_DEVICE(0x185b, 0x2041),
> diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h
> index e801f78..fa2fb41 100644
> --- a/drivers/media/video/em28xx/em28xx.h
> +++ b/drivers/media/video/em28xx/em28xx.h
> @@ -103,6 +103,7 @@
>  #define EM2860_BOARD_EASYCAP                      64
>  #define EM2820_BOARD_IODATA_GVMVP_SZ          65
>  #define EM2880_BOARD_EMPIRE_DUAL_TV          66
> +#define EM2860_BOARD_TERRATEC_GRABBY          67
> 
>  /* Limits minimum and default number of buffers */
>  #define EM28XX_MIN_BUF 4
> -----------------------------------------
> 
> Is there maybe a wrong amux set? Which one could it be?
> Is sound-usb-audio somehow conflicting with em28xx module?
> 
> I hope you have an idea what is wrong here!
> 
> Florian Klink
> 


  reply	other threads:[~2010-10-25 17:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-25 17:24 em28xx: Terratec Grabby no sound Florian Klink
2010-10-25 17:28 ` Mauro Carvalho Chehab [this message]
     [not found]   ` <d8211f823d481e2991821b5dfc4e8b84@flokli.de>
2010-10-25 20:51     ` Mauro Carvalho Chehab
2010-10-25 22:06       ` Florian Klink
2010-10-25 23:18         ` Mauro Carvalho Chehab
2010-10-26 12:58           ` Florian Klink
2010-11-09 10:56             ` Mauro Carvalho Chehab
  -- strict thread matches above, loose matches on Subject: below --
2010-12-27 13:54 Florian Klink
2010-10-23 12:58 Florian Klink
2010-10-25 14:19 ` Michael Bonfils

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=4CC5BE39.70206@redhat.com \
    --to=mchehab@redhat.com \
    --cc=flokli@flokli.de \
    --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