All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: S/PDIF support for Intel HDA Realtek ALC880?
       [not found] <D0623A7E119D564AA1966968BC37AE29C324FA@srvsegbg19.space.se>
@ 2006-11-14 23:12 ` Jonathan Woithe
  2006-11-15  5:58   ` Peter Carlsson
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Woithe @ 2006-11-14 23:12 UTC (permalink / raw)
  Cc: Peter Carlsson, Takashi Iwai, Kailang Yang, Jonathan Woithe,
	PeiSen Hou, alsa-devel

Hi Peter

> I am running Debian (testing) on a Gigabyte GA-K8N51PVMT-9
> motherboard with integrated Intel HDA Realtek ALC880 sound.

I don't have ALC880 hardware - all my work has been done with the ALC260.
My ability to answer your question is therefore somewhat diminished.

> On the motherboard is also a connector for S/PDIF where I
> have attached a back plate. I am using ALSA 1.0.13.
> Could you please tell me if S/PDIF is supported for this
> configuration and if so, how can I enable it?

I really don't know.  I know there's been a lot of work done on the ALC880
support code in recent months but whether that includes SPDIF functionality
isn't something I can answer with any certainty.  I'll try to give some
broad comments though.

> htpc:~# aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: NVidia [HDA NVidia], device 0: ALC880 Analog [ALC880 Analog]
>    Subdevices: 1/1
>    Subdevice #0: subdevice #0

This suggests there is only one playback device, and that would be the
analog interface.  Therefore by default at least it doesn't appear the
SPDIF interface is made available.

Are you using any options when loading the ALSA modules or do you just
go with the defaults?

I'll forward your email onto the ALSA developers mailing list for wider
viewing.  That way you may get some thoughts from the developers actually
working on ALC880 code.

Regards
  jonathan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* S/PDIF support for Intel HDA Realtek ALC880?
@ 2006-11-15  0:07 Jonathan Woithe
  0 siblings, 0 replies; 9+ messages in thread
From: Jonathan Woithe @ 2006-11-15  0:07 UTC (permalink / raw)
  To: alsa-devel

I am forwarding the following message I received privately to the list
for others to comment on.  I am not an ALC880 expert and so my ability to
assist is greatly diminished.

Regards
  jonathan

Forwarded message:

