Re: Need optic out for VIA VT1708 on pico-itx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've found a script for helping to debug.
REF: http://alsa.opensrc.org/index.php/Aadebug

Am I having a syntax problem with aplay? 

--------------------
Output from script
---------------------
ALSA Audio Debug v0.1.0 - Thu Dec 13 20:57:47 PST 2007
http://alsa.opensrc.org/aadebug
http://www.gnu.org/licenses/gpl.txt

Kernel ----------------------------------------------------
Linux pico 2.6.23-gentoo-r3 #12 SMP Wed Dec 12 00:59:23 PST 2007 i686
VIA Esther processor 1000MHz CentaurHauls GNU/Linux

Loaded Modules --------------------------------------------
snd_pcm_oss            33696  0
snd_mixer_oss          15872  2 snd_pcm_oss
snd_seq_oss            25984  0
snd_seq_midi_event      7680  1 snd_seq_oss
snd_seq                35536  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          8588  2 snd_seq_oss,snd_seq
snd_hda_intel         216732  1
snd_pcm                47492  2 snd_pcm_oss,snd_hda_intel
snd_timer              18308  2 snd_seq,snd_pcm
snd                    33508  8
snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer
snd_page_alloc         10504  2 snd_hda_intel,snd_pcm

Proc Config -----------------------------------------------
CONFIG_SOUND=y
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
CONFIG_SND_MPU401_UART=m
CONFIG_SND_VX_LIB=m
CONFIG_SND_AC97_CODEC=m
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
CONFIG_SND_MTS64=m
# CONFIG_SND_SERIAL_U16550 is not set
CONFIG_SND_MPU401=m
# CONFIG_SND_PORTMAN2X4 is not set
# CONFIG_SND_ADLIB is not set
# CONFIG_SND_AD1816A is not set
# CONFIG_SND_AD1848 is not set
# CONFIG_SND_ALS100 is not set
# CONFIG_SND_AZT2320 is not set
# CONFIG_SND_CMI8330 is not set
# CONFIG_SND_CS4231 is not set
# CONFIG_SND_CS4232 is not set
# CONFIG_SND_CS4236 is not set
# CONFIG_SND_DT019X is not set
# CONFIG_SND_ES968 is not set
# CONFIG_SND_ES1688 is not set
# CONFIG_SND_ES18XX is not set
# CONFIG_SND_GUSCLASSIC is not set
# CONFIG_SND_GUSEXTREME is not set
# CONFIG_SND_GUSMAX is not set
# CONFIG_SND_INTERWAVE is not set
# CONFIG_SND_INTERWAVE_STB is not set
# CONFIG_SND_OPL3SA2 is not set
# CONFIG_SND_OPTI92X_AD1848 is not set
# CONFIG_SND_OPTI92X_CS4231 is not set
# CONFIG_SND_OPTI93X is not set
# CONFIG_SND_MIRO is not set
# CONFIG_SND_SB8 is not set
# CONFIG_SND_SB16 is not set
# CONFIG_SND_SBAWE is not set
# CONFIG_SND_SGALAXY is not set
# CONFIG_SND_SSCAPE is not set
# CONFIG_SND_WAVEFRONT is not set
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS5530 is not set
# CONFIG_SND_CS5535AUDIO is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_INTEL8X0M is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
CONFIG_SND_VIA82XX=m
CONFIG_SND_VIA82XX_MODEM=m
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_AC97_POWER_SAVE is not set
CONFIG_SND_USB_AUDIO=m
CONFIG_SND_USB_USX2Y=m
# CONFIG_SND_USB_CAIAQ is not set
CONFIG_SND_VXPOCKET=m
CONFIG_SND_PDAUDIOCF=m
# CONFIG_SND_SOC is not set
# CONFIG_SOUND_PRIME is not set

Modprobe Conf ---------------------------------------------
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel

Proc Asound -----------------------------------------------
Advanced Linux Sound Architecture Driver Version 1.0.14 (Fri Jul 20
09:12:58 2007 UTC).
 0 [VT82xx         ]: HDA-Intel - HDA VIA VT82xx
                      HDA VIA VT82xx at 0x9fffc000 irq 20
  0: [ 0]   : control
  1:        : sequencer
 16: [ 0- 0]: digital audio playback
 17: [ 0- 1]: digital audio playback
 24: [ 0- 0]: digital audio capture
 25: [ 0- 1]: digital audio capture
 33:        : timer
