All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: "Lin, Mengdong" <mengdong.lin@intel.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"Girdwood, Liam R" <liam.r.girdwood@intel.com>,
	"Wang, Xingchao" <xingchao.wang@intel.com>
Subject: Re: hda question: 'Headphone Playback Switch' cannot unmute the pin's output amplifier?
Date: Wed, 05 Jun 2013 13:34:08 +0200	[thread overview]
Message-ID: <51AF2230.4070704@canonical.com> (raw)
In-Reply-To: <F46914AEC2663F4A9BB62374E5EEF8F801246F8D@SHSMSX101.ccr.corp.intel.com>

On 06/05/2013 01:06 PM, Lin, Mengdong wrote:
> Hi,
>
> I'm using a Realtek HD-A codec ALC282. But the headphone output amplifier is always muted and I cannot unmute it by amixer.
>
> I tried to unmute the pin via control 'Headphone Playback Switch', but snd_hda_mixer_amp_switch_put() gets a ZERO value from ucontrol->value.integer.value, thus the pin will be muted.
> Could somebody give me some tips to further check this issue? Many thanks!

Maybe there's also a "Master playback switch" that needs to be turned on 
as well?

>
> Here are the headphone pin info:
> Node 0x21 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
>    Control: name="Headphone Playback Switch", index=0, device=0
>      ControlAmp: chs=3, dir=Out, idx=0, ofs=0
>    Control: name="Headphone Jack", index=0, device=0
>    Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
>    Amp-Out vals:  [0x80 0x80]
>    Pincap 0x0000001c: OUT HP Detect
>    Pin Default 0x0321401f: [Jack] HP Out at Ext Left
>      Conn = 1/8, Color = Green
>      DefAssociation = 0x1, Sequence = 0xf
>    Pin-ctls: 0xc0: OUT HP
>    Unsolicited: tag=01, enabled=1
>    Power states:  D0 D1 D2 D3 EPSS
>    Power: setting=D0, actual=D0
>    Connection: 2
>       0x0c 0x0d*
>
> Here is the pin's controls listed by amixer:
> numid=2,iface=MIXER,name='Headphone Playback Switch'
>
> Then I use this command to unmute the pin's amplifier:
> amixer -c 1 cset numid=2,iface=MIXER,name='Headphone Playback Switch' on
>
> My debug message show that snd_hda_mixer_amp_switch_put() gets zero value , indicating to 'mute':
> [  346.263519] snd_hda_mixer_amp_switch_put: nid 0x0021, chs 3, control value [0x00000000, 0x00000000]
> [  346.263527] snd_hda_codec_amp_update: nid 0x0021
> [  346.263532] codec_amp_update: nid 0x0021, ch 0, direction 1 (OUT 1), index 0, val 0x00000080
> [  346.263536] codec_amp_update: amp val not change
> [  346.263538] snd_hda_codec_amp_update: nid 0x0021
> [  346.263542] codec_amp_update: nid 0x0021, ch 1, direction 1 (OUT 1), index 0, val 0x00000080
> [  346.263544] codec_amp_update: amp val not change
>
> Thanks
> Mengdong
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>



-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic

  reply	other threads:[~2013-06-05 11:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 11:06 hda question: 'Headphone Playback Switch' cannot unmute the pin's output amplifier? Lin, Mengdong
2013-06-05 11:34 ` David Henningsson [this message]
2013-06-06  5:39   ` Lin, Mengdong
2013-06-06  9:01     ` Takashi Iwai
2013-06-06 10:34       ` Lin, Mengdong
2013-06-06 11:49         ` 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=51AF2230.4070704@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=liam.r.girdwood@intel.com \
    --cc=mengdong.lin@intel.com \
    --cc=xingchao.wang@intel.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 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.