From: Takashi Iwai <tiwai@suse.de>
To: Chen Jie <chenj@lemote.com>
Cc: Huacai Chen <chenhuacai@gmail.com>,
linux-mips@linux-mips.org, alsa-devel@alsa-project.org,
Zhangjin Wu <wuzhangjin@gmail.com>, Hua Yan <yanh@lemote.com>,
Ralf Baechle <ralf@linux-mips.org>,
Hongliang Tao <taohl@lemote.com>,
Fuxin Zhang <zhangfx@lemote.com>, Huacai Chen <chenhc@lemote.com>
Subject: Re: [alsa-devel] [PATCH V4 12/16] ALSA: HDA: Make hda sound card usable for Loongson.
Date: Thu, 09 Aug 2012 07:59:04 +0200 [thread overview]
Message-ID: <s5hobmkfvx3.wl%tiwai@suse.de> (raw)
In-Reply-To: <CAGXxSxVs0cq08d+xk3rew6tQttkw1XM7pugn142m1_F6tJBWNQ@mail.gmail.com>
At Thu, 9 Aug 2012 11:35:15 +0800,
Chen Jie wrote:
>
> Hi,
>
> 2012/8/3 Takashi Iwai <tiwai@suse.de>:
> > At Fri, 3 Aug 2012 18:36:40 +0800,
> > Huacai Chen wrote:
> >>
> >> We write these quirks on 2.6.36 some time ago, and then we port them
> >> to 3.x (3.2, 3.3, 3.4 and 3.5). As you say, PMON (BIOS for Loongson)
> >> doesn't set the pins correctly. Anyway, I'll try your suggestions.
> >
> > Thanks. I guess it should work by just adding a new entry for your
> > device in cxt_fixups[] containing the right default pin-configuration
> > table, then point it in cxt5066_fixups[] with the corresponding PCI
> > (or codec) SSID.
> >
> >
> > Takashi
>
> I've found it is a little difficult to get proper pincfg values. The
> original patch builds 'input/output path' manually, the new way does
> it automatically as long as providing proper pincfgs for 'end points'.
>
> I tried to copy related pincfgs from a workable lemote a1004
> laptop(kernel with the original patch, read from
> /proc/asound/card0/codec#0), didn't help much.
It doesn't help because your old patch doesn't change the default
pin-configuration values. It changes the pin-control values or amp
values, but not the former one.
> I guess the pincfgs are not correct, and on the platform, the pincfgs
> are not touched by BIOS, so I have to calculate proper pincfgs, how?
Just follow the HD-audio specification :)
> HDA spec explains a pincfg as four bytes. For each byte, it has bits
> indicate amp/in/out/vref/ept.
No, you are referring to pin control bits. This has nothing to do
with the pin default configuration. You must misunderstand the spec
completely.
Read section 7.3.3.31 (page 179) for details.
Takashi
> In the kernel side, it reads a pincfg and explains it as a 32bits
> flag, indicating
> connect/location/device/jack_connect_type/jack_color/misc/association/sequence.
>
> Why they differ? How to get proper pincfg values?
>
>
>
> Regards,
> -- Chen Jie
>
next prev parent reply other threads:[~2012-08-09 6:00 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-03 7:05 [PATCH V4 00/16] MIPS: Add Loongson-3 based machines support Huacai Chen
2012-08-03 7:05 ` [PATCH V4 01/16] MIPS: Loongson: Add basic Loongson-3 definition Huacai Chen
2012-08-03 7:05 ` [PATCH V4 02/16] MIPS: Loongson: Add basic Loongson-3 CPU support Huacai Chen
2012-08-03 7:05 ` [PATCH V4 03/16] MIPS: Loongson 3: Add Lemote-3A machtypes definition Huacai Chen
2012-08-03 7:05 ` [PATCH V4 04/16] MIPS: Loongson: Make Loongson-3 to use BCD format for RTC Huacai Chen
2012-08-03 7:06 ` [PATCH V4 05/16] MIPS: Loongson: Add UEFI-like firmware interface support Huacai Chen
2012-08-03 7:06 ` [PATCH V4 06/16] MIPS: Loongson 3: Add HT-linked PCI support Huacai Chen
2012-08-03 7:06 ` [PATCH V4 07/16] MIPS: Loongson 3: Add IRQ init and dispatch support Huacai Chen
2012-08-03 7:06 ` [PATCH V4 08/16] MIPS: Loongson 3: Add serial port support Huacai Chen
2012-08-03 7:06 ` [PATCH V4 09/16] MIPS: Loongson: Add swiotlb to support big memory (>4GB) Huacai Chen
2012-08-03 7:06 ` [PATCH V4 10/16] MIPS: Loongson: Add Loongson-3 Kconfig options Huacai Chen
2012-08-03 7:06 ` [PATCH V4 11/16] drm/radeon: Make radeon card usable for Loongson Huacai Chen
2012-08-03 8:01 ` Michel Dänzer
2012-08-03 10:29 ` Huacai Chen
2012-08-03 7:06 ` [PATCH V4 12/16] ALSA: HDA: Make hda sound " Huacai Chen
2012-08-03 9:24 ` [alsa-devel] " Takashi Iwai
2012-08-03 10:36 ` Huacai Chen
2012-08-03 14:56 ` Takashi Iwai
2012-08-09 3:35 ` Chen Jie
2012-08-09 5:59 ` Takashi Iwai [this message]
2012-08-03 7:06 ` [PATCH V4 13/16] MIPS: Loongson 3: Add Loongson-3 SMP support Huacai Chen
2012-08-03 7:06 ` [PATCH V4 14/16] MIPS: Loongson 3: Add CPU hotplug support Huacai Chen
2012-08-03 7:06 ` [PATCH V4 15/16] MIPS: Fix poweroff failure when HOTPLUG_CPU configured Huacai Chen
2012-08-03 7:06 ` [PATCH V4 16/16] MIPS: Loongson: Add a Loongson-3 default config file Huacai Chen
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=s5hobmkfvx3.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=chenhc@lemote.com \
--cc=chenhuacai@gmail.com \
--cc=chenj@lemote.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=taohl@lemote.com \
--cc=wuzhangjin@gmail.com \
--cc=yanh@lemote.com \
--cc=zhangfx@lemote.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox