[alsa-devel] [PATCH] ALSA: hda: Add support for Medion WIM2160

Takashi Iwai tiwai at suse.de
Wed Apr 7 14:57:42 CEST 2010


At Wed, 07 Apr 2010 14:35:36 +0200,
Maurus Cuelenaere wrote:
> 
> Op 07-04-10 14:02, Takashi Iwai schreef:
> > At Wed, 07 Apr 2010 13:59:37 +0200,
> > Maurus Cuelenaere wrote:
> >    
> >> Op 07-04-10 13:58, Takashi Iwai schreef:
> >>      
> >>> At Wed, 07 Apr 2010 13:48:28 +0200,
> >>> Maurus Cuelenaere wrote:
> >>>
> >>>        
> >>>> Op 07-04-10 08:08, Takashi Iwai schreef:
> >>>>
> >>>>          
> >>>>> At Tue, 6 Apr 2010 19:08:45 +0200,
> >>>>> Maurus Cuelenaere wrote:
> >>>>>
> >>>>>
> >>>>>            
> >>>>>> [1<text/plain; UTF-8 (quoted-printable)>]
> >>>>>> Sorry, forgot to reply-all.
> >>>>>>
> >>>>>> On Tue, Apr 6, 2010 at 19:03, Takashi Iwai<tiwai at suse.de>    wrote:
> >>>>>>
> >>>>>>
> >>>>>>              
> >>>>>>> At Tue, 6 Apr 2010 18:12:52 +0200,
> >>>>>>> Maurus Cuelenaere wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>                
> >>>>>>>> This adds support for the Medion WIM2160 soundcard.
> >>>>>>>> There's no PCI quirk added because it has the same PCI id as the
> >>>>>>>> Medion MD2.
> >>>>>>>>
> >>>>>>>> Signed-off-by: Maurus Cuelenaere<mcuelenaere at gmail.com>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>                  
> >>>>>>> Thanks for the patch.
> >>>>>>>
> >>>>>>> Before applying it, a usual question -- doesn't model=auto work for
> >>>>>>> your device?  If not, please give alsa-info.sh output (run with
> >>>>>>> --no-upload option).
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>                
> >>>>>> Last time I tried, it didn't. Do you want me to retry?
> >>>>>>
> >>>>>>
> >>>>>>              
> >>>>> Yes, please.  Please elaborate what didn't work, and give the
> >>>>> corresponding alsa-inf.sh output, too.
> >>>>>
> >>>>>
> >>>>>            
> >>>> I've tried several different configurations, all of these were performed
> >>>> by booting the kernel with bootparameter "snd-hda-intel.model=<model>"
> >>>>
> >>>> model=medion-wim2160: audio works, hp switching works, hp works
> >>>> model=generic: audio works, hp does not
> >>>> no parameters: nothing works
> >>>> model=auto: audio works, hp does not
> >>>>
> >>>> The odd thing is that yesterday model=auto worked great, even including
> >>>> automatic headphone switching..
> >>>> Does the HDA chip perhaps retain its configuration across warm/cold reboots?
> >>>>
> >>>> Also, sometimes I needed to unmute and increase the volume when booting
> >>>> some configurations.
> >>>>
> >>>>          
> >>> I fixed a few things today, and it might have broken.  Or your version
> >>> didn't include the fix yet?  Anyway, please specify what version
> >>> you've tested.
> >>>
> >>> If you tested git tree, use
> >>>     git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git
> >>> either master, for-next or topic/hda branch.
> >>>
> >>> If you build from alsa-driver external tree, use snapshot tarball
> >>>     ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
> >>>
> >>> The corresponding GIT commits can be found in alsa-driver/HEAD and
> >>> alsa-driver/alsa-kernel/HEAD files.
> >>>
> >>>        
> >> I've been using official 2.6.33, I can try your git tree.
> >>
> >> Do you want me to test it with model=auto?
> >>      
> > Yes.  That's the very reason :)
> >    
> 
> Audio works, headphone output does not and so does automatic 
> speaker-headphone switching (haven't tested line in).
> 
> Attached is the output of alsa-info.sh
> 
> Tested version was commit 489008cd58740fe3842822681d33bf87c07c3412 on 
> branch sound-2.6/topic/hda.

OK, thanks for checking.  The problem is that BIOS doesn't set up the
pins correctly, especially the headphone pin.  So, the quirk is
mandatory, more or less.

I applied your patch to fix/hda branch now.


thanks,

Takashi


More information about the Alsa-devel mailing list