On Sat, Jul 21, 2012 at 06:04:59PM +0200, Clemens Ladisch wrote:
> Joe Nahmias wrote:
> > I have my custom HTPC hooked up to my receiver using HDMI for both audio
> > and video. Through some trial and error, I managed to find the correct
> > invocation to give me 5.1-channel sound using speaker-test:
> >
> > $ speaker-test -c 6 -D hdmi:0,1 -t wav
> >
> > I would like to know how to configure alsa (? using /etc/asound.conf ?) so
> > that all apps use the correct device by default
>
> Try these entries:
>
> defaults {
> ctl.card PCH
> pcm.card PCH
> pcm.device 7
> }
>
> > with a 5.1 speaker setup.
Hmm, that doesn't seem to work:
$ cat /etc/asound.conf
defaults {
ctl.card PCH
pcm.card PCH
pcm.device 7
}
$ speaker-test -c 6 -t wav
speaker-test 1.0.25
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
ALSA lib conf.c:1017:(parse_value) card is not a string
ALSA lib conf.c:1686:(snd_config_load1) _toplevel_:3:5:Unexpected char
ALSA lib conf.c:3406:(config_file_open) /etc/asound.conf may be old or
corrupted: consider to remove or fix it
Segmentation fault
$
However, if I try this:
$ cat /etc/asound.conf
defaults {
ctl.card 0
pcm.card 0
pcm.device 7
}
$ speaker-test -c 6 -t wav
speaker-test 1.0.25
Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
0 - Front Left
4 - Center
1 - Front Right
3 - Rear Right
2 - Rear Left
5 - LFE
It almost works... However, I only hear sound from the two front speakers
-- not from all six -- the other four just give me silence.
> Usually, you should configure the receiver to expand audio data to 5.1
> channels.
Okay, that makes sense, assuming I can get the above to work.
> Regards,
> Clemens
--Joe
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user