Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: John Stile <john@stilen.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd-hda-intel	support	for	SPDIF-in	wiht	vt1708	card?
Date: Wed, 09 Jan 2008 09:49:11 -0800	[thread overview]
Message-ID: <1199900951.9681.88.camel@genx.localdomain> (raw)
In-Reply-To: <s5hir233que.wl%tiwai@suse.de>

[-- Attachment #1: Type: text/plain, Size: 3278 bytes --]

On Wed, 2008-01-09 at 17:29 +0100, Takashi Iwai wrote:
> To be sure: you are using 32bit version, right?
> For 64bit, the library path might be /usr/lib64, instead of /usr/lib
> (depending on distro).

Yes. 32 bit.  
find / -name "*64*" 
  < nothing found >
My gentoo /etc/make.conf contains
  CHOST="i686-pc-linux-gnu"
  CFLAGS="-march=i686 -mmmx -msse -msse2 -O2 -pipe -fomit-frame-pointer"

> So far so good.
> 
> > 
> > IEC958 shows
> >  ┌──┐
> >  │MM│ 
> > L└──┘R
> > CAPTUR

Yay!

> Attach the generated file via "alsactl -f somefile store" instead of
> ascii art.  This contains the all mixer information.

Sorry. 
alsactl -f /etc/asound.state  store
asound.state file attached.

> It's a user error :)  The usage below, -D plug:spdif, is correct,
> though.

> > arecord -D plug:spdif        -d 10 -f dat -t wav |aplay
> > 
> > ALSA lib dlmisc.c:118:(snd_dlsym_verify) unable to verify version for symbol _snd_pcm_hook_ctl_elems_install
> 
> OK, this is a bug in the recent alsa-lib.
> I fixed it now on HG tree.  Please update your alsa-lib repo (maybe
> better from hg.alsa-project.org).

I re-pulled alsa-lib, and now:

arecord -D plug:spdif        -d 10 -f dat -t wav |aplay
And
arecord -D cards.pcm.iec958  -d 10 -f dat -t wav |aplay

In both cases, I hear nothing, and they end with the same output:

Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
arecord: pcm_read:1324: read error: Input/output error

I re-pulled alsa-lib, built successfully, and retry record, with same error:

rm -rf alsa-lib
hg clone  http://hg.alsa-project.org/alsa-lib alsa-lib
pushd alsa-lib
./hgcompile && make install
popd
arecord -D plug:spdif        -d 10 -f dat -t wav |aplay

At this point, should I pull from your daily builds?

I retried arecord with verbose mode on:

arecord -v -D plug:spdif        -d 10 -f dat -t wav |aplay

Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Plug PCM: Hooks PCM
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 85333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 4096
  start_threshold  : 1
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
Slave: Hardware PCM card 0 'HDA VIA VT82xx' device 1 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 85333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 4096
  start_threshold  : 1
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary     : 1073741824
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
arecord: pcm_read:1324: read error: Input/output error


[-- Attachment #2: asound.state --]
[-- Type: text/plain, Size: 5377 bytes --]

state.VT82xx {
	control.1 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -4025
		comment.dbmax 1400
		iface MIXER
		name 'Master Front Playback Volume'
		value.0 26
		value.1 26
	}
	control.2 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Master Front Playback Switch'
		value.0 true
		value.1 true
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 27'
		comment.dbmin -4725
		comment.dbmax 0
		iface MIXER
		name 'Front Playback Volume'
		value.0 23
		value.1 23
	}
	control.4 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Front Playback Switch'
		value.0 true
		value.1 true
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -4025
		comment.dbmax 1400
		iface MIXER
		name 'Mic Playback Volume'
		value.0 26
		value.1 26
	}
	control.6 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Mic Playback Switch'
		value.0 false
		value.1 false
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 31'
		comment.dbmin -4025
		comment.dbmax 1400
		iface MIXER
		name 'Line Playback Volume'
		value.0 26
		value.1 26
	}
	control.8 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Line Playback Switch'
		value.0 true
		value.1 true
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 20'
		comment.dbmin 0
		comment.dbmax 3500
		iface MIXER
		name 'Capture Volume'
		value.0 20
		value.1 20
	}
	control.10 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		value.0 true
		value.1 true
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 20'
		comment.dbmin 0
		comment.dbmax 3500
		iface MIXER
		name 'Capture Volume'
		index 1
		value.0 20
		value.1 20
	}
	control.12 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 2
		iface MIXER
		name 'Capture Switch'
		index 1
		value.0 true
		value.1 true
	}
	control.13 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.count 1
		comment.item.0 'Stereo Mixer'
		comment.item.1 Mic
		comment.item.2 Line
		iface MIXER
		name 'Input Source'
		value Line
	}
	control.14 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Con Mask'
		value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.15 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Pro Mask'
		value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.16 {
		comment.access 'read write'
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.17 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Playback Switch'
		value false
	}
	control.18 {
		comment.access 'read write'
		comment.type BOOLEAN
		comment.count 1
		iface MIXER
		name 'IEC958 Capture Switch'
		value true
	}
	control.19 {
		comment.access read
		comment.type IEC958
		comment.count 1
		iface MIXER
		name 'IEC958 Capture Default'
		value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.20 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 255'
		comment.tlv '0000000100000008ffffec1400000014'
		comment.dbmin -5100
		comment.dbmax 0
		iface MIXER
		name 'PCM Playback Volume'
		value.0 210
		value.1 210
	}
	control.21 {
		comment.access 'read write user'
		comment.type INTEGER
		comment.count 2
		comment.range '0 - 120'
		comment.tlv '0000000100000008fffff44800000032'
		comment.dbmin -3000
		comment.dbmax 3000
		iface MIXER
		name 'Digital Capture Volume'
		value.0 116
		value.1 116
	}
}

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  reply	other threads:[~2008-01-09 17:49 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-07 18:40 snd-hda-intel support for SPDIF-in wiht vt1708 card? Darryl House
2008-01-08  7:35 ` John Stile
2008-01-08  7:42   ` Takashi Iwai
2008-01-08  8:21     ` John Stile
2008-01-08 16:38       ` John Stile
2008-01-08 16:50         ` Takashi Iwai
2008-01-08 17:57           ` John Stile
2008-01-09  7:39             ` Takashi Iwai
     [not found]               ` <1199873213.9681.50.camel@genx.localdomain>
2008-01-09 16:29                 ` Takashi Iwai
2008-01-09 17:49                   ` John Stile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-02 22:31 Darryl House
2008-01-02 22:38 ` John Stile
2008-01-07 13:43 ` Takashi Iwai
2007-12-21 22:59 Darryl House
2007-12-21 19:09 Darryl House
2007-12-20 19:17 forumjunk
2007-12-20  0:37 forumjunk
2007-12-20 11:09 ` Takashi Iwai
2007-12-20 20:13   ` John Stile
     [not found]   ` <1198174409.8838.2.camel@genx.localdomain>
2007-12-21  9:08     ` Takashi Iwai
2007-12-21 17:57       ` John Stile
2007-12-21 20:03         ` John Stile
2007-12-22 18:35           ` John Stile
2007-12-24 19:22             ` John Stile
2008-01-02 20:41               ` John Stile
2007-12-17 18:27 John Stile
2007-12-18 13:04 ` Takashi Iwai
2007-12-18 16:28   ` John Stile
2007-12-18 15:05     ` Takashi Iwai
2007-12-19  4:49       ` John Stile
2007-12-19  9:30         ` Takashi Iwai
2007-12-19 16:21           ` John Stile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1199900951.9681.88.camel@genx.localdomain \
    --to=john@stilen.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox