From: Takashi Iwai <tiwai@suse.de>
To: "Tien, C.L." <cltien@cmedia.com.tw>
Cc: alsa-devel@alsa-project.org
Subject: Re: [patch] for 9880 spdif out
Date: Fri, 18 Mar 2005 14:46:42 +0100 [thread overview]
Message-ID: <s5hfyyt83st.wl@alsa2.suse.de> (raw)
In-Reply-To: <s5hy8cm7b4r.wl@alsa2.suse.de>
[-- Attachment #1: Type: text/plain, Size: 869 bytes --]
At Thu, 17 Mar 2005 12:41:24 +0100,
I wrote:
>
> > --- alsa-kernel/pci/hda/hda_codec.c 16 Mar 2005 13:37:09 -0000 1.7
> > +++ alsa-kernel/pci/hda/hda_codec.c 17 Mar 2005 04:40:12 -0000
> > @@ -955,6 +955,8 @@
> > if (change || codec->in_resume) {
> > codec->spdif_ctls = val;
> > snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_DIGI_CONVERT_1, val & 0xff);
> > + put_vol_mute(codec, nid, 0, HDA_OUTPUT, 0, val ? 0 : 0x80);
> > + put_vol_mute(codec, nid, 1, HDA_OUTPUT, 0, val ? 0 : 0x80);
>
> It should check only the enable bit (bit0) of val.
> Also, these two calls can be a single verb, e.g.
>
> snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE,
> AC_AMP_SET_LEFT|AC_AMP_SET_RIGHT|AC_AMP_SET_OUTPUT|
> ((val & 1) ? 0 : 0x80));
>
> Could you check whether this works?
OK the patch is below. Please let me know if it works.
Takashi
[-- Attachment #2: Type: text/plain, Size: 727 bytes --]
Index: alsa-kernel/pci/hda/hda_codec.c
===================================================================
RCS file: /home/iwai/cvs/alsa/alsa-kernel/pci/hda/hda_codec.c,v
retrieving revision 1.8
diff -u -r1.8 hda_codec.c
--- alsa-kernel/pci/hda/hda_codec.c 16 Mar 2005 13:36:04 -0000 1.8
+++ alsa-kernel/pci/hda/hda_codec.c 18 Mar 2005 13:45:34 -0000
@@ -955,6 +955,9 @@
if (change || codec->in_resume) {
codec->spdif_ctls = val;
snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_DIGI_CONVERT_1, val & 0xff);
+ snd_hda_codec_write(codec, nid, 0, AC_VERB_SET_AMP_GAIN_MUTE,
+ AC_AMP_SET_RIGHT | AC_AMP_SET_LEFT |
+ AC_AMP_SET_OUTPUT | ((val & 1) ? 0 : 0x80));
}
up(&codec->spdif_mutex);
return change;
next prev parent reply other threads:[~2005-03-18 13:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-17 4:48 [patch] for 9880 spdif out "Tien, C.L. - 田承禮"
2005-03-17 11:41 ` Takashi Iwai
2005-03-18 13:46 ` Takashi Iwai [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-18 15:11 "Tien, C.L. - 田承禮"
2005-03-18 16:23 ` Takashi Iwai
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=s5hfyyt83st.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=cltien@cmedia.com.tw \
/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.