cat: /proc/asound/hwdep: No such file or directory
00-01: VT1708 Digital : VT1708 Digital : playback 1 : capture 1
00-00: VT1708 Analog : VT1708 Analog : playback 1 : capture 2
Client info
  cur  clients : 2
  peak clients : 2
  max  clients : 192

Client   0 : "System" [Kernel]
  Port   0 : "Timer" (Rwe-)
  Port   1 : "Announce" (R-e-)
    Connecting To: 15:0
Client  15 : "OSS sequencer" [Kernel]
  Port   0 : "Receiver" (-we-)
    Connected From: 0:1

Dev Snd ---------------------------------------------------
controlC0  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D1p  seq  timer

CPU -------------------------------------------------------
model name      : VIA Esther processor 1000MHz
cpu MHz         : 999.890

RAM -------------------------------------------------------
MemTotal:       968276 kB
SwapTotal:      498004 kB

Hardware --------------------------------------------------
00:00.0 Host bridge: VIA Technologies, Inc. CX700 Host Bridge (rev 10)
00:00.1 Host bridge: VIA Technologies, Inc. CX700 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. CX700 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. CX700 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. CX700 Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. CX700 Host Bridge
00:11.7 Host bridge: VIA Technologies, Inc. CX700 Internal Module Bus
00:13.0 Host bridge: VIA Technologies, Inc. CX700 Host Bridge


