Skip to contentSkip to conversation

: it is impossible to select spdif as capture source

ALSA - driver 0000453 [email protected] 1 participant 1 message Sep 23, 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=0000453
======================================================================
Reported By: Andrew
Assigned To:
======================================================================

Project:                    ALSA - driver
Bug ID:                     453
Category:                   PCI - ice1724
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Distribution:               
Kernel Version:             
======================================================================
Date Submitted:             08-18-2004 13:16 CEST
Last Modified:              09-23-2004 18:48 CEST

======================================================================
Summary: it is impossible to select spdif as capture source
Description:
There are no anything spdif-input-related among
capture source enumeration.
======================================================================

----------------------------------------------------------------------
tiwai - 08-25-2004 19:55 CEST
----------------------------------------------------------------------
Did you use 'iec958' pcm?

% arecord -Diec958 -fdat foo.wav

----------------------------------------------------------------------
Andrew - 08-25-2004 23:47 CEST
----------------------------------------------------------------------
A dat fromat doesn't work: "Sample format non available" I have tried

arecord -Diec958 -fs32_LE -r48000 -c2 -d600 foo.wav

Format/rate are accepted, but the resulted file is empty. I use aureon 7.1.

While filing the isuue, I have thought about capture selecting via mixer Capture Source control. Does this (others?) control influence to shown above command working?

----------------------------------------------------------------------
tiwai - 08-27-2004 19:39 CEST
----------------------------------------------------------------------
You can use'plug:iec958' for 16bit conversion.

"Capture Source" shouldn't affect the digital input.
It might be a wrong CS8415 initialization sequence in the driver...

----------------------------------------------------------------------
Andrew - 09-07-2004 10:33 CEST
----------------------------------------------------------------------
I have tried with plug:iec958 with the same silent file. Is there any way to be sure spdif input is receiving some signal?

----------------------------------------------------------------------
tiwai - 09-08-2004 17:16 CEST
----------------------------------------------------------------------
Could you elaborate more?
Is the DMA working? Or did you get the short-cut output? Is it all zero or any signals in the output?

Also, as I wrote, the CS8415 init sequence might be wrong. Compare the CS8415 init data in aureon.c with the datasheet whether it's correct for your setting.

----------------------------------------------------------------------
Andrew - 09-08-2004 17:55 CEST
----------------------------------------------------------------------
Takashi,

You think I'm more clever than I am :-)

OK, the aim is simple: to be able to record from FM tuner. Last one is an "onboard" tuner of AV receiver. Last one is the only source I can try as source
with spdif output. All this is the reason of my last question about a way to be
sure spdif input is receiving some signal: my sound card is the only device I
can use to receive something via spdif.

All my attempts of capturing from spdif input lead to silent wav file.

I will be happy to answer to your question about DMA and init data, but I don't understand these things. I see, the issue is not of high priority,
so I'm ready to wait for the moment you will find a minute to clarify starting point(s) for my next attempts to bugnote in more informative manner :-)

----------------------------------------------------------------------
tiwai - 09-23-2004 18:48 CEST
----------------------------------------------------------------------
My question is what do you mean 'silent' and 'empty' in your texts.

Are the all data in the recorded file value zero, or the no (or shorter) data is recorded? Or, the data values are not zero but significantly small values?

All these three have different meanings. The first case is usually that the signal is not routed or processed in codec but the DMA is running to get data. The second case implies that the DMA is not running or stopped due to lack of data. The last one implies that the signal is physically processed (and DMA running) but something (e.g. digital attenuation) in codec is not set properly. In the case of SPDIF, the last one shouldn't happen, though.

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

08-18-04 13:16 Andrew         New Bug                                      
08-25-04 19:55 tiwai          Bugnote Added: 0001625                       
08-25-04 23:47 Andrew         Bugnote Added: 0001628                       
08-27-04 19:39 tiwai          Bugnote Added: 0001648                       
09-07-04 10:33 Andrew         Bugnote Added: 0001706                       
09-08-04 17:16 tiwai          Bugnote Added: 0001734                       
09-08-04 17:55 Andrew         Bugnote Added: 0001737                       
09-23-04 18:48 tiwai          Bugnote Added: 0001832                       

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

-------------------------------------------------------
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