From: "Ville Syrjälä" <syrjala@sci.fi>
To: Hans de Goede <hdegoede@redhat.com>
Cc: alsa-devel@alsa-project.org, dmitry.torokhov@gmail.com,
linux-input@vger.kernel.org
Subject: Re: [PATCH 4/4] snd-maestro3: Make hardware volume buttons an input device
Date: Thu, 22 Apr 2010 18:11:12 +0300 [thread overview]
Message-ID: <20100422151112.GC6861@sci.fi> (raw)
In-Reply-To: <4BD00176.3000904@redhat.com>
On Thu, Apr 22, 2010 at 09:57:42AM +0200, Hans de Goede wrote:
> On 04/21/2010 06:05 PM, Ville Syrjälä wrote:
> > On Wed, Apr 21, 2010 at 11:04:09AM -0400, Hans de Goede wrote:
> >> @@ -2524,6 +2494,42 @@ static int m3_resume(struct pci_dev *pci)
> >> }
> >> #endif /* CONFIG_PM */
> >>
> >> +#ifdef CONFIG_INPUT
> >> +static int __devinit snd_m3_input_register(struct snd_m3 *chip)
> >> +{
> >> + struct input_dev *input_dev;
> >> + int err;
> >> +
> >> + input_dev = input_allocate_device();
> >> + if (!input_dev)
> >> + return -ENOMEM;
> >> +
> >> + snprintf(chip->phys, sizeof(chip->phys), "pci-%s/input0",
> >> + pci_name(chip->pci));
> >
> > What's the proper format of phys? I see gameport stuff uses
> > pci%s/gameport0, ir stuff uses pci-%s/ir0. I can't immediately find any
> > other pci input things.
> >
>
> I've no idea, I took the pci-%s/ part from other pci drivers registering
> input devices and the input0 part is based on doing:
> cat /sys/class/input/input?/phys
>
> On my system which yields a string ending in input0 for almost all
> input devices.
Same for me. Unfortunately none start with "pci". Adding Dmitry and
linux-input in cc. Dmitry, any official statement about this phys
string?
--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
next parent reply other threads:[~2010-04-22 15:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1271862249-22612-1-git-send-email-hdegoede@redhat.com>
[not found] ` <1271862249-22612-4-git-send-email-hdegoede@redhat.com>
[not found] ` <20100421160551.GB6861@sci.fi>
[not found] ` <4BD00176.3000904@redhat.com>
2010-04-22 15:11 ` Ville Syrjälä [this message]
2010-04-22 16:59 ` [alsa-devel] [PATCH 4/4] snd-maestro3: Make hardware volume buttons an input device Dmitry Torokhov
2010-04-22 17:54 ` Ville Syrjälä
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=20100422151112.GC6861@sci.fi \
--to=syrjala@sci.fi \
--cc=alsa-devel@alsa-project.org \
--cc=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=linux-input@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).