alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: "Demian Martin" <demianm_1@yahoo.com>
To: hegge@resisty.net
Cc: alsa-devel@alsa-project.org
Subject: Re: ALSA: usb: Work around CM6631 sample
Date: Tue, 5 Mar 2013 15:37:39 -0800	[thread overview]
Message-ID: <001f01ce19fa$6d770c80$48652580$@com> (raw)

Date: Tue, 5 Mar 2013 23:03:03 +0100
From: Torstein Hegge <hegge@resisty.net>
To: alsa-devel@alsa-project.org
Subject: [alsa-devel] [PATCH v3] ALSA: usb: Work around CM6631 sample
	rate	change bug
Message-ID: <20130305220303.GD20417@pvv.ntnu.no>
Content-Type: text/plain; charset=utf-8
The C-Media CM6631 USB-to-S/PDIF receiver doesn't respond to changes in
sample rate while the interface is active.

Reset the interface after setting the sampling frequency on sample rate
changes, to ensure that the sample rate set by snd_usb_init_sample_rate() is
used. Otherwise, the device will try to use the sample rate of the previous
stream, causing distorted sound on sample rate changes.

The reset is performed for all current C-Media UAC V2.0 devices, including
CM6610, CM6620 and CM6631, but has only been tested with CM6631.

Signed-off-by: Torstein Hegge <hegge@resisty.net>

I met with the CMedia team late last year. They told me that the chips are
different and they were showing me a CM6631a that has some key differences
from the CM6631. The two are pin compatible. I got the impression that the
driver requirements are different.

I asked about Linux support and what the problem was. First, on UAC2 Their
software wizard dug deep into the problem with their CM6631 and ALSA. He
concluded that there is a sequence problem between setting sample rate and
sending the "play' command. Something about UAC1 method not being the same
as UAC2. He indicated that the ALSA driver handles this differently from the
OSX and their Windows drivers. I may well have this description confused. In
any case he has a revised firmware for the new CM6631A chip that addresses
this in ALSA. I asked them to contribute the change but they seemed to get
distracted with other projects. Needless to say for them the volume on these
chips has been small.

I just requested that they contribute to this effort again. I don't know if
it will happen.
                              Demian

             reply	other threads:[~2013-03-05 23:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05 23:37 Demian Martin [this message]
2013-03-06  8:43 ` ALSA: usb: Work around CM6631 sample Clemens Ladisch

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='001f01ce19fa$6d770c80$48652580$@com' \
    --to=demianm_1@yahoo.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=hegge@resisty.net \
    /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;
as well as URLs for NNTP newsgroup(s).