> Subject: S/PDIF support for Intel HDA Realtek ALC880?
> From: "Peter Carlsson" <peter.carlsson@space.se>
> 
> Hello!
> 
> I am running Debian (testing) on a Gigabyte GA-K8N51PVMT-9
> motherboard with integrated Intel HDA Realtek ALC880 sound.
> On the motherboard is also a connector for S/PDIF where I
> have attached a back plate. I am using ALSA 1.0.13.
> 
> Could you please tell me if S/PDIF is supported for this
> configuration and if so, how can I enable it?
> 
> Below you will find some output if that might help.
> 
> Best regards,
> Peter Carlsson
> 
> htpc:~# aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: NVidia [HDA NVidia], device 0: ALC880 Analog [ALC880 Analog]
>    Subdevices: 1/1
>    Subdevice #0: subdevice #0
> htpc:~#
> 
> htpc:~# aplay -L
> PCM list:
> hw {
>          @args.0 CARD
>          @args.1 DEV
>          @args.2 SUBDEV
>          @args.CARD {
>                  type string
>                  default {
>                          @func getenv
>                          vars {
>                                  0 ALSA_PCM_CARD
>                                  1 ALSA_CARD
>                          }
>                          default {
>                                  @func refer
>                                  name 'defaults.pcm.card'
>                          }
>                  }
>          }
>          @args.DEV {
>                  type integer
>                  default {
>                          @func igetenv
>                          vars {
>                                  0 ALSA_PCM_DEVICE
>                          }
>                          default {
>                                  @func refer
>                                  name 'defaults.pcm.device'
>                          }
>                  }
>          }
>          @args.SUBDEV {
>                  type integer
>                  default {
>                          @func refer
>                          name 'defaults.pcm.subdevice'
>                  }
>          }
>          type hw
>          card $CARD
>          device $DEV
>          subdevice $SUBDEV
> }
> plughw {
>          @args.0 CARD
>          @args.1 DEV
>          @args.2 SUBDEV
>          @args.CARD {
>                  type string
>                  default {
>                          @func getenv
>                          vars {
>                                  0 ALSA_PCM_CARD
>                                  1 ALSA_CARD
>                          }
>                          default {
>                                  @func refer
>                                  name 'defaults.pcm.card'
>                          }
>                  }
>          }
>          @args.DEV {
>                  type integer
>                  default {
>                          @func igetenv
>                          vars {
>                                  0 ALSA_PCM_DEVICE
>                          }
>                          default {
>                                  @func refer
>                                  name 'defaults.pcm.device'
>                          }
>                  }
>          }
>          @args.SUBDEV {
>                  type integer
>                  default {
>                          @func refer
>                          name 'defaults.pcm.subdevice'
>                  }
>          }
>          type plug
>          slave.pcm {
>                  type hw
>                  card $CARD
>                  device $DEV
>                  subdevice $SUBDEV
>          }
> }
> plug {
>          @args.0 SLAVE
>          @args.SLAVE {
>                  type string
>          }
>          type plug
>          slave.pcm $SLAVE
> }
> shm {
>          @args.0 SOCKET
>          @args.1 PCM
>          @args.SOCKET {
>                  type string
>          }
>          @args.PCM {
>                  type string
>          }
>          type shm
>          server $SOCKET
>          pcm $PCM
> }
> tee {
>          @args.0 SLAVE
>          @args.1 FILE
>          @args.2 FORMAT
>          @args.SLAVE {
>                  type string
>          }
>          @args.FILE {
>                  type string
>          }
>          @args.FORMAT {
>                  type string
>                  default raw
>          }
>          type file
>          slave.pcm $SLAVE
>          file $FILE
>          format $FORMAT
> }
> file {
>          @args.0 FILE
>          @args.1 FORMAT
>          @args.FILE {
>                  type string
>          }
>          @args.FORMAT {
>                  type string
>                  default raw
>          }
>          type file
>          slave.pcm null
>          file $FILE
>          format $FORMAT
> }
> null {
>          type null
> }
> cards 'cards.pcm'
> front 'cards.pcm.front'
> rear 'cards.pcm.rear'
> center_lfe 'cards.pcm.center_lfe'
> side 'cards.pcm.side'
> surround40 'cards.pcm.surround40'
> surround41 'cards.pcm.surround41'
> surround50 'cards.pcm.surround50'
> surround51 'cards.pcm.surround51'
> surround71 'cards.pcm.surround71'
> iec958 'cards.pcm.iec958'
> spdif 'cards.pcm.iec958'
> modem 'cards.pcm.modem'
> phoneline 'cards.pcm.phoneline'
> default 'cards.pcm.default'
> dmix 'cards.pcm.dmix'
> dsnoop 'cards.pcm.dsnoop'
> htpc:~#
> 
> htpc:~# cat /proc/asound/NVidia/codec#0
> Codec: Realtek ALC880
> Address: 0
> Vendor Id: 0x10ec0880
> Subsystem Id: 0x1458f603
> Revision Id: 0x100800
> Default PCM: rates 0x560, bits 0x0e, types 0x1
> Default Amp-In caps: N/A
> Default Amp-Out caps: N/A
> Node 0x02 [Audio Output] wcaps 0x411: Stereo
>    PCM: rates 0x560, bits 0x0e, types 0x1
>    Power: 0x0
> Node 0x03 [Audio Output] wcaps 0x411: Stereo
>    PCM: rates 0x560, bits 0x0e, types 0x1
>    Power: 0x0
> Node 0x04 [Audio Output] wcaps 0x411: Stereo
>    PCM: rates 0x160, bits 0x0e, types 0x1
>    Power: 0x0
> Node 0x05 [Audio Output] wcaps 0x411: Stereo
>    PCM: rates 0x160, bits 0x0e, types 0x1
>    Power: 0x0
> Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
>    PCM: rates 0x160, bits 0x1e, types 0x1
> Node 0x07 [Audio Input] wcaps 0x10051b: Stereo Amp-In
>    Amp-In caps: ofs=0x00, nsteps=0x23, stepsize=0x03, mute=1
>    Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00
> 0x00=
> ] [0x00 =
> 
> 0x00] [0x00 0x00]
>    PCM: rates 0x160, bits 0x06, types 0x1
>    Power: 0x0
>    Connection: 7
>       0x18 0x19 0x1a 0x1b 0x1c* 0x14 0x15
> Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
>    Amp-In caps: ofs=0x00, nsteps=0x23, stepsize=0x03, mute=1
>    Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00
> 0x00=
> ] [0x00 =
> 
> 0x00] [0x00 0x00]
>    PCM: rates 0x160, bits 0x06, types 0x1
>    Power: 0x0
>    Connection: 7
>       0x18 0x19 0x1a* 0x1b 0x1c 0x14 0x15
> Node 0x09 [Audio Input] wcaps 0x10051b: Stereo Amp-In
>    Amp-In caps: ofs=0x00, nsteps=0x23, stepsize=0x03, mute=1
>    Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00
> 0x00=
> ] [0x00 =
> 
> 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
>    PCM: rates 0x160, bits 0x06, types 0x1
>    Power: 0x0
>    Connection: 10
>       0x18* 0x19 0x1a 0x1b 0x1c 0x0b 0x14 0x15 0x16 0x17
> Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
>    PCM: rates 0x160, bits 0x1e, types 0x1
>    Connection: 1
>       0x1f
> Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
>    Amp-In caps: ofs=0x23, nsteps=0x41, stepsize=0x03, mute=1
>    Amp-In vals:  [0x80 0x80] [0x31 0x31] [0x80 0x80] [0x00 0x00] [0x31
> 0x31=
> ] [0x31 =
> 
> 0x31] [0xa3 0xa3] [0xa3 0xa3]
>    Connection: 8
>       0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15
> Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>    Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-In vals:  [0x00 0x00] [0x00 0x00]
>    Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
>    Amp-Out vals:  [0x3d 0x3d]
>    Connection: 2
>       0x02 0x0b
> Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>    Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-In vals:  [0x80 0x80] [0x80 0x80]
>    Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
>    Amp-Out vals:  [0x30 0x30]
>    Connection: 2
>       0x03 0x0b
> Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>    Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-In vals:  [0x00 0x00] [0x00 0x00]
>    Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
>    Amp-Out vals:  [0x30 0x2e]
>    Connection: 2
>       0x04 0x0b
> Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
>    Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-In vals:  [0x80 0x80] [0x80 0x80]
>    Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
>    Amp-Out vals:  [0x00 0x00]
>    Connection: 2
>       0x05 0x0b
> Node 0x10 [Audio Selector] wcaps 0x300101: Stereo
>    Connection: 4
>       0x0c* 0x0d 0x0e 0x0f
> Node 0x11 [Audio Selector] wcaps 0x300101: Stereo
>    Connection: 4
>       0x0c* 0x0d 0x0e 0x0f
> Node 0x12 [Audio Selector] wcaps 0x300101: Stereo
>    Connection: 4
>       0x0c* 0x0d 0x0e 0x0f
> Node 0x13 [Audio Selector] wcaps 0x300101: Stereo
>    Connection: 4
>       0x0c* 0x0d 0x0e 0x0f
> Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x00 0x00]
>    Pincap 0x083f: IN OUT HP
>    Pin Default 0x01014410: [Jack] Line Out at Ext Rear
>      Conn = 1/8, Color = Green
>    Pin-ctls: 0x40: OUT
>    Connection: 1
>       0x0c
> Node 0x15 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x00 0x00]
>    Pincap 0x083f: IN OUT HP
>    Pin Default 0x01016412: [Jack] Line Out at Ext Rear
>      Conn = 1/8, Color = Orange
>    Pin-ctls: 0x40: OUT
>    Connection: 1
>       0x0d
> Node 0x16 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x00 0x00]
>    Pincap 0x083f: IN OUT HP
>    Pin Default 0x01011011: [Jack] Line Out at Ext Rear
>      Conn = 1/8, Color = Black
>    Pin-ctls: 0x40: OUT
>    Connection: 1
>       0x0e
> Node 0x17 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x00 0x00]
>    Pincap 0x083f: IN OUT HP
>    Pin Default 0x01012014: [Jack] Line Out at Ext Rear
>      Conn = 1/8, Color = Grey
>    Pin-ctls: 0x40: OUT
>    Connection: 1
>       0x0f
> Node 0x18 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x80 0x80]
>    Pincap 0x08133f: IN OUT HP
>    Pin Default 0x01a19c40: [Jack] Mic at Ext Rear
>      Conn = 1/8, Color = Pink
>    Pin-ctls: 0x24: IN
>    Connection: 1
>       0x10
> Node 0x19 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x80 0x80]
>    Pincap 0x08133f: IN OUT HP
>    Pin Default 0x02a19c50: [Jack] Mic at Ext Front
>      Conn = 1/8, Color = Pink
>    Pin-ctls: 0x24: IN
>    Connection: 1
>       0x11
> Node 0x1a [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x80 0x80]
>    Pincap 0x08133f: IN OUT HP
>    Pin Default 0x01813441: [Jack] Line In at Ext Rear
>      Conn = 1/8, Color = Blue
>    Pin-ctls: 0x20: IN
>    Connection: 1
>       0x12
> Node 0x1b [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x00 0x00]
>    Pincap 0x08133f: IN OUT HP
>    Pin Default 0x02214c20: [Jack] HP Out at Ext Front
>      Conn = 1/8, Color = Green
>    Pin-ctls: 0xc0: OUT HP
>    Connection: 1
>       0x13
> Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
>    Pincap 0x0820: IN
>    Pin Default 0x99331142: [Fixed] CD at Int ATAPI
>      Conn = ATAPI, Color = Black
>    Pin-ctls: 0x00:
> Node 0x1d [Pin Complex] wcaps 0x400000: Mono
>    Pincap 0x0820: IN
>    Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
>      Conn = 1/8, Color = Black
>    Pin-ctls: 0x00:
> Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
>    Pincap 0x0810: OUT
>    Pin Default 0x99431130: [Fixed] SPDIF Out at Int ATAPI
>      Conn = ATAPI, Color = Black
>    Pin-ctls: 0x00:
>    Connection: 1
>       0x06
> Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
>    Pincap 0x0820: IN
>    Pin Default 0x99c31160: [Fixed] SPDIF In at Int ATAPI
>      Conn = ATAPI, Color = Black
>    Pin-ctls: 0x00:
> Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
> Node 0x21 [Volume Knob Widget] wcaps 0x600080: Mono
> htpc:~#

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: S/PDIF support for Intel HDA Realtek ALC880?
  2006-11-14 23:12 ` Jonathan Woithe
@ 2006-11-15  5:58   ` Peter Carlsson
  2006-11-15  7:06     ` Tobin Davis
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Carlsson @ 2006-11-15  5:58 UTC (permalink / raw)
  To: Jonathan Woithe; +Cc: Takashi Iwai, PeiSen Hou, Kailang Yang, alsa-devel

>Hi Peter

Hello Jonathan!

Thanks for the quick response.

>> I am running Debian (testing) on a Gigabyte GA-K8N51PVMT-9
>> motherboard with integrated Intel HDA Realtek ALC880 sound.
>
>I don't have ALC880 hardware - all my work has been done with 
>the ALC260.
>My ability to answer your question is therefore somewhat diminished.
>
>> htpc:~# aplay -l
>> **** List of PLAYBACK Hardware Devices ****
>> card 0: NVidia [HDA NVidia], device 0: ALC880 Analog [ALC880 Analog]
>>    Subdevices: 1/1
>>    Subdevice #0: subdevice #0
>
>This suggests there is only one playback device, and that would be the
>analog interface.  Therefore by default at least it doesn't appear the
>SPDIF interface is made available.
>
>Are you using any options when loading the ALSA modules or do you just
>go with the defaults?

No options and I am using a regular kernel. Any suggestions
what options I might add?

mythtv@htpc:~$ uname -a
Linux htpc 2.6.16-2-k7 #1 Fri Aug 18 19:48:42 UTC 2006 i686 GNU/Linux

mythtv@htpc:~$ dpkg --list alsa-*
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name               Version            Description
+++-==================-==================-==============================
======================
ii  alsa-base          1.0.13-1           ALSA driver configuration
files
ii  alsa-oss           1.0.12-1           ALSA wrapper for OSS
applications
ii  alsa-utils         1.0.13-1           ALSA utilities

>I'll forward your email onto the ALSA developers mailing list for wider
>viewing.  That way you may get some thoughts from the 
>developers actually working on ALC880 code.

Best regards,
Peter Carlsson

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: S/PDIF support for Intel HDA Realtek ALC880?
  2006-11-15  5:58   ` Peter Carlsson
