On 09/09/2012 09:50 AM, Takashi Iwai wrote:
> At Sat, 8 Sep 2012 09:10:14 +0800,
> Raymond Yau wrote:
>>
>> 2012-9-7 下午1:26 於 "David Henningsson" <[email protected]> 寫道:
>>>
>>> The purpose of this flag is unclear. If the problem is that some machines
>>> have broken misc/NO_PRESENCE bits, they should be fixed by pin fixups.
>>>
>>> In addition, this causes jack detection functionality to be flawed on
>>> the M31EI, where there are two jacks without jack detection (which is
>>> properly marked as NO_PRESENCE), but due to ignore_misc_bit, these
>>> jacks are instead being reported as being present but always unplugged.
>>>
>>> BugLink:    
>>
>> do you mean the commit does not fix the bug?
>>
>> ALSA: hda - add support for Uniwill ECS M31EI notebook
>>
>> This hardware requires same fixup for the node 0x0f like Asus A6Rp.
>> More information: https://bugzilla.redhat.com/show_bug.cgi?id=785417
>>
>> http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=commit;h=416846d2b31fc740ed9d5a5ec116964fb43c4358

The PCI SSIDs are different, so I don't think that commit will affect 
the bug I was trying to fix.

>> the real cases are those desktop which does not use hda front audio panel ,
>> they just loss the auto mute since there is no jack detect circuit but they
>> can still hear sound from the headphone at anytime

If there is no HDA front panel connected to the motherboard physically, 
the codec should report front headphone and mic as unconnected.

If there is an AC'97 front panel connected, the BIOS should set 
NO_PRESENCE in the misc bit.

If BIOS/HW does not support these simple rules, we need to quirk them.

>> do pulseaudio need a phantom port for the front panel headphone and mic
>> without jack detection ?
>
> Actually this is one good point.
> The jack detection isn't always reliably on such old machines, and
> BIOS cannot know, too.

Can you be a bit more specific about this claim? What machines? How many 
machines? In what way is it unreliable?

 > That is, it has to be adjusted by user
 > manually, whether the jack detection is enabled or not.
>
> So far, we solved this by providing "Auto-Mute Mode" mixer switch.

This is not a proper way to "solve" it - "Auto-Mute mode" as the control 
name says is more closely related to the muting of outputs, than it is 
to the actual jack detection.

Also, "Auto-Mute mode" is 1) only related to outputs and 2) not 
available generically but only for specific codecs.

> But the jack detection controls don't follow this yet.  Maybe we can
> set such a jack control as inactive state when the jack detection is
> disabled.
>
> (And this reminds me that we can cut off "Phantom" name hack by
>   following the same rule -- just set the control inactive when it has
>   no real detection.  But it still appears in control list.)

Looking at the alsa-lib API, this seems doable. It seems possible to 
figure out using snd_hctl_elem_info and then 
snd_ctl_elem_info_is_inactive. If it is also runtime changeable (i e 
depending on some other mixer control), we need a callback to fire on 
the hctl.


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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/939161

Title:
  Hardware not showed in Gnome-Control-Center. - [M31EI Series, Realtek
  ALC861, Green Headphone Out, Rear]

Status in “alsa-driver” package in Ubuntu:
  Incomplete

Bug description:
  My hardware is not displayed when open the gnome-control-center... But when I 
do:
   # sudo gnome-control-center it is showed correctly.

  
  Terminal messages:

  ========================================================================

  jrzabott@junior-notebook:~$ gnome-control-center

  Gtk-WARNING **: Unknown object home-button specified in sizegroup
  sizegroup

   get server info

   update server
   2 profiles supported on port Headphones 

   2 profiles supported on port Microphone

   SET PROFILES Microphone
   device->priv->disable_profile_swapping = 1 

   create_ui_device_from_port, direction 0 
   description Microphone 
   origin Built-in Audio 
   port available 0 
   

   SET PROFILES Headphones
   device->priv->disable_profile_swapping = 1 

   create_ui_device_from_port, direction 1 
   description Headphones 
   origin Built-in Audio 
   port available 0 
   

   update sink - is new

   Match device with stream 
   We have a match with description : Headphones  
   origin : Built-in Audio 
   cached already with device id 2, 
   => set stream id to 1 

   
   
   lookup-device-from-stream found device  
   device description Headphones 
   device port = analog-output-headphones 
   device stream id 1 
   AND 
   stream port = analog-output-headphones stream id 1 and stream description 
Built-in Audio Analog Stereo 
  active_sink change 

  
   active output update - device id = 2 

  
  sound-cc-panel-WARNING **: The tree is empty => we have no devices in the 
