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

At Wed, 09 Jan 2008 02:06:53 -0800,
John Stile wrote:
> 
> On Wed, 2008-01-09 at 08:39 +0100, Takashi Iwai wrote:
> > Thanks.
> You are welcome.  Thank you for your patience.
> 
> > You can put alsa-driver and alsa-kernel in the same directory level.
> > Make in alsa-driver will create a symlink automatically from
> > ../alsa-kernel.
> My procedure is changed:
> cd /usr/src/
> rm -rf alsa-lib
> rm -rf alsa-utils
> rm -rf alsa-driver
> rm -rf alsa-driver
> hg clone http://hg-mirror.alsa-project.org/alsa-lib alsa-lib
> hg clone http://hg-mirror.alsa-project.org/alsa-utils alsa-utils
> hg clone http://hg-mirror.alsa-project.org/alsa-kernel alsa-kernel
> hg clone http://hg-mirror.alsa-project.org/alsa-driver alsa-driver
> pushd alsa-lib
> ./hgcompile && make install

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).

> popd
> pushd alsa-utils
> ./hgcompile && make install 
> popd
> cd alsa-driver
> ./hgcompile && make install
> popd
> # Build completed successfully. Yay.
> /usr/sbin/alsaconf
> # Chose 'hda-intel VIA Technologies, Inc. VIA High Definition Audio Controller"
> /usr/bin/alsamixer -Vall

So far so good.

> 
> IEC958 shows
>  ┌──┐
>  │MM│ 
> L└──┘R
> CAPTUR
> 
> There are 2 'CAPTURE' columns where I maxed levels.
> 'Input So' is set to 'Stereo M'

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


> Play tests all work
> songs="/usr/share/sounds/alsa/Front_Right.wav
>  /usr/share/sounds/alsa/Rear_Right.wav
>  /usr/share/sounds/alsa/Rear_Left.wav
>  /usr/share/sounds/alsa/Rear_Center.wav
>  /usr/share/sounds/alsa/Front_Left.wav
>  /usr/share/sounds/alsa/Noise.wav
>  /usr/share/sounds/alsa/Side_Right.wav
>  /usr/share/sounds/alsa/Side_Left.wav
>  /usr/share/sounds/alsa/Front_Center.wav"
> echo "not setting hardware"
> for song in $songs;
> do
>   aplay  $song
> done
> 
> arecord -l
> **** List of CAPTURE Hardware Devices ****
> card 0: VT82xx [HDA VIA VT82xx], device 0: VT1708 Analog [VT1708 Analog]
>   Subdevices: 2/2
>   Subdevice #0: subdevice #0
>   Subdevice #1: subdevice #1
> card 0: VT82xx [HDA VIA VT82xx], device 1: VT1708 Digital [VT1708
> Digital]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> One digital device is listed with: arecord -L  
> 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)
> 
> Arecord without specifying -D makes a pulsing screech.
> arecord -d 10 -f dat -t wav |aplay
> 
> This records 10 seconds and ends in an I/O error:
> arecord -D hw:0,1     -d 10 -f dat -t wav |aplay
> 
> 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
> 
> All these record tests fail.
> arecord -D cards.pcm.Digital -d 10 -f dat -t wav |aplay
> ALSA lib pcm.c:2121:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.Digital
> arecord: main:540: audio open error: No such file or directory
> aplay: playback:1995: read error
> 
> arecord -D cards.pcm.iec958  -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
> ALSA lib pcm_hooks.c:392:(snd_pcm_hook_add_conf) symbol _snd_pcm_hook_ctl_elems_install is not defined inside (null)
> arecord: main:540: audio open error: No such device or address
> aplay: playback:1995: read error
> 
> arecord -D hwplug:0,1        -d 10 -f dat -t wav |aplay
> 
> ALSA lib pcm.c:2121:(snd_pcm_open_noupdate) Unknown PCM hwplug:0,1
> arecord: main:540: audio open error: No such file or directory
> aplay: playback:1995: read error

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).


Takashi

  parent reply	other threads:[~2008-01-09 16:29 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 [this message]
2008-01-09 17:49                   ` John Stile
  -- 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=s5hir233que.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=john@stilen.com \
    /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