Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Antonin ENFRUN <ae.tech@noos.fr>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: PATCH] SPDIF out clock sync for via8235 / ALC650
Date: Thu, 28 Nov 2002 16:32:48 +0100	[thread overview]
Message-ID: <s5hznrtzp3z.wl@alsa2.suse.de> (raw)
In-Reply-To: <1038310932.5903.34.camel@petulant>

Hi,

At 26 Nov 2002 12:42:12 +0100,
Antonin ENFRUN wrote:
> 
> I'm using alsa-driver 0.9.0rc6 on an Asus A7V8X (via8235 southbridge and
> ALC650 -ac97 compatible- codec).
> 
> PCM output is fine on the main analog channel, but SPDIF out is not
> working for any FS != 48khz. Looking at the source, the SPDIF out is
> initialised at 48Khz on startup, and there is no way to change it. But
> the ALC650 disable SPDIF out if SPDIF clock is not the same as the clock
> used on the corresponding ac-link channel (I don't know if it's a
> standard AC97 behaviour ?)
> 
> The patch included tracks clock change on the main DAC channel, and
> updates the SPDIF clock accordingly : it allows SPDIF out to output the
> main PCM channel, when the sample rate is 32K, 44.1K or 48K.

thanks for your patch!

we have already a method to change the spdif rate:
	snd_ac97_set_rate(ac97, AC97_SPDIF, rate);
but it didn't work properly.  so i fixed the relevant part based on
your patch.

to via82xx.c, the above call was just added, so that the spdif rate is
automatically changed.


> 
> If there is a better solution, let me know !
> 
> TODO:
> * Test for the codec used (if other codecs don't need this ?)
> * Check the channel/slot on AC97-SPSA to track the corresponding clock.
> 
> On a side note, how can I send PCM to the other channels (rear,
> lfe/front and spdif) ?

you can use 4 or 6 channel interleaved samples.

> And is there already an API to get/set the SPDIF clock ?

it's possible also to use a control "IEC958 Playback Default" and set
iec958 status bits.


ciao,

Takashi


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en

  reply	other threads:[~2002-11-28 15:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-26 11:42 PATCH] SPDIF out clock sync for via8235 / ALC650 Antonin ENFRUN
2002-11-28 15:32 ` Takashi Iwai [this message]
2002-12-30 21:30   ` jgotts
2003-02-02 12:03     ` jgotts
2003-02-03  9:45       ` Takashi Iwai
     [not found]         ` <3E3E462E.B2EDC7D8@lysator.liu.se>
2003-02-03 10:45           ` Takashi Iwai
     [not found]             ` <3E3E4D63.8BFEC97F@lysator.liu.se>
2003-02-03 11:26               ` Takashi Iwai

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=s5hznrtzp3z.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=ae.tech@noos.fr \
    --cc=alsa-devel@lists.sourceforge.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