Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Erik Slagter <erik@slagter.name>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: SPDIF/IEC958 sample rate on HDA/ALC882
Date: Tue, 28 Nov 2006 15:43:57 +0100	[thread overview]
Message-ID: <s5hd5774onm.wl%tiwai@suse.de> (raw)
In-Reply-To: <456C35F5.5070808@slagter.name>

At Tue, 28 Nov 2006 14:13:25 +0100,
Erik Slagter wrote:
> 
> Takashi Iwai wrote:
> >> iecset allows me to set the rate to 32/44.1/48 kHz, the spdif output is
> >> still at 48 kHz. Some other flags from iecset are actually honoured
> >> (like "data" and "emphasis").
> 
> > It's simply because iecset program doesn't support the rates over
> > 48kHz.  But the hda-intel driver supports the rate, AFAIK.
> > (At least, there is no particular code that restricts over-48kHz.)
> 
> The problem is that whatever I set the sampling rate to, the output is
> ALWAYS 48 Khz, either set to 32, 41 or 48 Khz. I am not even talking
> about the higher rates.
> 
> > One thing to be noted is that if you use "hw" PCM device, you have to
> > set up the SPDIF status bits _manually_ via control API.  If you use
> > "iec958" or "spdif" PCM device, you can pass these bits as optional
> > arguments at opening the PCM.
> 
> I've tried that, but it's ehhhrrrmmm lacking some documentation.

You have all the source code, what else? :)

> >> I can ask aplay to play at various rates (from a suitable PCM file), but
> >> it complains at any other rate than 44.1 or 48 (notably 32) kHz that the
> >> rate is not supported. It plays at 44.1 kHz though. And again converts
> >> it to 48 kHz! Sigh...
> 
> > Who complains?  At least, the driver won't.
> 
> aplay complains, I suspect as a result of a return value from the
> driver. I can give you the output if it helps. I can even do an strace.

strace doesn't help much, I guess.  Provide rather what exactly you
did and what exactly you got, at first.  I can't reproduce nor check
anything unless I get precise information.  Also, try always the
latest version if you want to debug/analyzie something, i.e. ALSA HG
version.

> >> Maybe I am using the wrong "hw", there is also a "hw:0,2" device, which
> >> I cannot make work properly at all (only one channel is output, large
> >> chunks are discarded, much much clipping).
> 
> > The first PCM device is for the multi-output PCM.  It's for both
> > analog and digital.  The dedicated SPDIF is the secondary one.
> 
> But why does the second interface gives _some_ (although wrong) output
> on my spdif output then?

No idea, possibly wrong parameters are passed.

> Anyway, I double checked and the alc882 CAN output at various rates,
> also on the sp/dif output.

It's likely true.  Better to check the proc file content of codec#*
file rather than reading datasheets (what are often wrong), though.


Takashi

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

  parent reply	other threads:[~2006-11-28 14:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-01 16:58 SPDIF/IEC958 sample rate on HDA/ALC882 Erik Slagter
2006-11-28 12:48 ` Takashi Iwai
     [not found]   ` <456C35F5.5070808@slagter.name>
2006-11-28 14:43     ` Takashi Iwai [this message]
     [not found]       ` <456C8316.30309@slagter.name>
2006-11-29 10:25         ` Takashi Iwai
2006-11-29 10:41           ` Erik Slagter
2006-11-29 10:54             ` Takashi Iwai
2006-11-29 11:18               ` Erik Slagter
2006-12-08 13:55   ` Erik Slagter
2006-12-11 12:50   ` Erik Slagter
     [not found]   ` <loom.20070321T222449-537@post.gmane.org>
     [not found]     ` <87648thdes.fsf@gandalf.hd.free.fr>
     [not found]       ` <udejnhy14a.fsf@sid.nimrod.no>
     [not found]         ` <ud8xdpxw1y.fsf@sid.nimrod.no>
     [not found]           ` <874podj8rw.fsf@gandalf.hd.free.fr>
     [not found]             ` <87zm65htl3.fsf@gandalf.hd.free.fr>
     [not found]               ` <udvegss2jm.fsf@sid.nimrod.no>
     [not found]                 ` <87ircr7o8n.fsf@gandalf.hd.free.fr>
     [not found]                   ` <udbqijefbj.fsf@sid.nimrod.no>
     [not found]                     ` <87ps6z3wbn.fsf_-_@gandalf.hd.free.fr>
     [not found]                       ` <udmz21sosc.fsf@sid.nimrod.no>
     [not found]                         ` <87r6rbn7xp.fsf@gandalf.hd.free.fr>
     [not found]                           ` <udps6t7cz3.fsf@sid.nimrod.no>
     [not found]                             ` <87y7ler7ng.fsf@gandalf.hd.free.fr>
     [not found]                               ` <s5h7isvktie.wl%tiwai@suse.de>
     [not found]                                 ` <kgitzvx6feb.fsf@komarr.grenoble.hp.com>
     [not found]                                   ` <s5h4pnxinny.wl%tiwai@suse.de>
     [not found]                                     ` <87k5wtjrev.fsf_-_@gandalf.hd.free.fr>
     [not found]                                       ` <kgiwt0s4jpv.fsf@komarr.grenoble.hp.com>
     [not found]                                         ` <udd52kqlhv.fsf@sid.nimrod.no>
     [not found]                                           ` <s5hvegcdxun.wl%tiwai@suse.de>
     [not found]                                             ` <udabxf9uvz.fsf@sid.nimrod.no>
     [not found]                                               ` <s5htzvnz0jy.wl%tiwai@suse.de>
2007-04-22 11:01                                                 ` [PATCH] Re: iec958 switch uneffective while playing ac3 stream Dag Lem

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=s5hd5774onm.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=erik@slagter.name \
    /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