From: Erik Slagter <erik@slagter.name>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: SPDIF/IEC958 sample rate on HDA/ALC882
Date: Mon, 11 Dec 2006 13:50:58 +0100 [thread overview]
Message-ID: <457D5432.1070402@slagter.name> (raw)
In-Reply-To: <s5hhcwj4u0s.wl%tiwai@suse.de>
Takashi Iwai wrote:
>> Maybe I am using the wrong "hw", there is also a "hw:0,2" device, which
>> I cannot make work properly at all (only one channel is output, large
>> chunks are discarded, much much clipping).
> The first PCM device is for the multi-output PCM. It's for both
> analog and digital. The dedicated SPDIF is the secondary one.
I've been experimenting at large yesterday, and I now I finally
understand what you mean by this sentence.
It appears that if you send output to hw:0,0 which comprises of
two-channel data AND the iec958 enable control is set to on, then the
hw:0,1 is also opened (returns "busy" on open) and the sound is sent to
that device simultaneously. If the amount of channels is other than 2,
then this scheme is not followed, and the secondary interface remains
available. If the iec958 enable control is set to false, none of the
hw:0,0 or hw:0,1 output data to spdif.
Is this intended behaviour? I think it is very very confusing. IMHO the
alsa lib has enough features to copy sound to both devices, when the
user actually wants that. And I don't! hw:0,0 should simply output to
analog en hw:0,1 to digital... At least the user should be able to
choose the behaviour using the iec958 enable control, being "on"
implementing the current "copying" behaviour and otherwise simply
exposing two independent devices.
Oh and BTW the bug I reported earlier on, with the hw:0,1 (digital)
interface giving noise in one channel, appears to be really a bug, with
a workaround, so it might be a simple one to resolve; if you output
sound to the device and toggle the iec958 control a few times, the noise
goes away and the interface works OK. Looks like an initialisation
problem to me...
This is all with vanilla linux 2.6.19 (alsa 1.0.13).
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2006-12-11 12:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-01 16:58 SPDIF/IEC958 sample rate on HDA/ALC882 Erik Slagter
2006-11-28 12:48 ` Takashi Iwai
[not found] ` <456C35F5.5070808@slagter.name>
2006-11-28 14:43 ` Takashi Iwai
[not found] ` <456C8316.30309@slagter.name>
2006-11-29 10:25 ` Takashi Iwai
2006-11-29 10:41 ` Erik Slagter
2006-11-29 10:54 ` Takashi Iwai
2006-11-29 11:18 ` Erik Slagter
2006-12-08 13:55 ` Erik Slagter
2006-12-11 12:50 ` Erik Slagter [this message]
[not found] ` <loom.20070321T222449-537@post.gmane.org>
[not found] ` <87648thdes.fsf@gandalf.hd.free.fr>
[not found] ` <udejnhy14a.fsf@sid.nimrod.no>
[not found] ` <ud8xdpxw1y.fsf@sid.nimrod.no>
[not found] ` <874podj8rw.fsf@gandalf.hd.free.fr>
[not found] ` <87zm65htl3.fsf@gandalf.hd.free.fr>
[not found] ` <udvegss2jm.fsf@sid.nimrod.no>
[not found] ` <87ircr7o8n.fsf@gandalf.hd.free.fr>
[not found] ` <udbqijefbj.fsf@sid.nimrod.no>
[not found] ` <87ps6z3wbn.fsf_-_@gandalf.hd.free.fr>
[not found] ` <udmz21sosc.fsf@sid.nimrod.no>
[not found] ` <87r6rbn7xp.fsf@gandalf.hd.free.fr>
[not found] ` <udps6t7cz3.fsf@sid.nimrod.no>
[not found] ` <87y7ler7ng.fsf@gandalf.hd.free.fr>
[not found] ` <s5h7isvktie.wl%tiwai@suse.de>
[not found] ` <kgitzvx6feb.fsf@komarr.grenoble.hp.com>
[not found] ` <s5h4pnxinny.wl%tiwai@suse.de>
[not found] ` <87k5wtjrev.fsf_-_@gandalf.hd.free.fr>
[not found] ` <kgiwt0s4jpv.fsf@komarr.grenoble.hp.com>
[not found] ` <udd52kqlhv.fsf@sid.nimrod.no>
[not found] ` <s5hvegcdxun.wl%tiwai@suse.de>
[not found] ` <udabxf9uvz.fsf@sid.nimrod.no>
[not found] ` <s5htzvnz0jy.wl%tiwai@suse.de>
2007-04-22 11:01 ` [PATCH] Re: iec958 switch uneffective while playing ac3 stream Dag Lem
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=457D5432.1070402@slagter.name \
--to=erik@slagter.name \
--cc=alsa-devel@lists.sourceforge.net \
--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 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.