On Thu, 2007-12-13 at 20:16 -0800, John Stile wrote:
> I got a little farther.
> Found http://alsa.opensrc.org/DigitalOut
> I think I need to send output to hw=0,1 but it still doesn't work.
> What am I doing wrong?
> 
> Steps completed:
> #
> # List ALSA playback devices
> #
> aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: VT82xx [HDA VIA VT82xx], device 0: VT1708 Analog [VT1708 Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: VT82xx [HDA VIA VT82xx], device 1: VT1708 Digital [VT1708
> Digital]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> #
> # Device Aliases
> # List Available playback devices.
> #
> pico ~ # aplay -L f
> default:CARD=VT82xx
>     HDA VIA VT82xx, VT1708 Analog
>     Default Audio Device
> front:CARD=VT82xx,DEV=0
>     HDA VIA VT82xx, VT1708 Analog
>     Front speakers
> surround40:CARD=VT82xx,DEV=0
>     HDA VIA VT82xx, VT1708 Analog
>     4.0 Surround output to Front and Rear speakers
> surround41:CARD=VT82xx,DEV=0
>     HDA VIA VT82xx, VT1708 Analog
>     4.1 Surround output to Front, Rear and Subwoofer speakers
> surround50:CARD=VT82xx,DEV=0
>     HDA VIA VT82xx, VT1708 Analog
>     5.0 Surround output to Front, Center and Rear speakers
> surround51:CARD=VT82xx,DEV=0
>     HDA VIA VT82xx, VT1708 Analog
>     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
> surround71:CARD=VT82xx,DEV=0
>     HDA VIA VT82xx, VT1708 Analog
>     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
> iec958:CARD=VT82xx,DEV=0
>     HDA VIA VT82xx, VT1708 Digital
>     IEC958 (S/PDIF) Digital Audio Output
> null
>     Discard all samples (playback) or generate zero samples (capture)
> 
> #
> # Find device another way
> #
> pico ~ # cat /proc/asound/devices
>   0: [ 0]   : control
>   1:        : sequencer
>  16: [ 0- 0]: digital audio playback
>  17: [ 0- 1]: digital audio playback
>  24: [ 0- 0]: digital audio capture
>  25: [ 0- 1]: digital audio capture
>  33:        : timer
> 
> #
> # TEST digital out with aplay requries a wav file
> # But test still fails
> #
> pico ~ # aplay -d
> hw:0,1 /music/global_psychedelic_trance_vol_4_ambient_side/amphibia__grey_area.wav
> mplayer /music/Paul_jaz/Track03.wav -ao alsa:device=hw=0,1
> 
> On Thu, 2007-12-13 at 11:50 -0800, John Stile wrote:
> > I need help to play optical-audio out from a pico-itx px10000g in a
> > Serener GS-L08 case (which has an optical-audio connector).
> > 
> > I connected a Klipsch 5:1 system to the pico case via a standard
> > optic-audio cable. 
> > 
> > Then I tried aplay and play to send sound out the optic port, but have
> > had no success.
> > 
> > This is my first optic audio system, so maybe I'm missing something
> > simple.
> > 
> > I turned the volume on the Klipsch system up to +25, and in alsamixer
> > all levels where maxed.
> > 
> > In alsamixer, I notice there is no volume level change allowed for
> > IEC958, but there is a volume level bar for the other items (Master F,
> > PCM, Front, Line, Mic).
> > 
> > Example of what IEC958 looks like in alsamixer.
> >   ----
> >   |00|
> >   ----
> >   IEC958
> > 
> > I can play sound through head phones attached to the front rca plug.
> > 
> > Details below:
> > #-------------------------
> > I use the in-kernel snd_hda_intel driver in a 2.6.23-gentoo-r3 kernel,
> > with the following options.
> > 
> > Device Drivers  --->
> >  Sound  --->
> >   <*> Sound card support
> >   Advanced Linux Sound Architecture  --->
> >     <M> Advanced Linux Sound Architecture
> >     <M>   Sequencer support
> >     < >     Sequencer dummy client
> >     <M>   OSS Mixer API
> >     <M>   OSS PCM (digital audio) API
> >     [*]     OSS PCM (digital audio) API - Include plugin system
> >     [*]   OSS Sequencer API
> >     <M>   RTC Timer support
> >     [*]     Use RTC as default sequencer timer
> >     [ ]   Dynamic device file minor numbers
> >     [*]   Support old ALSA API
> >     [ ]   Verbose procfs contents
> >     [ ]   Verbose printk
> >     [ ]   Debug
> >   	  Generic devices  --->
> >           PCI devices  --->
> > 	   <M> Intel HD Audio
> >            <M> VIA 82C686A/B, 8233/8235 AC97 Controller
> >            <M> VIA 82C686A/B, 8233 based Modems       
> > #-------------------------
> > I tried versions 1.0.14 and 1.0.15 of the following gentoo alsa packages
> > 
> >  media-libs/alsa-lib
> >  media-libs/alsa-oss
> >  media-plugins/alsa-plugins
> >  media-sound/alsa-firmware
> >  media-sound/alsa-headers
> >  media-sound/alsa-tools
> >  media-sound/alsa-utils
> >  media-sound/alsamixergui
> > #-------------------------
> > lsmod |grep hda
> > 
> >   snd_hda_intel         216732  0
> >   snd_pcm                47492  2 snd_pcm_oss,snd_hda_intel
> >   snd                    33508  8
> > snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_pcm,snd_timer
> >   snd_page_alloc         10504  2 snd_hda_intel,snd_pcm
> > #-------------------------
> > lspci -v
> > 
> > 80:01.0 Audio device: VIA Technologies, Inc. VIA High Definition Audio
> > Controller (rev 10)
> >         Subsystem: VIA Technologies, Inc. VIA High Definition Audio
> > Controller
> >         Flags: bus master, fast devsel, latency 0, IRQ 20
> >         Memory at 9fffc000 (64-bit, non-prefetchable) [size=16K]
> >         Capabilities: [50] Power Management version 2
> >         Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+
> > Queue=0/0 Enable-
> >         Capabilities: [70] Express Root Complex Integrated Endpoint, MSI
> > 00
> >         Capabilities: [100] Virtual Channel <?>
> > #-------------------------
> > Alsa mixer shows no volume adjustments for IEC958.
> > 
> >  Card: HDA VIA VT82xx													      ?
> >  Chip: VIA VIA VT1708													      ?
> >  View: [Playback] Capture  All												      ?
> >  Item: IEC958 
> > 
> >   ----
> >   |00|
> >   ----
> >   IEC958
> > #-------------------------
> > 
> > 
> > -------------------------------------------------------------------------
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services
> > for just about anything Open Source.
> > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> > _______________________________________________
> > Alsa-user mailing list
> > Alsa-user@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/alsa-user
> 
> 
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/alsa-user


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux