LinHES Forums
http://forum.linhes.org/

ALSA Sound (I think)
http://forum.linhes.org/viewtopic.php?f=17&t=17747
Page 1 of 1

Author:  thrillhouse [ Sun Jan 27, 2008 11:00 pm ]
Post subject:  ALSA Sound (I think)

I just hooked up my surround sound and would naturally like to use it with knopp. I followed http://www.knoppmythwiki.org/index.php? ... AudioHowTo and no luck. It seems that whenever I try to run any of the alsa-utils, the program just gives up and I can't kill it or anything. For example, if I run speaker-test, it just sits there after saying something about 16 octaves. aplay exits fine if I use -L to output, but not if I try and play something. If I change the audio settings in myth to
Code:
 Audio output device        = ALSA:cards.pcm.iec958
 Passthrough outputdevice   = Alsa:iec958:{AES0 0x02}
 Enable AC3 to SPDIF passthrough   check
 Enable DTS to SPDIF passthrough   check


I get the following in the frontend log when I try to play a recording:
Opening ALSA audio device 'iec958:{ AES0 0x02 }'.
TV Error:StartPlayer(): NVP is not playing after 20000 msec

and then I can't esc out of it or anything. Let me know what outputs of what programs and logs you need and I will get it. Thanks.

Author:  yaplej [ Tue Jan 29, 2008 8:57 pm ]
Post subject: 

What do you get when you run "aplay -l", and "lsmod | grep snd"?

Author:  thrillhouse [ Tue Jan 29, 2008 9:58 pm ]
Post subject: 

Code:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: CK804 [NVidia CK804], device 0: Intel ICH [NVidia CK804]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: CK804 [NVidia CK804], device 2: Intel ICH - IEC958 [NVidia CK804 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


But it doesn't exit, it just sits like this. (Can't kill it with control-C either)

Code:
$ lsmod | grep snd 
snd_intel8x0           32156  2
snd_ac97_codec         94116  1 snd_intel8x0
snd_ac97_bus            6144  1 snd_ac97_codec
snd_pcm_oss            42912  1
snd_mixer_oss          18176  2 snd_pcm_oss
snd_pcm                69380  4 cx88_alsa,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              22404  1 snd_pcm
snd                    47588  17 cx88_alsa,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              11360  3 snd
snd_page_alloc         11784  2 snd_intel8x0,snd_pcm

Author:  thrillhouse [ Tue Jan 29, 2008 10:17 pm ]
Post subject: 

Actually this might help too. The source of this script is here http://alsa.opensrc.org/index.php/Aadebug

Code:
$ ./soundtest.sh
ALSA Audio Debug v0.1.0 - Tue Jan 29 22:16:14 CST 2008
http://alsa.opensrc.org/aadebug
http://www.gnu.org/licenses/gpl.txt

Kernel ----------------------------------------------------
Linux holloway 2.6.18-chw-13 #1 SMP PREEMPT Tue Mar 6 19:57:00 PST 2007 i686 GNU/Linux

Loaded Modules --------------------------------------------
snd_intel8x0           32156  2
snd_ac97_codec         94116  1 snd_intel8x0
snd_ac97_bus            6144  1 snd_ac97_codec
snd_pcm_oss            42912  1
snd_mixer_oss          18176  2 snd_pcm_oss
snd_pcm                69380  4 cx88_alsa,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
snd_timer              22404  1 snd_pcm
snd                    47588  17 cx88_alsa,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
snd_page_alloc         11784  2 snd_intel8x0,snd_pcm

