Skip to contentSkip to conversation

: Unable to play S/P-DIF or surround sound

ALSA - driver 0000298 [email protected] 1 participant 1 message Jul 8, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=298>
======================================================================
Reported By: bhess
Assigned To:
======================================================================

Project:                    ALSA - driver
Issue ID:                   298
Category:                   PCI - via82xx
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
Distribution:               Suse 9.0
Kernel Version:             2.4.21-144
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             05-22-2004 21:14 CEST
Last Modified:              07-08-2005 10:38 CEST

======================================================================
Summary: Unable to play S/P-DIF or surround sound
Description:
I'm trying to use spdif on my VIA EPIA-V board.

When I test with "./speaker-test -Dsurround51 -c 6"
I'm getting the message:
ALSA lib pcm.c:1851:(snd_pcm_open_conf)
Invalid type for PCM surround51 definition (id: surround51, value:
cards.pcm.surround51)
Playback open error: Invalid argument

My setup (output from alsamixer):
Card: VIA 82C686A/B rev40
Chip: VIA Technologies VIA1612A

But this chip is built into the south bridge VT8231 of my VIA EPIA-V.

The info files look this way:
/proc/asound/card0/pcm0p/info /proc/asound/card0/pcm0p/sub0/info

card: 0 card: 0

device: 0 device: 0

subdevice: 0 subdevice: 0

stream: PLAYBACK stream: PLAYBACK

id: VIA 82C686A/B rev40 id: VIA 82C686A/B rev40

name: VIA 82C686A/B rev40 name: VIA 82C686A/B rev40

subname: subdevice https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0
subname: subdevice https://bugtrack.alsa-project.org/alsa-bug/view.php?id=0

class: 0 class: 0

subclass: 0 subclass: 0

subdevices_count: 1 subdevices_count: 1

subdevices_avail: 1 subdevices_avail: 1

It seems that alsa tries to open the definition file cards.VIA686A, which is not
provided by alsa. When I add the line "VIA686A cards.VIA8233A" to aliases.conf,
the command

./speaker-test -Dsurround51 -c 2

works fine.

Yet, the next command yields

./speaker-test -Dsurround51 -c 4
Playback device is surround51
Stream parameters are 44100Hz, S16_LE, 4 channels
Sine wave rate is 440.0000Hz
Channels count (4) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument

How can I fix this?

Cheers
Beat
======================================================================

----------------------------------------------------------------------
tiwai - 05-27-04 11:47
----------------------------------------------------------------------
could you try 1.0.5?

----------------------------------------------------------------------
bhess - 05-28-04 19:51
----------------------------------------------------------------------
It's working with 1.0.5rc1!

So far, I was able to play two channel output
./speaker-test -Dspdif -c2
Playback device is spdif
Stream parameters are 44100Hz, S16_LE, 2 channels
Sine wave rate is 440.0000Hz
period_size=1200, buffer_size=4800
- Front Left
- Front Right
- Front Left

When I try 4 channels, I get

./speaker-test -Dspdif -c4
Playback device is spdif
Stream parameters are 44100Hz, S16_LE, 4 channels
Sine wave rate is 440.0000Hz
Channels count (4) not available for playbacks: Invalid argument Setting of hwparams failed: Invalid argument

I suppose this is a limit of my sound chip, isn't it?

Thanks for your help

Issue History
Date Modified Username Field Change
======================================================================

05-22-04 21:14 bhess          New Issue                                    
05-22-04 21:14 bhess          Distribution              => Suse 9.0        
05-22-04 21:14 bhess          Kernel Version            => 2.4.21-144      
05-24-04 15:05 tiwai          Note Added: 0001186                          
05-24-04 21:50 bhess          Note Added: 0001197                          
05-25-04 12:43 tiwai          Note Added: 0001203                          
05-26-04 11:42 bhess          Note Added: 0001246                          
05-26-04 13:34 tiwai          Note Added: 0001250                          
05-26-04 19:54 bhess          Note Added: 0001260                          
05-27-04 11:47 tiwai          Note Added: 0001263                          
05-28-04 19:51 bhess          Note Added: 0001271                          
04-04-05 22:29 jdthood        Status                   new => resolved     
04-04-05 22:29 jdthood        Resolution               open => fixed       
07-08-05 10:38 perex          Status                   resolved => closed  

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar