All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Jan-Marek Glogowski <glogow@fbihome.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [RfC][PATCH] ALSA: hda/realtek Pin quirk for Fujitsu U7[25]7
Date: Tue, 13 Feb 2018 12:11:38 +0100	[thread overview]
Message-ID: <s5hzi4d6t5h.wl-tiwai@suse.de> (raw)
In-Reply-To: <6d34fc90-48fb-8d5a-f7a5-7a3e33ddec9b@fbihome.de>

On Tue, 13 Feb 2018 12:00:29 +0100,
Jan-Marek Glogowski wrote:
> 
> Hi Takashi,
> 
> Am 13.02.2018 um 07:04 schrieb Takashi Iwai:
> > On Fri, 26 Jan 2018 16:12:53 +0100,
> > Jan-Marek Glogowski wrote:
> >>
> >> I got new HW from our supplier, a Fujitsu U727 and a U757 laptop, which
> >> have a headset jack. Attaching a headset, the microphone doesn't work.
> >> After some reading and trying various tools to understand the problem, I
> >> found hdajacksensetest, which showed a sense change for a seemingly
> >> wrong unconnected pin.
> >> Overriding this pins' config has fixed the headsets microphone, so now I
> >> have the attached kernel patch with a SND_HDA_PIN_QUIRK.
> > 
> > The pin config override itself looks OK, but the way to identify the
> > machine is an open question.  You've added the entries in
> > alc269_pin_fixup_tbl[].  This table is for matching with a group of
> > machines that have the same "fingerprint" by pin configs.  Usually
> > this is used for Dell laptops and such.
> > 
> > OTOH, if one quirk is needed only for one or two machines, using the
> > PCI SSID (or codec SSID) is the easier way to go, and it's done by
> > putting into alc269_fixup_tbl[].
> 
> So I re-check the hardware:
> 
> $ cat /proc/asound/card0/codec#0 | head
> Codec: Realtek ALC255
> Address: 0
> AFG Function Id: 0x1 (unsol 1)
> Vendor Id: 0x10ec0255
> Subsystem Id: 0x10cf1629
> Revision Id: 0x100002
> No Modem Function Group found
> Default PCM:
>     rates [0x560]: 44100 48000 96000 192000
>     bits [0xe]: 16 20 24
> 
> $ sudo lspci -vns 00:1f.3
> 00:1f.3 0403: 8086:9d70 (rev 21)
>         Subsystem: 10cf:193e
>         Flags: bus master, fast devsel, latency 32, IRQ 280
>         Memory at c1240000 (64-bit, non-prefetchable) [size=16K]
>         Memory at c1230000 (64-bit, non-prefetchable) [size=64K]
>         Capabilities: [50] Power Management version 3
>         Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
>         Kernel driver in use: snd_hda_intel
> 
> I ran and diff'ed the output on both laptops. It's the same for both notebook types, so AFAIK there is no other way to distinguish them, except for the Jack pin being on the left or right side. The only difference I see is in the DMI datas' product name, but that data is not used in the sound driver at all.
> 
> $ sudo dmidecode -t 1
> Handle 0x0001, DMI type 1, 27 bytes
> System Information
>         Manufacturer: FUJITSU
>         Product Name: LIFEBOOK U757
>         Family: LIFEBOOK-FTS

The driver doesn't check any difference of the position for
identifying the jack detection capability, so you can apply the same
quirk to both models.  Then I prefer putting with SND_PCI_QUIRK().


> >> After compiling the patched module (for 4.4), everything works as
> >> expected, but hdajackretask still shows the pin as unconnected, so I'm
> >> wondering,  if I need to do something in addition?
> > 
> > If everything is working, why any more changes? :)
> 
> Ok. I'm not familiar with the HDA codecs, and I was just wondering, if this should / can be patched.
> 
> >> Is this normal behaviour?
> 
> Jan-Marek
> 
> >> P.S. checkpatch.pl warned about too long lines for the SND_HDA_PIN_QUIRK. Should I fix that?

No, it's not strictly needed.  It's a warning, not an error.


thanks,

Takashi

  reply	other threads:[~2018-02-13 11:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c6ec1a50-187e-42d8-4137-f162c52e4f79@fbihome.de>
2018-01-26 15:12 ` [RfC][PATCH] ALSA: hda/realtek Pin quirk for Fujitsu U7[25]7 Jan-Marek Glogowski
2018-02-06  8:55   ` Jan-Marek Glogowski
2018-02-06  9:43     ` Takashi Sakamoto
2018-02-13  6:04   ` Takashi Iwai
2018-02-13 11:00     ` Jan-Marek Glogowski
2018-02-13 11:11       ` Takashi Iwai [this message]
2018-02-13 14:21         ` [RfC][PATCH] ALSA: hda/realtek PCI " Jan-Marek Glogowski
2018-02-13 14:48           ` Takashi Iwai
2018-02-13 15:05             ` [RfC][PATCH v2] ALSA: hda/realtek PCI quirk for Fujitsu U7x7 Jan-Marek Glogowski
2018-02-13 17:19               ` Takashi Iwai
2018-02-14  9:36                 ` [RfC][PATCH v3] " Jan-Marek Glogowski
2018-02-14  9:41                   ` Takashi Iwai
2018-02-14 10:36                     ` [PATCH v4] " Jan-Marek Glogowski
2018-02-14 11:02                       ` 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=s5hzi4d6t5h.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=glogow@fbihome.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.