Re: SPDIF/IEC958 sample rate on HDA/ALC882

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Sorry, looks like I overlooked this post...

At Wed, 01 Nov 2006 17:58:55 +0100,
Erik Slagter wrote:
> 
> Sorry if this is considered to be "user" question, but I got no response
> at all from the "user" list. Guess the real cracks hang around here.
> 
> I have lots of questions I cannot resolve from all of the docs, but for
> the moment I'll stick to the most important one.
> 
> The combination of HDA/ALC882 should be able to deliver sound at 96 kHz
> (hda..., right...) Also the ALC882 datasheet says it can deliver sound
> at 96 kHz.
> 
> In practise, though, I cannot get it to output any other sample rate
> than 48 kHz. Any other sample rate handed to hw:0,0 is simply converted
> (somewhere??? and badly...) to 48 kHz and the SPDIF is still driven at
> 48 kHz.
> 
> 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.)

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 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.

> 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.


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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux