public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
To: Debucquoy Anthony <d.tonitch@gmail.com>
Cc: linux-media@vger.kernel.org
Subject: Re: Grabster AV 350 no audio
Date: Fri, 1 Oct 2021 09:19:09 +0200	[thread overview]
Message-ID: <20211001091909.16f24ed9@coco.lan> (raw)
In-Reply-To: <YVXA2vZtsdzJD5Vs@toninux>

Hi Anthony,

Em Thu, 30 Sep 2021 15:51:22 +0200
Debucquoy Anthony <d.tonitch@gmail.com> escreveu:

> Hello,
> 
> I have currently have a (Grabster AV 350)
> [https://www.terratec.de/details.php?artnr=10599&lang=en]
> (and 300 that work even less but I will do another thread for it I think) 
> 
> I can easily get video output out of it with /dev/video0 but the problem
> is that I can't get audio by any way

...

> [ 7275.368159 ] em28xx 1-8:1.0: Identified as Terratec AV350 (card=68)
> [ 7275.368163 ] em28xx 1-8:1.0: analog set to isoc mode.
> [ 7275.368192 ] em28xx 1-8:1.0: Registering V4L2 extension
> [ 7275.497387 ] tvp5150 9-005c: tvp5150 (4.0) chip found @ 0xb8 (1-8:1.0)
> [ 7275.497396 ] tvp5150 9-005c: tvp5150am1 detected.
> [ 7278.429769 ] em28xx 1-8:1.0: Config register raw data: 0x50
> [ 7278.470775 ] em28xx 1-8:1.0: AC97 vendor ID = 0x83847666
> [ 7278.490776 ] em28xx 1-8:1.0: AC97 features = 0x6a90
> [ 7278.490782 ] em28xx 1-8:1.0: Sigmatel audio processor detected (stac
> 9766)

The em28xx devices use an external chip for audio, using AC97.

As AC97 is an industry standard, it is possible for board vendors
to replace it with different chips. They do that with time, selecting
a different chip when they need/want.

The boards entry at the em28xx has configurations for the device that
was used at the time the code was introduced, but this may not be
the case anymore for a newer device.

Anyway, the AC97 chips have several different entries. From its
datasheet:

	https://www.digchip.com/datasheets/parts/datasheet/649/STAC9766-pdf.php

It sees that it has the following input lines:

	pc beep
	phone
	aux
	video
	cd
	mic
	line in

They also have a "Master" volume that the driver sets to be in 100%
(but some apps and pulseaudio might reduce it to 0%, causing the device
to be muted).

Anyway, the AC97 Kernel support will expose all lines reported by the
hardware via an ALSA mixer. 

The AV 350 entry assumes that the "line in" mixer entry is the one 
containing the audio. So, it will place the volume for such line
in 100%.

However, maybe, on your device, some other input was used instead.

If this is the case, all you need to do is to open a mixer, unmute
the right line and manually increase the volume.

-

There's a separate issue that might explain why some people
are using a different card: some boards require a command to
enable some pins (called GPIO). Those are used, among other
things, to enable/disable some external chips. In the case of
the original AV 350 that was used to add support for it,
it used some of those GPIOs to enable the AC97 inputs.
If your AV 350 requires a different setting, that will require
to patch the Kernel, but it is more likely that the problem on
your device is just due to a different AC97 volume.

Thanks,
Mauro

  reply	other threads:[~2021-10-01  7:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 13:51 Grabster AV 350 no audio Debucquoy Anthony
2021-10-01  7:19 ` Mauro Carvalho Chehab [this message]
2021-10-01 14:33   ` Debucquoy Anthony
2021-10-16 17:35   ` [Update] Grabster AV 350 no audio (now works with tvtime) Debucquoy Anthony
2021-10-17  0:54     ` Mauro Carvalho Chehab
2021-10-17 21:47       ` Debucquoy Anthony

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=20211001091909.16f24ed9@coco.lan \
    --to=mchehab+huawei@kernel.org \
    --cc=d.tonitch@gmail.com \
    --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