From: GT Bradley <baykelper@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: PS3 - Surround sound on SPDIF set-up
Date: Wed, 04 Jul 2007 18:23:09 -0700 [thread overview]
Message-ID: <468C47FD.7070003@gmail.com> (raw)
In-Reply-To: <s5hfy44a8rn.wl%tiwai@suse.de>
right,
For my Fedora install, these files are at /etc/alsa/cards, (although
the iec958.conf) is in /etc/alsa/pcm).
The iec958.conf seems resonable, although I don't fully understand the
syntax of the file, nor understand how the asoundrc file wires to
/etc/alsa/... to the actual linux driver. It seems to pass through to
the default device (which is what I want)
using the system-config-soundcard utility, I do get surround sound, and
is displays the card as PS3 whcih matches the output of aplay -l I've
tryed createing a /etc/alsa/cards/PS3.conf file as follows:
I've added the following to my /etc/asound.conf:
pcm.myspdif {
type iec958
slave {
pcm {
type hw
card 0
device 0
# whatever you like
}
format IEC958_SUBFRAME_BE
}
# the below should be corrected with 44.1kHz rates
status [ 0x04 0x92 0x10 0x02 ]
}
I've created a PS3.conf file as follows:
[root@ps3 Surround-SDL-testfiles]# ac3dec -Dmyspdif -C dolby-canyon.ogg
Using PCM device 'myspdif'
Broken configuration for this PCM: no configurations availableOutput
open failed
trying to create a SPDIF device has yeilded
[root@ps3 Surround-SDL-testfiles]# ac3dec -Dmyspdif -C dolby-canyon.ogg
Using PCM device 'myspdif'
snd_pcm_open: No such file or directory
Output open failed
(by an y of the following:)
pcm_slave.SPDIF {
pcm iec958
}
pcm_slave.SPDIF {
type hw
card 0
device 0
}
pcm_type.SPDIF {
redirect {
name iec958
}
}
the sytem-config-soundcard util is still able to play the test tones via
AT3 over spdif.
the default device is as shown below...
GT
Takashi Iwai wrote:
>At Tue, 03 Jul 2007 11:50:34 -0700,
>GT Bradley wrote:
>
>
>>yes,
>> I am aware that AC3 is required, I'm trying to get the AC3
>>pass-through configured. From your response, I understand now that
>>speaker-test is performing as expected, however I have tired other
>>things also:
>> I have some AC3 encoded test files, and I have also tried installing
>>ffmpeg, and liba52. and the ac3dec utility which I understand should
>>pass through the AC3/DTS encoded files, but I recieve:
>>
>>[root@ps3 Surround-SDL-testfiles]# ac3dec -C dolby-canyon.ogg
>>Using PCM device 'plug:iec958:{AES0 0x2 AES1 0x82 AES2 0x0 AES3 0x2}'
>>ALSA lib conf.c:3939:(snd_config_expand) Unknown parameters {AES0 0x2
>>AES1 0x82 AES2 0x0 AES3 0x2}
>>ALSA lib pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x2
>>AES1 0x82 AES2 0x0 AES3 0x2}
>>snd_pcm_open: Invalid argument
>>Output open failed
>>
>>However if I am planning to write ac3 to the linux driver, are you
>>saying that I would be better to write directly to the driver rather
>>than through the ALSA layer?
>>
>>
>
>You need set up the configuration for alsa-lib.
>Otherwise the iec958 PCM isn't defined.
>Usually the card-specific configuration is stored in
>/usr/share/alsa/cards/*.conf.
>
>
>Takashi
>
>
>
next prev parent reply other threads:[~2007-07-05 1:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-03 2:17 PS3 - Surround sound on SPDIF set-up gt bradley
2007-07-03 15:27 ` Lee Revell
2007-07-03 15:31 ` Takashi Iwai
2007-07-03 18:50 ` GT Bradley
2007-07-04 8:11 ` Takashi Iwai
2007-07-05 1:23 ` GT Bradley [this message]
2007-07-05 10:56 ` Takashi Iwai
[not found] ` <c55b1dd60707051534o3e5665c7ue98b64d83a96773d@mail.gmail.com>
2007-07-05 22:37 ` gt bradley
2007-07-06 9:26 ` Takashi Iwai
2007-07-19 6:55 ` multi-channel set up on PS3 gt bradley
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=468C47FD.7070003@gmail.com \
--to=baykelper@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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