public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: Lukas Wunner <lukas@wunner.de>
To: David Ulricht <david.ulricht434@gmail.com>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org, Leif Liddy <leif.linux@gmail.com>
Subject: Re: CS8409 Macbook Pro 2016 2017
Date: Sun, 5 Aug 2018 21:32:04 +0200	[thread overview]
Message-ID: <20180805193204.GA16304@wunner.de> (raw)
In-Reply-To: <CALbf9MzYvcz+d0HKmvc60WhTHVpiuTK8O66qNH3Xcuo5j3uU9Q@mail.gmail.com>

On Sat, Aug 04, 2018 at 11:30:29PM +0300, David Ulricht wrote:
> What am I doing wrong ?  Is the below script correct for testing the GPIOs ?
> for x in range(0,256):
>     mhex=("0x%0.2X" % x)
>     os.system("hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK "+mhex)
>     os.system("hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIRECTION "+mhex)
>     os.system("hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA "+mhex)
> I think its not correct gpio_direction i guess could be only 0 or 1?
> What happens when I pass a different value to data than 0/1 ? this should
> also not be correct.
> I guess 0x01 is the NID value is it okay to use 0x01 only or I have to pass
> other values to it also ?

The speakers are driven by digital amplifiers MAX98706.  The MBP13,3
has four (treble/bass x left/right).  They're attached via i2c to
GPIO 6 (SCL) and 7 (SDA) of the CS8409 HDA bridge.  It's possible
that you need to initialize the amps via i2c, in that case using the
GPIOs in bitbanging mode is wrong.

Leif Liddy has been looking into this as well (+cc):
https://bugzilla.kernel.org/show_bug.cgi?id=110561

Lukas

      parent reply	other threads:[~2018-08-05 19:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-04  2:07 CS8409 Macbook Pro 2016 2017 David Ulricht
2018-08-04  2:18 ` David Ulricht
2018-08-04  6:48 ` Takashi Iwai
     [not found]   ` <CALbf9Mw=Y5ddFZDZQ4_mfYCHxKb9XFHN3v5ge0JaTca7NLMM7A@mail.gmail.com>
2018-08-04 16:26     ` Takashi Iwai
     [not found]       ` <CALbf9MwN4pEk26R9c2-UMxzvLXQ3OOBTcqgdSvXeFb-dw7-Wnw@mail.gmail.com>
2018-08-04 17:13         ` Takashi Iwai
2018-08-04 20:30           ` David Ulricht
2018-08-05 18:05             ` Takashi Iwai
2018-08-05 18:58               ` David Ulricht
2018-11-16 14:02               ` David Ulricht
2018-11-16 14:36                 ` Takashi Iwai
2018-11-16 16:50                   ` David Ulricht
2018-11-16 17:31                     ` Takashi Iwai
2018-11-19 17:30                       ` David Ulricht
2018-11-19 18:47                         ` Takashi Iwai
2018-11-23 17:26                           ` David Ulricht
2018-11-27  2:42                             ` David Ulricht
2018-08-05 19:32             ` Lukas Wunner [this message]

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=20180805193204.GA16304@wunner.de \
    --to=lukas@wunner.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=david.ulricht434@gmail.com \
    --cc=leif.linux@gmail.com \
    --cc=tiwai@suse.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox