LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 06-05-2011, 06:27 AM   #1
apinta10
Member
 
Registered: Nov 2004
Location: Croatia, Hrvatska
Distribution: Slackware 10.1 + Debian Sarge 3.1 (testing)
Posts: 35

Rep: Reputation: 15
Unhappy IEC958 in - to - Analog out (xbox360)


Hello,

I am trying to make Xbox360 gaming experience a little more better than 2.0 channel sound.
Generally what i am trying to do is:
-get the optical output from Xbox360
-to optical IN (iec958 in) on cm106 - card 1
-analog out 5.1 (sb 24bit external) - card 2

xbox360 is connected with the optical on the cm106 card. SB24bit is connected with 3.5mm jacks. 5.1 speakers.
OS used is ubuntu 10.10

I made this work on Windows with graphedit, now its a little tricky here.

Outputs from cli:
arecord -l
andrej@atlantis:~$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: External [SB Live! 24-bit External], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: default [USB Sound Device ], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
andrej@atlantis:~$ arecord -L
default
pulse
Playback/recording through the PulseAudio sound server
a52:CARD=Generic
HD-Audio Generic
front:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
Front speakers
surround40:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
Direct sample mixing device
dsnoop:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
Direct sample snooping device
hw:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
Direct hardware device without any conversions
plughw:CARD=External,DEV=0
SB Live! 24-bit External, USB Audio
Hardware device with all software conversions
a52:CARD=External
SB Live! 24-bit External
front:CARD=default,DEV=0
USB Sound Device , USB Audio
Front speakers
surround40:CARD=default,DEV=0
USB Sound Device , USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=default,DEV=0
USB Sound Device , USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=default,DEV=0
USB Sound Device , USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=default,DEV=0
USB Sound Device , USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=default,DEV=0
USB Sound Device , USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=default,DEV=0
USB Sound Device , USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=default,DEV=0
USB Sound Device , USB Audio
Direct sample mixing device
dsnoop:CARD=default,DEV=0
USB Sound Device , USB Audio
Direct sample snooping device
hw:CARD=default,DEV=0
USB Sound Device , USB Audio
Direct hardware device without any conversions
plughw:CARD=default,DEV=0
USB Sound Device , USB Audio
Hardware device with all software conversions
a52:CARD=default
USB Sound Device
andrej@atlantis:~$ uname -a
Linux atlantis 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux
andrej@atlantis:~$ lspci
00:00.0 RAM memory: nVidia Corporation MCP65 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation MCP65 LPC Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation MCP65 SMBus (rev a1)
00:01.2 RAM memory: nVidia Corporation MCP65 Memory Controller (rev a1)
00:02.0 USB Controller: nVidia Corporation MCP65 USB Controller (rev a3)
00:02.1 USB Controller: nVidia Corporation MCP65 USB Controller (rev a3)
00:06.0 Ethernet controller: nVidia Corporation MCP65 Ethernet (rev a3)
00:08.0 PCI bridge: nVidia Corporation MCP65 PCI bridge (rev a1)
00:09.0 IDE interface: nVidia Corporation MCP65 IDE (rev a1)
00:0a.0 SATA controller: nVidia Corporation MCP65 AHCI Controller (rev a3)
00:0d.0 PCI bridge: nVidia Corporation MCP65 PCI Express bridge (rev a1)
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:06.0 RAID bus controller: Silicon Image, Inc. SiI 0649 Ultra ATA/100 PCI to ATA Host Controller (rev 02)
01:07.0 Ethernet controller: Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01)
01:08.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
01:09.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
01:09.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 62)
01:09.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 65)
02:00.0 VGA compatible controller: ATI Technologies Inc Juniper [Radeon HD 5700 Series]
02:00.1 Audio device: ATI Technologies Inc Juniper HDMI Audio [Radeon HD 5700 Series]
Souncards are both USB
andrej@atlantis:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device - optical IN
Bus 003 Device 002: ID 041e:3040 Creative Technology, Ltd SoundBlaster Live! 24-bit External SB0490 - analog OUT
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04fc:0c15 Sunplus Technology Co., Ltd SPIF215A SATA bridge
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 016: ID 056a:00d1 Wacom Co., Ltd
Bus 001 Device 015: ID 04a9:10c4 Canon, Inc. Pixma iP4500 Printer
Bus 001 Device 013: ID 046d:c316 Logitech, Inc. HID-Compliant Keyboard
Bus 001 Device 012: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. transcend storejet 25P
Bus 001 Device 011: ID 0cf2:6230 ENE Technology, Inc.
Bus 001 Device 010: ID 046d:092f Logitech, Inc. QuickCam Express Plus
Bus 001 Device 009: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 008: ID 059b:0001 Iomega Corp. Zip 100 (Type 1)
Bus 001 Device 007: ID 046d:c051 Logitech, Inc. G3 (MX518) Optical Mouse
Bus 001 Device 004: ID 1a40:0101 TERMINUS TECHNOLOGY INC. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 002: ID 13fd:2040 Initio Corporation
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Alsamixer
Card: USB Sound Device F1: Help │
│ Chip: USB Mixer F2: System information │
│ View: F3: Playback F4:[Capture] F5: All F6: Select sound card │
│ Item: PCM [dB gain: -1.68, -1.68] Esc: Exit │
│ │
│ │
│ │
│ ┌──┐ ┌──┐ ┌──┐ │
│ │ │ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │
│ │ │ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ L└──┘R └──┘ └──┘ L R │
│ CAPTURE ------- ------- CAPTURE │
│ 53<>53 100<>100 100<>100 │
│ < PCM > Line Mic S/PDIF In │
│ │
│ │
│ │

S/PDIF In is shown and unmuted.

commands i have tryed:
arecord -D hw:2,0 -f dat | aplay -D hw:1,0
arecord -D hw:2,0 -f dat | ac3dec

Output:
andrej@atlantis:/proc/asound$ arecord -D hw:2,0 -f dat | aplay -D hw:1,0
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
^CAborted by signal Interrupt...
Aborted by signal Interrupt...
andrej@atlantis:/proc/asound$ arecord -D hw:2,0 -f dat | ac3dec
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
2.0 Mode 48.0 KHz 32 kbps Complete Main Audio Service
Using PCM device 'default' -no sound - seems to be doing something
^CAborted...
Aborted by signal Interrupt...

Seems like something is still missing.....
 
Old 06-06-2011, 07:59 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,057
Blog Entries: 1

Rep: Reputation: 1373Reputation: 1373Reputation: 1373Reputation: 1373Reputation: 1373Reputation: 1373Reputation: 1373Reputation: 1373Reputation: 1373Reputation: 1373
Hi,

Please use the vbcode tags # or Quote for long list/Data. This will make your post cleaner therefore easier to read.

I will let the thread stay here in <Linux-Hardware>. If you get no help here then move to Ubuntu forum.

Why use the capture mode, instead of play?
 
  


Reply

Tags
alsa, optical, ubuntu+10.10


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No sound in KDE with iec958 in 13.37 no.guru Slackware 5 06-20-2013 08:28 AM
Cannot control volume levels when sound via TOSLINK IEC958 on ALC883 wikapuki Linux - Newbie 0 07-04-2009 07:38 AM
SW12.1 IEC958 audio skip Yogstr Slackware 1 09-07-2008 07:59 AM
Surround sound problems through IEC958 (S/PDIF) optical out cdhgee Linux - Software 4 03-29-2008 04:32 PM
No sound output for my program (IEC958) eantoranz Linux - Hardware 1 10-19-2007 02:07 PM


All times are GMT -5. The time now is 10:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration