From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Gareth Williams <gareth@garethwilliams.me.uk>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH 1/2] Fixed detection of EMP202 audio chip. Some versions have an id of 0x83847650 instead of 0xffffffff.
Date: Wed, 21 Dec 2011 11:54:33 -0200 [thread overview]
Message-ID: <4EF1E519.1010600@redhat.com> (raw)
In-Reply-To: <3535794.dt3qgLM7n9@kubuntu>
On 20-12-2011 19:45, Gareth Williams wrote:
> Signed-off-by: Gareth Williams <gareth@garethwilliams.me.uk>
>
> Honestech Vidbox NW03 has a EMP202 audio chip with a different Vendor ID.
>
> Apparently, it is the same with the Gadmei ITV380:
> http://linuxtv.org/wiki/index.php/Gadmei_USB_TVBox_UTV380
>
> ---
> linux/drivers/media/video/em28xx/em28xx-core.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/linux/drivers/media/video/em28xx/em28xx-core.c b/linux/drivers/media/video/em28xx/em28xx-core.c
> index 804a4ab..2982a06 100644
> --- a/linux/drivers/media/video/em28xx/em28xx-core.c
> +++ b/linux/drivers/media/video/em28xx/em28xx-core.c
> @@ -568,7 +568,7 @@ int em28xx_audio_setup(struct em28xx *dev)
> em28xx_warn("AC97 features = 0x%04x\n", feat);
>
> /* Try to identify what audio processor we have */
> - if ((vid == 0xffffffff) && (feat == 0x6a90))
> + if (((vid == 0xffffffff) || (vid == 0x83847650)) && (feat == 0x6a90))
Are you sure you don't have, instead a STAC9750? 0x83647650 is the code
for this chip. Did you open your device to be sure it is really an em202?
Vendors are free to put whatever AC97 chip they want. Each of them have
their own differences (different sample rate, different volume controls,
etc).
While miss-identifying it may work for your usecase, it will fail for
other usecases. The good news is that, in general, the datasheets for
AC97 mixers are generally easy to find on Google. Most vendors release them
publicly.
Regards,
Mauro
next prev parent reply other threads:[~2011-12-21 13:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-20 21:45 [PATCH 1/2] Fixed detection of EMP202 audio chip. Some versions have an id of 0x83847650 instead of 0xffffffff Gareth Williams
2011-12-21 13:54 ` Mauro Carvalho Chehab [this message]
2011-12-21 15:24 ` Gareth Williams
2011-12-21 21:57 ` Gareth Williams
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=4EF1E519.1010600@redhat.com \
--to=mchehab@redhat.com \
--cc=gareth@garethwilliams.me.uk \
--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