@ 2006-11-15  7:06     ` Tobin Davis
  2006-11-15  7:45       ` Peter Carlsson
  0 siblings, 1 reply; 9+ messages in thread
From: Tobin Davis @ 2006-11-15  7:06 UTC (permalink / raw)
  To: Peter Carlsson; +Cc: alsa-devel

It's possible that your board has been incorrectly configured as a 6
stack w/o spdif.  Here's a simple experiment:  Try loading the sound
drivers with "model=6stack-digout".  If that fixes the SPDIF output,
then great.

Also, to verify that your board is supported, could you submit the pci
subsystem ID?  Use lspci to determine what device the soundcard is, then
lspci -s <pci-id> -vn (where <pci-id> would be the pci device id, i.e.
0:1b).

Tobin

On Wed, 2006-11-15 at 06:58 +0100, Peter Carlsson wrote:
> >Hi Peter
> 
> Hello Jonathan!
> 
> Thanks for the quick response.
> 
> >> I am running Debian (testing) on a Gigabyte GA-K8N51PVMT-9
> >> motherboard with integrated Intel HDA Realtek ALC880 sound.
> >
> >I don't have ALC880 hardware - all my work has been done with 
> >the ALC260.
> >My ability to answer your question is therefore somewhat diminished.
> >
> >> htpc:~# aplay -l
> >> **** List of PLAYBACK Hardware Devices ****
> >> card 0: NVidia [HDA NVidia], device 0: ALC880 Analog [ALC880 Analog]
> >>    Subdevices: 1/1
> >>    Subdevice #0: subdevice #0
> >
> >This suggests there is only one playback device, and that would be the
> >analog interface.  Therefore by default at least it doesn't appear the
> >SPDIF interface is made available.
> >
> >Are you using any options when loading the ALSA modules or do you just
> >go with the defaults?
> 
> No options and I am using a regular kernel. Any suggestions
> what options I might add?
> 
> mythtv@htpc:~$ uname -a
> Linux htpc 2.6.16-2-k7 #1 Fri Aug 18 19:48:42 UTC 2006 i686 GNU/Linux
> 
> mythtv@htpc:~$ dpkg --list alsa-*
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> uppercase=bad)
> ||/ Name               Version            Description
> +++-==================-==================-==============================
> ======================
> ii  alsa-base          1.0.13-1           ALSA driver configuration
> files
> ii  alsa-oss           1.0.12-1           ALSA wrapper for OSS
> applications
> ii  alsa-utils         1.0.13-1           ALSA utilities
> 
> >I'll forward your email onto the ALSA developers mailing list for wider
> >viewing.  That way you may get some thoughts from the 
> >developers actually working on ALC880 code.
> 
> Best regards,
> Peter Carlsson
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-devel
-- 
Tobin Davis <tdavis@dsl-only.net>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: S/PDIF support for Intel HDA Realtek ALC880?
  2006-11-15  7:06     ` Tobin Davis
@ 2006-11-15  7:45       ` Peter Carlsson
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Carlsson @ 2006-11-15  7:45 UTC (permalink / raw)
  To: Tobin Davis; +Cc: Peter Carlsson, alsa-devel