Modprobe Conf ---------------------------------------------
alias char-major-116    snd
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2
alias sound-slot-3 snd-card-3
alias sound-slot-4 snd-card-4
alias sound-slot-5 snd-card-5
alias sound-slot-6 snd-card-6
alias sound-slot-7 snd-card-7
above sound-slot-0 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-1 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-2 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-3 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-4 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-5 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-6 snd-pcm-oss snd-mixer-oss snd-seq-oss
above sound-slot-7 snd-pcm-oss snd-mixer-oss snd-seq-oss
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
above snd-pcm snd-pcm-oss
above snd-mixer snd-mixer-oss
above snd-seq snd-seq-oss snd-seq-midi
above snd-emu10k1 snd-emu10k1-synth
above snd-via82xx snd-seq
above snd-rawmidi snd-seq-midi
# Cause a script to be run after snd-*-synth module initialization
post-install snd-emu8000-synth /lib/alsa/modprobe-post-install snd-emu8000-synth
post-install snd-emu10k1-synth /lib/alsa/modprobe-post-install snd-emu10k1-synth
post-install snd-ad1816a /lib/alsa/modprobe-post-install snd-ad1816a
post-install snd-ad1848 /lib/alsa/modprobe-post-install snd-ad1848
post-install snd-adlib /lib/alsa/modprobe-post-install snd-adlib
post-install snd-ad1889 /lib/alsa/modprobe-post-install snd-ad1889
post-install snd-ali5451 /lib/alsa/modprobe-post-install snd-ali5451
post-install snd-als100 /lib/alsa/modprobe-post-install snd-als100
post-install snd-als300 /lib/alsa/modprobe-post-install snd-als300
post-install snd-als4000 /lib/alsa/modprobe-post-install snd-als4000
post-install snd-aoa /lib/alsa/modprobe-post-install snd-aoa
post-install snd-aoa-fabric-layout /lib/alsa/modprobe-post-install snd-aoa-fabric-layout
post-install snd-aoa-onyx /lib/alsa/modprobe-post-install snd-aoa-onyx
post-install snd-aoa-tas /lib/alsa/modprobe-post-install snd-aoa-tas
post-install snd-aoa-toonie /lib/alsa/modprobe-post-install snd-aoa-toonie
post-install snd-aoa-soundbus /lib/alsa/modprobe-post-install snd-aoa-soundbus
post-install snd-aoa-soundbus-i2s /lib/alsa/modprobe-post-install snd-aoa-soundbus-i2s
post-install snd-armaaci /lib/alsa/modprobe-post-install snd-armaaci
post-install snd-asihpi /lib/alsa/modprobe-post-install snd-asihpi
post-install snd-atiixp /lib/alsa/modprobe-post-install snd-atiixp
post-install snd-au1x00 /lib/alsa/modprobe-post-install snd-au1x00
post-install snd-au8810 /lib/alsa/modprobe-post-install snd-au8810
post-install snd-au8820 /lib/alsa/modprobe-post-install snd-au8820
post-install snd-au8830 /lib/alsa/modprobe-post-install snd-au8830
post-install snd-azt2320 /lib/alsa/modprobe-post-install snd-azt2320
post-install snd-azt3328 /lib/alsa/modprobe-post-install snd-azt3328
post-install snd-ca0106 /lib/alsa/modprobe-post-install snd-ca0106
post-install snd-cmi8330 /lib/alsa/modprobe-post-install snd-cmi8330
post-install snd-cmipci /lib/alsa/modprobe-post-install snd-cmipci
post-install snd-cs4231 /lib/alsa/modprobe-post-install snd-cs4231
post-install snd-cs4232 /lib/alsa/modprobe-post-install snd-cs4232
post-install snd-cs4236 /lib/alsa/modprobe-post-install snd-cs4236
post-install snd-cs4281 /lib/alsa/modprobe-post-install snd-cs4281
post-install snd-cs46xx /lib/alsa/modprobe-post-install snd-cs46xx
post-install snd-cs5535audio /lib/alsa/modprobe-post-install snd-cs5535audio
post-install snd-darla20 /lib/alsa/modprobe-post-install snd-darla20
post-install snd-darla24 /lib/alsa/modprobe-post-install snd-darla24
post-install snd-dt019x /lib/alsa/modprobe-post-install snd-dt019x
post-install snd-echo3g /lib/alsa/modprobe-post-install snd-echo3g
post-install snd-emu10k1x /lib/alsa/modprobe-post-install snd-emu10k1x
post-install snd-ens1370 /lib/alsa/modprobe-post-install snd-ens1370
post-install snd-ens1371 /lib/alsa/modprobe-post-install snd-ens1371
post-install snd-es1688 /lib/alsa/modprobe-post-install snd-es1688
post-install snd-es18xx /lib/alsa/modprobe-post-install snd-es18xx
post-install snd-es1938 /lib/alsa/modprobe-post-install snd-es1938
post-install snd-es1968 /lib/alsa/modprobe-post-install snd-es1968
post-install snd-es968 /lib/alsa/modprobe-post-install snd-es968
post-install snd-fm801 /lib/alsa/modprobe-post-install snd-fm801
post-install snd-fm801-tea575x /lib/alsa/modprobe-post-install snd-fm801-tea575x
post-install snd-gina20 /lib/alsa/modprobe-post-install snd-gina20
post-install snd-gina24 /lib/alsa/modprobe-post-install snd-gina24
post-install snd-gusclassic /lib/alsa/modprobe-post-install snd-gusclassic
post-install snd-gusextreme /lib/alsa/modprobe-post-install snd-gusextreme
post-install snd-gusmax /lib/alsa/modprobe-post-install snd-gusmax
post-install snd-harmony /lib/alsa/modprobe-post-install snd-harmony
post-install snd-hda-intel /lib/alsa/modprobe-post-install snd-hda-intel
post-install snd-hdsp /lib/alsa/modprobe-post-install snd-hdsp
post-install snd-hdspm /lib/alsa/modprobe-post-install snd-hdspm
post-install snd-ice1712 /lib/alsa/modprobe-post-install snd-ice1712
post-install snd-ice1724 /lib/alsa/modprobe-post-install snd-ice1724
post-install snd-indigo /lib/alsa/modprobe-post-install snd-indigo
post-install snd-indigodj /lib/alsa/modprobe-post-install snd-indigodj
post-install snd-indigoio /lib/alsa/modprobe-post-install snd-indigoio
post-install snd-intel8x0 /lib/alsa/modprobe-post-install snd-intel8x0
post-install snd-interwave /lib/alsa/modprobe-post-install snd-interwave
post-install snd-interwave-stb /lib/alsa/modprobe-post-install snd-interwave-stb
post-install snd-korg1212 /lib/alsa/modprobe-post-install snd-korg1212
post-install snd-layla20 /lib/alsa/modprobe-post-install snd-layla20
post-install snd-layla24 /lib/alsa/modprobe-post-install snd-layla24
post-install snd-maestro3 /lib/alsa/modprobe-post-install snd-maestro3
post-install snd-mia /lib/alsa/modprobe-post-install snd-mia
post-install snd-miro /lib/alsa/modprobe-post-install snd-miro
post-install snd-mixart /lib/alsa/modprobe-post-install snd-mixart
post-install snd-mona /lib/alsa/modprobe-post-install snd-mona
post-install snd-mpu401 /lib/alsa/modprobe-post-install snd-mpu401
post-install snd-msnd-pinnacle /lib/alsa/modprobe-post-install snd-msnd-pinnacle
post-install snd-mtpav /lib/alsa/modprobe-post-install snd-mtpav
post-install snd-mts64 /lib/alsa/modprobe-post-install snd-mts64
post-install snd-nm256 /lib/alsa/modprobe-post-install snd-nm256
post-install snd-opl3sa2 /lib/alsa/modprobe-post-install snd-opl3sa2
post-install snd-opti92x-ad1848 /lib/alsa/modprobe-post-install snd-opti92x-ad1848
post-install snd-opti92x-cs4231 /lib/alsa/modprobe-post-install snd-opti92x-cs4231
post-install snd-opti93x /lib/alsa/modprobe-post-install snd-opti93x
post-install snd-pc98-cs4232 /lib/alsa/modprobe-post-install snd-pc98-cs4232
post-install snd-pcsp /lib/alsa/modprobe-post-install snd-pcsp
post-install snd-pcxhr /lib/alsa/modprobe-post-install snd-pcxhr
post-install snd-pdaudiocf /lib/alsa/modprobe-post-install snd-pdaudiocf
post-install snd-pdplus /lib/alsa/modprobe-post-install snd-pdplus
post-install snd-portman2x4 /lib/alsa/modprobe-post-install snd-portman2x4
post-install snd-powermac /lib/alsa/modprobe-post-install snd-powermac
post-install snd-pxa2xx-ac97 /lib/alsa/modprobe-post-install snd-pxa2xx-ac97
post-install snd-pxa2xx-i2sound /lib/alsa/modprobe-post-install snd-pxa2xx-i2sound
post-install snd-riptide /lib/alsa/modprobe-post-install snd-riptide
post-install snd-rme32 /lib/alsa/modprobe-post-install snd-rme32
post-install snd-rme96 /lib/alsa/modprobe-post-install snd-rme96
post-install snd-rme9652 /lib/alsa/modprobe-post-install snd-rme9652
post-install snd-s3c2410 /lib/alsa/modprobe-post-install snd-s3c2410
post-install snd-sa11xx-uda1341 /lib/alsa/modprobe-post-install snd-sa11xx-uda1341
post-install snd-sb16 /lib/alsa/modprobe-post-install snd-sb16
post-install snd-sb8 /lib/alsa/modprobe-post-install snd-sb8
post-install snd-sbawe /lib/alsa/modprobe-post-install snd-sbawe
post-install snd-serial-u16550 /lib/alsa/modprobe-post-install snd-serial-u16550
post-install snd-sgalaxy /lib/alsa/modprobe-post-install snd-sgalaxy
post-install snd-sonicvibes /lib/alsa/modprobe-post-install snd-sonicvibes
post-install snd-sscape /lib/alsa/modprobe-post-install snd-sscape
post-install snd-sun-amd7930 /lib/alsa/modprobe-post-install snd-sun-amd7930
post-install snd-sun-cs4231 /lib/alsa/modprobe-post-install snd-sun-cs4231
post-install snd-sun-dbri /lib/alsa/modprobe-post-install snd-sun-dbri
post-install snd-trident /lib/alsa/modprobe-post-install snd-trident
post-install snd-usb-audio /lib/alsa/modprobe-post-install snd-usb-audio
post-install snd-usb-usx2y /lib/alsa/modprobe-post-install snd-usb-usx2y
post-install snd-vx222 /lib/alsa/modprobe-post-install snd-vx222
post-install snd-vxpocket /lib/alsa/modprobe-post-install snd-vxpocket
post-install snd-wavefront /lib/alsa/modprobe-post-install snd-wavefront
post-install snd-ymfpci /lib/alsa/modprobe-post-install snd-ymfpci
options snd-bt87x index=-2
options snd-cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# alias snd-atiixp-modem off
# alias snd-intel8x0m off
# alias snd-via82xx-modem off
### update-modules: start processing /etc/modutils/linux-sound-base_noOSS
alias sound off
alias dmasound_core off
alias dmasound_pmac off
alias soundcard off
### update-modules: end processing /etc/modutils/linux-sound-base_noOSS

Proc Asound -----------------------------------------------
Advanced Linux Sound Architecture Driver Version 1.0.13.
Compiled on Dec 31 2006 for kernel 2.6.18-chw-13 (SMP).
 0 [CK804          ]: NFORCE - NVidia CK804
                      NVidia CK804 with ALC850 at 0xf0004000, irq 17
 1 [CX8801         ]: CX88x - Conexant CX8801
                      Conexant CX8801 at 0xec000000
  0: [ 0]   : control
 16: [ 0- 0]: digital audio playback
 18: [ 0- 2]: digital audio playback
 24: [ 0- 0]: digital audio capture
 25: [ 0- 1]: digital audio capture
 32: [ 1]   : control
 33:        : timer
 56: [ 1- 0]: digital audio capture
cat: /proc/asound/hwdep: No such file or directory
00-02: Intel ICH - IEC958 : NVidia CK804 - IEC958 : playback 1
00-01: Intel ICH - MIC ADC : NVidia CK804 - MIC ADC : capture 1
00-00: Intel ICH : NVidia CK804 : playback 1 : capture 1
01-00: CX88 Digital : CX88 Digital : capture 1
cat: /proc/asound/seq/clients: No such file or directory

Dev Snd ---------------------------------------------------
controlC0  controlC1  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D2p  pcmC1D0c  timer

