All of lore.kernel.org
 help / color / mirror / Atom feed
* VIA EPIA (VT1612A) and SPDIF
@ 2003-02-19  0:17 Mathias Kretschmer
  2003-02-19  9:29 ` Takashi Iwai
  2003-02-19 10:30 ` rules for /proc/asound [was: VIA EPIA (VT1612A) and SPDIF] Martin Langer
  0 siblings, 2 replies; 4+ messages in thread
From: Mathias Kretschmer @ 2003-02-19  0:17 UTC (permalink / raw)
  To: alsa-devel

Hi,

I'm wondering if anyone has SPDIF working on the
VIA EPIA ESP5000 under rc7?

Analog output is working fine for me using rc7 and the CVS via82xx 
module (1.25). But, I didn't have any luck getting SPDIF (PCM) to work 
using a Pioneer Digital Receiver.

Any success reports or any hints which knobs to turn to make it work ?

Cheers,

Mathias

Some info from /proc/asound:

[root@musicbox root]# cat /proc/asound/cards
0 [rev40          ]: VIA686A - VIA 82C686A/B rev40
                      VIA 82C686A/B rev40 at 0xdc00, irq 10

[root@musicbox root]# cat /proc/asound/card0/ac97#0
0-0/0: VIA Technologies VIA1612A

Capabilities     : -headphone out-
DAC resolution   : 18-bit
ADC resolution   : 18-bit
3D enhancement   : Reserved 27

Current setup
Mic gain         : +0dB [+0dB]
POP path         : pre 3D
Sim. stereo      : off
3D enhancement   : off
Loudness         : off
Mono output      : MIX
Mic select       : Mic1
ADC/DAC loopback : off
Extended ID      : codec=0 rev=0 AMAP DSA=0 SPDIF VRA
Extended status  : SPDIF=3/4 SPDIF VRA
PCM front DAC    : 44100Hz
PCM ADC          : 48000Hz
SPDIF Control    : Consumer PCM Copyright Category=0x2 Generation=1 
Rate=48kHz



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VIA EPIA (VT1612A) and SPDIF
  2003-02-19  0:17 VIA EPIA (VT1612A) and SPDIF Mathias Kretschmer
@ 2003-02-19  9:29 ` Takashi Iwai
  2003-02-22  3:19   ` Mathias Kretschmer
  2003-02-19 10:30 ` rules for /proc/asound [was: VIA EPIA (VT1612A) and SPDIF] Martin Langer
  1 sibling, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2003-02-19  9:29 UTC (permalink / raw)
  To: Mathias Kretschmer; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

At Tue, 18 Feb 2003 19:17:47 -0500,
Mathias Kretschmer wrote:
> 
> Hi,
> 
> I'm wondering if anyone has SPDIF working on the
> VIA EPIA ESP5000 under rc7?
> 
> Analog output is working fine for me using rc7 and the CVS via82xx 
> module (1.25). But, I didn't have any luck getting SPDIF (PCM) to work 
> using a Pioneer Digital Receiver.
> 
> Any success reports or any hints which knobs to turn to make it work ?

the code on rc7 doesn't set the correct SPDIF rate, so it won't work
properly.  i changed via82xx.c to set it for via686, too.  please try
the cvs version.

in addition, copy the attached to /usr/share/alsa/cards.
and try playback via "spdif" or "iec958" pcm, e.g.

	% aplay -Dspdif foo.wav

(don't ask me how to use spdif on oss programs :)


Takashi

[-- Attachment #2: VIA686A.conf --]
[-- Type: application/octet-stream, Size: 852 bytes --]

#
# Configuration for the VIA686
#

<confdir:pcm/front.conf>

VIA686A.pcm.front.0 {
	@args [ CARD ]
	@args.CARD {
		type string
	}
	type hw
	card $CARD
	device 0
}	

<confdir:pcm/iec958.conf>

VIA686A.pcm.iec958.0 {
	@args [ CARD AES0 AES1 AES2 AES3 ]
	@args.CARD {
		type string
	}
	@args.DEV {
		type integer
	}
	@args.AES0 {
		type integer
	}
	@args.AES1 {
		type integer
	}
	@args.AES2 {
		type integer
	}
	@args.AES3 {
		type integer
	}
	type hooks
	slave.pcm {
		type hw
		card $CARD
		device 0
	}
	hooks.0 {
		type ctl_elems
		hook_args [
			{
				name "IEC958 Playback AC97-SPSA"
				lock true
				preserve true
				value 0
			}
			{
				name "IEC958 Playback Default"
				lock true
				preserve true
				value [ $AES0 $AES1 $AES2 $AES3 ]
			}
			{
				name "IEC958 Playback Switch"
				lock true
				preserve true
				value true
			}
		]
	}
}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* rules for /proc/asound [was: VIA EPIA (VT1612A) and SPDIF]
  2003-02-19  0:17 VIA EPIA (VT1612A) and SPDIF Mathias Kretschmer
  2003-02-19  9:29 ` Takashi Iwai