Hello Tobin!

Could you please tell me where to put the "model=6stack-digout" option?
On a Debian system I believe it is the /etc/init.d/alsasound script that
takes care of starting/stopping the sound drivers.

htpc:/home/mythtv# head -n 4 /etc/init.d/alsasound 
#!/bin/bash
#
# alsasound     This shell script takes care of starting and stopping
#               the ALSA sound driver.

htpc:/home/mythtv# lspci 
...
00:10.0 PCI bridge: nVidia Corporation MCP51 PCI Bridge (rev a2)
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio
(rev a2)
...

htpc:/home/mythtv# lspci -s 00:10 -vn
00:10.0 0604: 10de:026f (rev a2) (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 0000a000-0000afff
	Memory behind bridge: e9000000-e90fffff
	Prefetchable memory behind bridge: e0000000-e3ffffff
	Capabilities: [b8] Subsystem: 0000:0000
	Capabilities: [8c] HyperTransport: MSI Mapping

00:10.1 0403: 10de:026c (rev a2)
	Subsystem: 1458:a102
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 193
	Memory at e9100000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+
Queue=0/0 Enable-
	Capabilities: [6c] HyperTransport: MSI Mapping

htpc:/home/mythtv# 

Thanks for the help!

Best regards,
Peter Carlsson

>-----Original Message-----
>From: Tobin Davis [mailto:tdavis@dsl-only.net] 
>Sent: Wednesday, November 15, 2006 8:06 AM
>To: Peter Carlsson
>Cc: alsa-devel@lists.sourceforge.net
>Subject: Re: [Alsa-devel] S/PDIF support for Intel HDA Realtek ALC880?
>
>It's possible that your board has been incorrectly configured as a 6
>stack w/o spdif.  Here's a simple experiment:  Try loading the sound
>drivers with "model=6stack-digout".  If that fixes the SPDIF output,
>then great.
>
>Also, to verify that your board is supported, could you submit the pci
>subsystem ID?  Use lspci to determine what device the 
>soundcard is, then
>lspci -s <pci-id> -vn (where <pci-id> would be the pci device id, i.e.
>0:1b).
>
>Tobin
>
>On Wed, 2006-11-15 at 06:58 +0100, Peter Carlsson wrote:
>> >Hi Peter
>> 
>> Hello Jonathan!
>> 
>> Thanks for the quick response.
>> 
>> >> I am running Debian (testing) on a Gigabyte GA-K8N51PVMT-9
>> >> motherboard with integrated Intel HDA Realtek ALC880 sound.
>> >
>> >I don't have ALC880 hardware - all my work has been done with 
>> >the ALC260.
>> >My ability to answer your question is therefore somewhat diminished.
>> >
>> >> htpc:~# aplay -l
>> >> **** List of PLAYBACK Hardware Devices ****
>> >> card 0: NVidia [HDA NVidia], device 0: ALC880 Analog 
>[ALC880 Analog]
>> >>    Subdevices: 1/1
>> >>    Subdevice #0: subdevice #0
>> >
>> >This suggests there is only one playback device, and that 
>would be the
>> >analog interface.  Therefore by default at least it doesn't 
>appear the
>> >SPDIF interface is made available.
>> >
>> >Are you using any options when loading the ALSA modules or 
>do you just
>> >go with the defaults?
>> 
>> No options and I am using a regular kernel. Any suggestions
>> what options I might add?
>> 
>> mythtv@htpc:~$ uname -a
>> Linux htpc 2.6.16-2-k7 #1 Fri Aug 18 19:48:42 UTC 2006 i686 GNU/Linux
>> 
>> mythtv@htpc:~$ dpkg --list alsa-*
>> Desired=Unknown/Install/Remove/Purge/Hold
>> |
>> 
>Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
>> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
>> uppercase=bad)
>> ||/ Name               Version            Description
>> 
>+++-==================-==================-=====================
>=========
>> ======================
>> ii  alsa-base          1.0.13-1           ALSA driver configuration
>> files
>> ii  alsa-oss           1.0.12-1           ALSA wrapper for OSS
>> applications
>> ii  alsa-utils         1.0.13-1           ALSA utilities
>> 
>> >I'll forward your email onto the ALSA developers mailing 
>list for wider
>> >viewing.  That way you may get some thoughts from the 
>> >developers actually working on ALC880 code.
>> 
>> Best regards,
>> Peter Carlsson
>> 
>> 
>---------------------------------------------------------------
>----------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the 
>chance to share your
>> opinions on IT & business topics through brief surveys - and 
>earn cash
>> 
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&
>CID=DEVDEV
>> _______________________________________________
>> Alsa-devel mailing list
>> Alsa-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/alsa-devel
>-- 
>Tobin Davis <tdavis@dsl-only.net>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: S/PDIF support for Intel HDA Realtek ALC880?
       [not found] <004301c7088e$f52a5940$4c5215ac@realtek.com.tw>