tree => cannot set the active output

   Match device with stream 
   We have a match with description : Microphone  
   origin : Built-in Audio 
   cached already with device id 1, 
   => set stream id to 2 

   
   
   lookup-device-from-stream found device  
   device description Microphone 
   device port = analog-input-microphone 
   device stream id 2 
   AND 
   stream port = analog-input-microphone stream id 2 and stream description 
Built-in Audio Analog Stereo 

   active_input_update Microphone

  sound-cc-panel-WARNING **: The tree is empty => we have no devices so
  cannot set the active input

   saving bar for stream System Soundsjrzabott@junior-notebook:~$

  
  
==========================================================================================

  jrzabott@junior-notebook:~$ sudo gnome-control-center
  [sudo] password for jrzabott: 

  Gtk-WARNING **: Unknown object home-button specified in sizegroup
  sizegroup

  
==========================================================================================


  IMAGES SHOWING THE PROBLEM...

  http://i.imgur.com/Dv7Vm.png - all users.

  http://i.imgur.com/92UqG.png - when I use 'sudo'.

  
  I'm always open to provide informations, and help with anything. :D

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
  Uname: Linux 3.2.0-17-generic i686
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
  ApportVersion: 1.92-0ubuntu1
  Architecture: i386
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  jrzabott   1792 F.... pulseaudio
                        jrzabott   1888 F.... TeamViewer.exe
  Card0.Amixer.info:
   Card hw:0 'Intel'/'HDA Intel at 0xfe0fc000 irq 43'
     Mixer name : 'Realtek ALC861'
     Components : 'HDA:10ec0861,15840000,00100300 
HDA:10573055,10573055,00100700'
     Controls      : 14
     Simple ctrls  : 9
  Date: Wed Feb 22 22:58:28 2012
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  PackageArchitecture: all
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Intel successful
  Symptom_AlsaPlaybackTestStderr:
   A L S A   l i b   c o n f . c : 1 2 2 0 : ( p a r s e _ d e f )   s h o w   
i s   n o t   a   c o m p o u n d 
    A L S A   l i b   c o n f . c : 1 6 8 6 : ( s n d _ c o n f i g _ l o a d 1 
)   _ t o p l e v e l _ : 2 4 : 2 6 : U n e x p e c t e d   c h a r 
    A L S A   l i b   c o n f . c : 3 4 0 6 : ( c o n f i g _ f i l e _ o p e n 
)   / u s r / s h a r e / a l s a / p u l s e - a l s a . c o n f   m a y   b e 
  o l d   o r   c o r r u p t e d :   c o n s i d e r   t o   r e m o v e   o r 
  f i x   i t
  Symptom_Card: Built-in Audio - HDA Intel
  Symptom_Jack: Green Headphone Out, Rear
  Symptom_PulsePlaybackTest: PulseAudio playback test failed
  Symptom_SpeakerTestPulseStderr:
   A L S A   l i b   c o n f . c : 1 2 2 0 : ( p a r s e _ d e f )   s h o w   
i s   n o t   a   c o m p o u n d 
    A L S A   l i b   c o n f . c : 1 6 8 6 : ( s n d _ c o n f i g _ l o a d 1 
)   _ t o p l e v e l _ : 2 4 : 2 6 : U n e x p e c t e d   c h a r 
    A L S A   l i b   c o n f . c : 3 4 0 6 : ( c o n f i g _ f i l e _ o p e n 
)   / u s r / s h a r e / a l s a / p u l s e - a l s a . c o n f   m a y   b e 
  o l d   o r   c o r r u p t e d :   c o n s i d e r   t o   r e m o v e   o r 
  f i x   i t 
    A L S A   l i b   p c m . c : 2 2 1 7 : ( s n d _ p c m _ o p e n _ n o u p 
d a t e )   U n k n o w n   P C M   p u l s e
  Symptom_Type: None of the above
  Title: [M31EI Series, Realtek ALC861, Green Headphone Out, Rear] Playback 
problem
  UpgradeStatus: Upgraded to precise on 2012-02-12 (10 days ago)
  dmi.bios.date: 08/14/2006
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 1.05
  dmi.board.name: M31EI Series
  dmi.board.vendor: American Megatrends Inc
  dmi.chassis.type: 10
  dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvr1.05:bd08/14/2006:svnAmericanMegatrendsInc:pnM31EISeries:pvr:rvnAmericanMegatrendsInc:rnM31EISeries:rvr:cvn:ct10:cvr:
  dmi.product.name: M31EI Series
  dmi.sys.vendor: American Megatrends Inc
  mtime.conffile..etc.modprobe.d.alsa.base.conf: 2012-02-14T02:07:51.669084

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/939161/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to