Skip to contentSkip to conversation

: Unable to get SPDIF output on Biostar IDEQ minipc

ALSA - driver 0000523 [email protected] 1 participant 1 message Sep 24, 2004

lore
Share & tools
lore
#0 lore raw

A BUGNOTE has been added to this bug.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000523
======================================================================
Reported By: pharm
Assigned To:
======================================================================

Project:                    ALSA - driver
Bug ID:                     523
Category:                   PCI - via82xx
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Distribution:               Debian unstable
Kernel Version:             2.4.27-1-k7 with alsa 1.0.6a (1.0.7rc1 doesn't work either)
======================================================================
Date Submitted:             09-22-2004 22:48 CEST
Last Modified:              09-24-2004 17:08 CEST

======================================================================
Summary: Unable to get SPDIF output on Biostar IDEQ minipc
Description:
I have a Biostar IDEQ 210V minipc. As well as 6 channel analog out (which appears to work, at least stereo analog out does for certain) there are two digital (optical) SPDIF outputs. Unfortunately I can't get anything to recognise these -- mplayer complains about the lack of IEC958 mixer entries if I try to use the hwac3 output, and if I point the alsa output at any of the list of hardware outputs I get nothing from the digital amp -- it doesn't appear to get any signal.

Assuming I'm not doing something dumb, is there anything else I should try? I've tried all the ac97_quirk options.
======================================================================

----------------------------------------------------------------------
tiwai - 09-23-2004 18:25 CEST
----------------------------------------------------------------------
Could you try the attached patch?
(Note that it's totally untested.)

----------------------------------------------------------------------
pharm - 09-23-2004 22:09 CEST
----------------------------------------------------------------------
What am I looking for? It seems to detect OK:
/proc/asound/card0/codec97#0/ac97#0-0 contains the new ID string.

but there's no sound output :( (unless I've fouled up the mixer -- will check again)

Is there stuff I can twiddle to see what works? I'll have a spelunk through the patch, but I'm not familiar with the alsa internals unfortunately...

----------------------------------------------------------------------
tiwai - 09-24-2004 12:03 CEST
----------------------------------------------------------------------
What about th spdif output with the patch?
(make sure to use 1.0.7rc, not 1.0.6a)

----------------------------------------------------------------------
pharm - 09-24-2004 12:28 CEST
----------------------------------------------------------------------
Ah. Think I may have applied it to 1.0.6a. Will retest!

----------------------------------------------------------------------
pharm - 09-24-2004 13:34 CEST
----------------------------------------------------------------------
Ah ha. With patch applied to 1.0.7rc1 the rear SPDIF now lights up. Still no sound out of analogue or digital outputs as far as I can hear though.

cheers, Phil

----------------------------------------------------------------------
tiwai - 09-24-2004 14:33 CEST
----------------------------------------------------------------------
Can you try ac3dec in alsa-utils package for testing SPDIF output? Run with -C option so that it works in the ac3 passthru mode.

----------------------------------------------------------------------
tiwai - 09-24-2004 15:29 CEST
----------------------------------------------------------------------
Could you try the second patch? Revert the last patch before applying the new one.
Reboot your machine after installing the new driver to be sure.

Also, if this still doesn't work, try to remove lines in alsa-kernel/pci/ac97/ac97_patch.c:1910,

	/* FIXME: set up GPIO */
	snd_ac97_write_cache(ac97, 0x70, 0x0100);
	snd_ac97_write_cache(ac97, 0x72, 0x0020);

----------------------------------------------------------------------
pharm - 09-24-2004 15:57 CEST
----------------------------------------------------------------------

$ ./tools/extract_ac3 dolby-aurora.vob | ./ac3dec -C
Using PCM device 'plug:iec958:{AES0 0x2 AES1 0x82 AES2 0x0 AES3 0x2}'
ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem
(MIXER,'IEC958 Playback AC97-SPSA',0,0,0): No such file or directory
snd_pcm_open: No such file or directory
Output open failed
$ ./tools/extract_ac3 dolby-aurora.vob | ./ac3dec -C -D hw:0,0
Using PCM device 'hw:0,0'
AC3 Stream 48.0 KHz 448 kbps

but no sound from the latter with either hw:0,0 or hw:0,1

----------------------------------------------------------------------
tiwai - 09-24-2004 16:05 CEST
----------------------------------------------------------------------
Let's try take3 patch.

----------------------------------------------------------------------
pharm - 09-24-2004 16:31 CEST
----------------------------------------------------------------------
with or without the GPIO lines? (Currently compiling with)

----------------------------------------------------------------------
pharm - 09-24-2004 16:43 CEST
----------------------------------------------------------------------
OK. No joy :( -- precisely the same results as before. There's no IEC958 mixer entry, so -C fails, while using -C -D hw:0,1 or hw:0,0 gets no audible output.

Incidentally, with your patches, should I be expecting analogue audio to work? I can switch back to the 1.0.6a modules & analogue audio works, but I get no analogue audio out with any of the patches so far.

cheers, Phil

----------------------------------------------------------------------
tiwai - 09-24-2004 17:08 CEST
----------------------------------------------------------------------
Looks like this codec doesn't set extended ID register properly for SPDIF. Ok, I added a workaround. Try take4 patch.

Did you get analog outs on 1.0.7rc1 without patches? If so, keep using 1.0.7.

The GPIO section might affect the analog outputs, too. I have no clue what they do.

Anyway, please attach /proc/asound/card0/codec97#0/* files and /etc/asound.state after "alsactl store" for both with and without the patch (i.e. analog working and not working).

Bug History
Date Modified Username Field Change
======================================================================

09-22-04 22:48 pharm          New Bug                                      
09-22-04 22:48 pharm          Distribution              => Debian unstable 
09-22-04 22:48 pharm          Kernel Version            => 2.4.27-1-k7 with alsa 1.0.6a (1.0.7rc1 doesn't work either)
09-23-04 18:25 tiwai          Bugnote Added: 0001829                       
09-23-04 18:26 tiwai          File Added: cm9761-add.dif                    
09-23-04 22:09 pharm          Bugnote Added: 0001851                       
09-24-04 09:28 pharm          Bug Monitored: pharm                         
09-24-04 12:03 tiwai          Bugnote Added: 0001869                       
09-24-04 12:28 pharm          Bugnote Added: 0001877                       
09-24-04 13:34 pharm          Bugnote Added: 0001882                       
09-24-04 14:33 tiwai          Bugnote Added: 0001886                       
09-24-04 15:29 tiwai          Bugnote Added: 0001890                       
09-24-04 15:29 tiwai          File Added: cm9761-add-take2.dif                    
09-24-04 15:57 pharm          Bugnote Added: 0001892                       
09-24-04 16:05 tiwai          Bugnote Added: 0001893                       
09-24-04 16:05 tiwai          File Added: cm9761-add-take3.dif                    
09-24-04 16:31 pharm          Bugnote Added: 0001894                       
09-24-04 16:43 pharm          Bugnote Added: 0001895                       
09-24-04 17:08 tiwai          Bugnote Added: 0001896                       

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

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php