@ 2003-02-19 10:30 ` Martin Langer
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Langer @ 2003-02-19 10:30 UTC (permalink / raw)
  To: alsa-devel

On Tue, Feb 18, 2003 at 07:17:47PM -0500, Mathias Kretschmer wrote:
> 
> [root@musicbox root]# cat /proc/asound/card0/ac97#0
> 0-0/0: VIA Technologies VIA1612A
> 
> Capabilities     : -headphone out-
> DAC resolution   : 18-bit
> ADC resolution   : 18-bit
> 3D enhancement   : Reserved 27
> 
> Current setup
> Mic gain         : +0dB [+0dB]
> POP path         : pre 3D
> Sim. stereo      : off
> 3D enhancement   : off
> Loudness         : off
> Mono output      : MIX
> Mic select       : Mic1
> ADC/DAC loopback : off
> Extended ID      : codec=0 rev=0 AMAP DSA=0 SPDIF VRA
> Extended status  : SPDIF=3/4 SPDIF VRA
> PCM front DAC    : 44100Hz
> PCM ADC          : 48000Hz
> SPDIF Control    : Consumer PCM Copyright Category=0x2 Generation=1 
> Rate=48kHz
> 


Are there any rules for /proc/asound/cardX/XXX status files? Has it to be
readable by an external script? I think using standard control names can be 
one point. Are there other things I have to think about? Or is it still an
area without rules?


martin



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: VIA EPIA (VT1612A) and SPDIF
  2003-02-19  9:29 ` Takashi Iwai
@ 2003-02-22  3:19   ` Mathias Kretschmer
  0 siblings, 0 replies; 4+ messages in thread
From: Mathias Kretschmer @ 2003-02-22  3:19 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Takashi Iwai wrote:
> At Tue, 18 Feb 2003 19:17:47 -0500,
> Mathias Kretschmer wrote:
> 
>>Hi,
>>
>>I'm wondering if anyone has SPDIF working on the
>>VIA EPIA ESP5000 under rc7?
>>
>>Analog output is working fine for me using rc7 and the CVS via82xx 
>>module (1.25). But, I didn't have any luck getting SPDIF (PCM) to work 
>>using a Pioneer Digital Receiver.
>>
>>Any success reports or any hints which knobs to turn to make it work ?
> 
> 
> the code on rc7 doesn't set the correct SPDIF rate, so it won't work
> properly.  i changed via82xx.c to set it for via686, too.  please try
> the cvs version.

OK, I just installed the lastest CVS snapshot and also copied
VIA686A.conf to /usr/share/alsa/cards.

Using aplay I'm getting some spdif output. It's very jerky, though.
There is audio for a few 100ms and then silence, and then signal again.
Same effect using an OSS player.  The analog output works fine - no 
interruptions at all.

The sample rate as either 44.1kHz or 48kHz - same problem.

I just got a EPIA-M1000 board. It has a 8235 and spdif works just fine
here using either aplay or an OSS player.

Any further info I can provide to help tracking down the problem ?

Cheers,

Mathias



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-22  3:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-19  0:17 VIA EPIA (VT1612A) and SPDIF Mathias Kretschmer
2003-02-19  9:29 ` Takashi Iwai
2003-02-22  3:19   ` Mathias Kretschmer
2003-02-19 10:30 ` rules for /proc/asound [was: VIA EPIA (VT1612A) and SPDIF] Martin Langer

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.