CPU -------------------------------------------------------
model name      : AMD Athlon(tm) 64 Processor 3800+
cpu MHz         : 2412.406

RAM -------------------------------------------------------
MemTotal:      1033072 kB
SwapTotal:     1020116 kB

Hardware --------------------------------------------------
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:08.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
01:08.1 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05)
01:08.2 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05)
01:08.4 Multimedia controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder [IR Port] (rev 05)
02:08.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
02:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

Author:  thrillhouse [ Mon Feb 04, 2008 1:33 pm ]
Post subject: 

Installed the next version of Knoppmyth. Apparently I did an upgrade just before the most recent version came out and I thought I had the newest one. The ALSA stuff no longer hangs, but still no SPDIF sound. I changed part of the /etc/asound.conf to

Code:
pcm.!default {
  type plug
  slave.pcm "dmix-digital"
}
pcm.dmix-digital {
  type dmix
  ipc_key 1235
  slave {
    pcm "digital-hw"
    period_time 0
    period_size 1024
    buffer_size 4096
    rate 48000
  }
}

pcm.digital-hw {
  type hw
  card 0
   device 2
}

Author:  thrillhouse [ Mon Feb 04, 2008 11:46 pm ]
Post subject: 

After some digging I have found a couple sites that say that SPDIF with my motherboard (Gigabyte GA-K8NF-9) is broken. Anyone have any experience with this?

Author:  Bob [ Tue Feb 05, 2008 11:29 am ]
Post subject: 

I don t have the same board but i succeed with the information in this threads. My new Sourrounfd system is working fine now (Realtek ALC880). It s tricky but it s working great. Thanks to Yaplej.

Link : http://knoppmyth.net/phpBB2/viewtopic.php?t=17359&highlight=spdif+realtek+analog+digital

Good chance
Bob

Author:  thrillhouse [ Mon Feb 11, 2008 7:06 pm ]
Post subject: 

Ok, well I decided to scrap the whole thing. My roommate had a old Sound Blaster Live! card (model #CT4830) so we threw that in, turned off the output on my motherboard, and it now it works fine. So I guess I'll just buy it from him when I move out (or get my own, as they are 10 bucks on ebay right now). Problem solved.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/