* ICH4 audio driver, SPDIF issues. I need your help!
@ 2003-08-03 2:34 pony wang
2003-08-03 9:02 ` James Courtier-Dutton
0 siblings, 1 reply; 2+ messages in thread
From: pony wang @ 2003-08-03 2:34 UTC (permalink / raw)
To: alsa-cvslog, alsa-user, alsa-devel
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
-------- What I want to do?
I want to play a wave file (22050Hz, 2-ch) via SPDIF channel.
-------- What’s my problem?
I think the ICH4 audio controller can’t convert PCM data of 22050Hz to 48KHz.
And the Codec can’t either (codec generally accept 3 sample rates: 32K, 44.1K, 48K).
-------- What’s my question?
* Is there any way to convert PCM data on audio controller side to 48K before being put to AC-Link?
* The VIA 8235 audio Controller seems have the capability to convert PCM data to 48KHz before sending to AC-Link, but ICH4 seems hasn’t, isn’t it?
* How can I play PCM data like 22050Hz via SPDIF Channel? Shall I convert it to 48KHz before I send it to audio controller?
-------- What I have tried?
*My hardware: ICH4 (Audio Controller) + ALC650 (Codec) + Jazz Audio Decoder.
*I tried to carry 22050Hz PCM data on slot 3&4 with PO Channel, with the VRA bit (Codec register 2A[0]) on. And I told Codec to get SPDIF data on slot3&4 too (Codec register 2A[5:4], SPSA). I try to play PCM data via PO and SPDIF simultaneously. But only the PO channel works, the SPDIF only accept 48KHz, 44.1KHz and 32KHz data. So I can't hear anything in SPDIF channel for 22050 PCM data.
Thank you for your help! I'm expecting to your reply!
Sincerely,
Pony
---------------------------------
Do You Yahoo!?
暑期大片齐聚雅虎通 网络摄像头+雅虎通调频收音机等你来拿
[-- Attachment #2: Type: text/html, Size: 4959 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ICH4 audio driver, SPDIF issues. I need your help!
2003-08-03 2:34 ICH4 audio driver, SPDIF issues. I need your help! pony wang
@ 2003-08-03 9:02 ` James Courtier-Dutton
0 siblings, 0 replies; 2+ messages in thread
From: James Courtier-Dutton @ 2003-08-03 9:02 UTC (permalink / raw)
To: pony wang; +Cc: alsa-cvslog, alsa-user, alsa-devel
pony wang wrote:
> -------- What I want to do?
>
> I want to play a wave file (22050Hz, 2-ch) via SPDIF channel.
>
>
>
> -------- What’s my problem?
>
> I think the ICH4 audio controller can’t convert PCM data of 22050Hz to
> 48KHz.
>
> And the Codec can’t either (codec generally accept 3 sample rates: 32K,
> 44.1K, 48K).
>
>
>
> -------- What’s my question?
>
> * Is there any way to convert PCM data on audio controller side to 48K
> before being put to AC-Link?
>
> * The VIA 8235 audio Controller seems have the capability to convert PCM
> data to 48KHz before sending to AC-Link, but ICH4 seems hasn’t, isn’t it?
>
> * How can I play PCM data like 22050Hz via SPDIF Channel? Shall I
> convert it to 48KHz before I send it to audio controller?
>
>
>
> -------- What I have tried?
>
> *My hardware: ICH4 (Audio Controller) + ALC650 (Codec) + Jazz Audio Decoder.
>
> *I tried to carry 22050Hz PCM data on slot 3&4 with PO Channel, with the
> VRA bit (Codec register 2A[0]) on. And I told Codec to get SPDIF data on
> slot3&4 too (Codec register 2A[5:4], SPSA). I try to play PCM data via
> PO and SPDIF simultaneously. But only the PO channel works, the SPDIF
> only accept 48KHz, 44.1KHz and 32KHz data. So I can't hear anything in
> SPDIF channel for 22050 PCM data.
>
>
>
> Thank you for your help! I'm expecting to your reply!
>
>
>
> Sincerely,
>
> Pony
>
Resample the 22050Hz PCM to 48000Hz before sending it to the sound
device. For example: The audio application xine (xine.sf.net) can do
this. Just set the "force rate" config item to 480000.
Alsa's resamplers might be also be able to do this translation, if the
low level hardware driver is telling the upper layers the correct
information.
Cheers
James
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-03 9:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-03 2:34 ICH4 audio driver, SPDIF issues. I need your help! pony wang
2003-08-03 9:02 ` James Courtier-Dutton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.