@ 2006-11-15  9:31 ` Peter Carlsson
  2006-11-15  9:38   ` Kailang
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Carlsson @ 2006-11-15  9:31 UTC (permalink / raw)
  To: Kailang, PeiSen Hou, Takashi Iwai, Jonathan Woithe
  Cc: Peter Carlsson, alsa-devel

Hello!

On my Debian system there is no file named modprobe.conf. Instead
there is a directory named /etc/modprobe.conf with the following
files:

htpc:/etc/modprobe.d# ls -go
total 30
-rw-r--r-- 1  4360 2006-02-05 14:00 aliases
-rw-r--r-- 1 16153 2006-09-11 10:44 alsa-base
-rw-r--r-- 1   156 2005-12-16 10:05 alsa-base-blacklist
drwxr-xr-x 2  1024 2006-06-14 16:51 arch
lrwxrwxrwx 1     9 2006-06-14 16:51 arch-aliases -> arch/i386
-rw-r--r-- 1  1406 2006-02-20 16:15 blacklist
-rw-r--r-- 1   284 2006-02-20 16:15 display_class
lrwxrwxrwx 1    41 2006-10-15 20:07 linux-sound-base_noOSS ->
/lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r-- 1    29 2005-10-29 04:48 nvidia-kernel-nkc
-rw-r--r-- 1   363 2006-02-20 16:15 pnp-hotplug
-rw-r--r-- 1    61 2006-04-22 14:54 sound

The sound file contains what you told me to look for.

htpc:/etc/modprobe.d# cat sound 
alias snd-card-0 snd-hda-intel
options snd-hda-intel index=0

After modifying this file as suggested I get:

htpc:/home/mythtv# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC880 Analog [ALC880 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC880 Digital [ALC880 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

alsamixer now contains IEC958 which I toggled from <Off> to <On>.

htpc:/home/mythtv# lspci -s 00:10 -vn
00:10.0 0604: 10de:026f (rev a2) (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
	I/O behind bridge: 0000a000-0000afff
	Memory behind bridge: e9000000-e90fffff
	Prefetchable memory behind bridge: e0000000-e3ffffff
	Capabilities: [b8] Subsystem: 0000:0000
	Capabilities: [8c] HyperTransport: MSI Mapping

00:10.1 0403: 10de:026c (rev a2)
	Subsystem: 1458:a102
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 193
	Memory at e9100000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+
Queue=0/0 Enable-
	Capabilities: [6c] HyperTransport: MSI Mapping

What entries do I have to put in the ~/.asoundrc file?

I am not able to test if all this works until I get home. But it
surely looks very promising indeed.

Thanks for all the wonderful help!

Best regards,
Peter Carlsson

>-----Original Message-----
>From: Kailang [mailto:kailang@realtek.com.tw] 
>Sent: Wednesday, November 15, 2006 9:21 AM
>To: Peter Carlsson; PeiSen Hou; Takashi Iwai; Jonathan Woithe
>Cc: Peter Carlsson
>Subject: Re: S/PDIF support for Intel HDA Realtek ALC880?
>
>Please find the modprobe.conf file first.
>Then to edit the file as below.
>
>find this line.
>options snd-hda-intel index=0
>
>To add the model at this line.
>options snd-hda-intel index=0 model=6stack-digout
>
>try it.
>
>kailang
>
>----- Original Message ----- 
>From: "Peter Carlsson" <peter.carlsson@space.se>
>To: "Kailang" <kailang@realtek.com.tw>; "PeiSen Hou" 
><pshou@realtek.com.tw>;
>"Takashi Iwai" <tiwai@suse.de>; "Jonathan Woithe"
><jwoithe@physics.adelaide.edu.au>
>Cc: "Peter Carlsson" <peter.carlsson@space.se>
>Sent: Wednesday, November 15, 2006 2:08 PM
>Subject: RE: S/PDIF support for Intel HDA Realtek ALC880?
>
>
>>Could you check the [alsamixer] mixer AP which have the item of
>>iec958(SPDIF)?
>
>mythtv@htpc:~$ alsamixer
>
>This results in the following controls:
>
>PCM, Front, Front Mic, Surround, Center, LFE, Side, Line, CD,
>Mic, PC Speaker, Channel Mode, Input Source, Input Source 1
>and Input Source 2
>
>No indication of iec958 (S/PDIF)
>
>>Hello!
>>
>>I am running Debian (testing) on a Gigabyte GA-K8N51PVMT-9
>>motherboard with integrated Intel HDA Realtek ALC880 sound.
>>On the motherboard is also a connector for S/PDIF where I
>>have attached a back plate. I am using ALSA 1.0.13.
>>
>>Could you please tell me if S/PDIF is supported for this
>>configuration and if so, how can I enable it?
>
>Best regards,
>Peter Carlsson
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: S/PDIF support for Intel HDA Realtek ALC880?
  2006-11-15  9:31 ` S/PDIF support for Intel HDA Realtek ALC880? Peter Carlsson
@ 2006-11-15  9:38   ` Kailang
  2006-11-15 17:20     ` Lee Revell
  2006-11-16  5:52     ` Peter Carlsson
  0 siblings, 2 replies; 9+ messages in thread
From: Kailang @ 2006-11-15  9:38 UTC (permalink / raw)
  To: PeiSen Hou, Takashi Iwai, Jonathan Woithe; +Cc: Peter Carlsson, alsa-devel

Yes, you got it. This looks like SUSE Linux.
To add it to the file of sound was right.

Kailang.....^^

----- Original Message ----- 
From: "Peter Carlsson" <peter.carlsson@space.se>
To: "Kailang" <kailang@realtek.com.tw>; "PeiSen Hou" <pshou@realtek.com.tw>;
"Takashi Iwai" <tiwai@suse.de>; "Jonathan Woithe"
<jwoithe@physics.adelaide.edu.au>
Cc: <alsa-devel@lists.sourceforge.net>; "Peter Carlsson"
<peter.carlsson@space.se>
Sent: Wednesday, November 15, 2006 5:31 PM
Subject: RE: S/PDIF support for Intel HDA Realtek ALC880?


Hello!

On my Debian system there is no file named modprobe.conf. Instead
there is a directory named /etc/modprobe.conf with the following
files:

htpc:/etc/modprobe.d# ls -go
total 30
-rw-r--r-- 1  4360 2006-02-05 14:00 aliases
-rw-r--r-- 1 16153 2006-09-11 10:44 alsa-base
-rw-r--r-- 1   156 2005-12-16 10:05 alsa-base-blacklist
drwxr-xr-x 2  1024 2006-06-14 16:51 arch
lrwxrwxrwx 1     9 2006-06-14 16:51 arch-aliases -> arch/i386
-rw-r--r-- 1  1406 2006-02-20 16:15 blacklist
-rw-r--r-- 1   284 2006-02-20 16:15 display_class
lrwxrwxrwx 1    41 2006-10-15 20:07 linux-sound-base_noOSS ->
/lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r-- 1    29 2005-10-29 04:48 nvidia-kernel-nkc
-rw-r--r-- 1   363 2006-02-20 16:15 pnp-hotplug
-rw-r--r-- 1    61 2006-04-22 14:54 sound

The sound file contains what you told me to look for.

htpc:/etc/modprobe.d# cat sound
alias snd-card-0 snd-hda-intel
options snd-hda-intel index=0

After modifying this file as suggested I get:

htpc:/home/mythtv# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC880 Analog [ALC880 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC880 Digital [ALC880 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

alsamixer now contains IEC958 which I toggled from <Off> to <On>.

htpc:/home/mythtv# lspci -s 00:10 -vn
00:10.0 0604: 10de:026f (rev a2) (prog-if 01 [Subtractive decode])
Flags: bus master, 66MHz, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=32
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: e9000000-e90fffff
Prefetchable memory behind bridge: e0000000-e3ffffff
Capabilities: [b8] Subsystem: 0000:0000
Capabilities: [8c] HyperTransport: MSI Mapping

00:10.1 0403: 10de:026c (rev a2)
Subsystem: 1458:a102
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 193
Memory at e9100000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2
Capabilities: [50] Message Signalled Interrupts: Mask+ 64bit+
Queue=0/0 Enable-
Capabilities: [6c] HyperTransport: MSI Mapping

What entries do I have to put in the ~/.asoundrc file?

I am not able to test if all this works until I get home. But it
surely looks very promising indeed.

Thanks for all the wonderful help!

Best regards,
Peter Carlsson

>-----Original Message-----
>From: Kailang [mailto:kailang@realtek.com.tw]
>Sent: Wednesday, November 15, 2006 9:21 AM
>To: Peter Carlsson; PeiSen Hou; Takashi Iwai; Jonathan Woithe
>Cc: Peter Carlsson
>Subject: Re: S/PDIF support for Intel HDA Realtek ALC880?
>
>Please find the modprobe.conf file first.
>Then to edit the file as below.
>
>find this line.
>options snd-hda-intel index=0
>
>To add the model at this line.
>options snd-hda-intel index=0 model=6stack-digout
>
>try it.
>
>kailang
>
>----- Original Message ----- 
>From: "Peter Carlsson" <peter.carlsson@space.se>
>To: "Kailang" <kailang@realtek.com.tw>; "PeiSen Hou"
><pshou@realtek.com.tw>;
>"Takashi Iwai" <tiwai@suse.de>; "Jonathan Woithe"
><jwoithe@physics.adelaide.edu.au>
>Cc: "Peter Carlsson" <peter.carlsson@space.se>
>Sent: Wednesday, November 15, 2006 2:08 PM
>Subject: RE: S/PDIF support for Intel HDA Realtek ALC880?
>
>
>>Could you check the [alsamixer] mixer AP which have the item of
>>iec958(SPDIF)?
>
>mythtv@htpc:~$ alsamixer
>
>This results in the following controls:
>
>PCM, Front, Front Mic, Surround, Center, LFE, Side, Line, CD,
>Mic, PC Speaker, Channel Mode, Input Source, Input Source 1
>and Input Source 2
>
>No indication of iec958 (S/PDIF)
>
>>Hello!
>>
>>I am running Debian (testing) on a Gigabyte GA-K8N51PVMT-9
>>motherboard with integrated Intel HDA Realtek ALC880 sound.
>>On the motherboard is also a connector for S/PDIF where I
>>have attached a back plate. I am using ALSA 1.0.13.
>>
>>Could you please tell me if S/PDIF is supported for this
>>configuration and if so, how can I enable it?
>
>Best regards,
>Peter Carlsson
>
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: S/PDIF support for Intel HDA Realtek ALC880?
  2006-11-15  9:38   ` Kailang
@ 2006-11-15 17:20     ` Lee Revell
  2006-11-16  5:52     ` Peter Carlsson
  1 sibling, 0 replies; 9+ messages in thread
From: Lee Revell @ 2006-11-15 17:20 UTC (permalink / raw)
  To: Kailang
  Cc: Takashi Iwai, PeiSen Hou, Peter Carlsson, alsa-devel,
	Jonathan Woithe

On Wed, 2006-11-15 at 17:38 +0800, Kailang wrote:
> What entries do I have to put in the ~/.asoundrc file?

None.  .asoundrc is NOT required to make sound work.

Lee


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: S/PDIF support for Intel HDA Realtek ALC880?
  2006-11-15  9:38   ` Kailang
  2006-11-15 17:20     ` Lee Revell
@ 2006-11-16  5:52     ` Peter Carlsson
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Carlsson @ 2006-11-16  5:52 UTC (permalink / raw)
  To: Kailang, PeiSen Hou, Takashi Iwai, Jonathan Woithe
  Cc: Peter Carlsson, alsa-devel

Hello again!

Just wanted to say that everything works perfectly now,
although I haven't tested with AC3/DTS yet.

Thanks again to all who helped me with this!

Best regards,
Peter Carlsson 

>-----Original Message-----
>From: Kailang [mailto:kailang@realtek.com.tw] 
>Sent: Wednesday, November 15, 2006 10:38 AM
>To: Peter Carlsson; PeiSen Hou; Takashi Iwai; Jonathan Woithe
>Cc: alsa-devel@lists.sourceforge.net; Peter Carlsson
>Subject: Re: S/PDIF support for Intel HDA Realtek ALC880?
>
>Yes, you got it. This looks like SUSE Linux.
>To add it to the file of sound was right.
>
>Kailang.....^^

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-11-16  5:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <004301c7088e$f52a5940$4c5215ac@realtek.com.tw>
2006-11-15  9:31 ` S/PDIF support for Intel HDA Realtek ALC880? Peter Carlsson
2006-11-15  9:38   ` Kailang
2006-11-15 17:20     ` Lee Revell
2006-11-16  5:52     ` Peter Carlsson
2006-11-15  0:07 Jonathan Woithe
     [not found] <D0623A7E119D564AA1966968BC37AE29C324FA@srvsegbg19.space.se>
2006-11-14 23:12 ` Jonathan Woithe
2006-11-15  5:58   ` Peter Carlsson
2006-11-15  7:06     ` Tobin Davis
2006-11-15  7:45       ` Peter Carlsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.