diff mbox

[1/2] ALSA: line6: add support for POD HD500X

Message ID 1497636857-13944-1-git-send-email-hmoller@uc.cl (mailing list archive)
State New, archived
Headers show

Commit Message

Hans P Moller June 16, 2017, 6:14 p.m. UTC
Add support for the Line6 POD HD500X multi effect processor for playback and capture (in/out audio) through USB.

Signed-off-by: Hans P. Moller <hmoller@uc.cl>
---
 sound/usb/line6/podhd.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

Comments

Takashi Iwai June 17, 2017, 4:03 p.m. UTC | #1
On Fri, 16 Jun 2017 20:14:16 +0200,
Hans P. Möller Ebner wrote:
> 
> Add support for the Line6 POD HD500X multi effect processor for playback and capture (in/out audio) through USB.
> 
> Signed-off-by: Hans P. Moller <hmoller@uc.cl>
> ---
>  sound/usb/line6/podhd.c | 17 ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)
> 
> diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
> index 6ab23e5..e389f92 100644
> --- a/sound/usb/line6/podhd.c
> +++ b/sound/usb/line6/podhd.c
> @@ -3,6 +3,7 @@
>   *
>   * Copyright (C) 2011 Stefan Hajnoczi <stefanha@gmail.com>
>   * Copyright (C) 2015 Andrej Krutak <dev@andree.sk>
> + * Copyright (C) 2015 Hans P. Moller <hmoller@uc.cl>

Was the code written in two years ago?  Otherwise put 2017.
(Or you can omit such a change, too.  The change history can be
 tracked via git nowadays.)


thanks,

Takashi
Hans P Moller June 17, 2017, 7:03 p.m. UTC | #2
My mistake, 2017, sorry. Should I generate again the 2 commits? or a third
just correcting that? How should I handle it?
brgds
HPM

On Sat, Jun 17, 2017 at 12:03 PM, Takashi Iwai <tiwai@suse.de> wrote:

> On Fri, 16 Jun 2017 20:14:16 +0200,
> Hans P. Möller Ebner wrote:
> >
> > Add support for the Line6 POD HD500X multi effect processor for playback
> and capture (in/out audio) through USB.
> >
> > Signed-off-by: Hans P. Moller <hmoller@uc.cl>
> > ---
> >  sound/usb/line6/podhd.c | 17 ++++++++++++++++-
> >  1 file changed, 16 insertions(+), 1 deletion(-)
> >
> > diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
> > index 6ab23e5..e389f92 100644
> > --- a/sound/usb/line6/podhd.c
> > +++ b/sound/usb/line6/podhd.c
> > @@ -3,6 +3,7 @@
> >   *
> >   * Copyright (C) 2011 Stefan Hajnoczi <stefanha@gmail.com>
> >   * Copyright (C) 2015 Andrej Krutak <dev@andree.sk>
> > + * Copyright (C) 2015 Hans P. Moller <hmoller@uc.cl>
>
> Was the code written in two years ago?  Otherwise put 2017.
> (Or you can omit such a change, too.  The change history can be
>  tracked via git nowadays.)
>
>
> thanks,
>
> Takashi
>
Takashi Iwai June 17, 2017, 9:20 p.m. UTC | #3
On Sat, 17 Jun 2017 21:03:40 +0200,
Hans Peter Möller wrote:
> 
> My mistake, 2017, sorry. Should I generate again the 2 commits? or a third
> just correcting that? How should I handle it?

It's basically up to you.  I can fix it in my side for such a trivial
thing, too, so no need for resend unless anyone else finds more
issue.


thanks,

Takashi

> brgds
> HPM
> 
> On Sat, Jun 17, 2017 at 12:03 PM, Takashi Iwai <tiwai@suse.de> wrote:
> 
> > On Fri, 16 Jun 2017 20:14:16 +0200,
> > Hans P. Möller Ebner wrote:
> > >
> > > Add support for the Line6 POD HD500X multi effect processor for playback
> > and capture (in/out audio) through USB.
> > >
> > > Signed-off-by: Hans P. Moller <hmoller@uc.cl>
> > > ---
> > >  sound/usb/line6/podhd.c | 17 ++++++++++++++++-
> > >  1 file changed, 16 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
> > > index 6ab23e5..e389f92 100644
> > > --- a/sound/usb/line6/podhd.c
> > > +++ b/sound/usb/line6/podhd.c
> > > @@ -3,6 +3,7 @@
> > >   *
> > >   * Copyright (C) 2011 Stefan Hajnoczi <stefanha@gmail.com>
> > >   * Copyright (C) 2015 Andrej Krutak <dev@andree.sk>
> > > + * Copyright (C) 2015 Hans P. Moller <hmoller@uc.cl>
> >
> > Was the code written in two years ago?  Otherwise put 2017.
> > (Or you can omit such a change, too.  The change history can be
> >  tracked via git nowadays.)
> >
> >
> > thanks,
> >
> > Takashi
> >
> [2  <text/html; UTF-8 (quoted-printable)>]
>
Hans P Moller June 18, 2017, 11:15 p.m. UTC | #4
If you can do it, I would appreciate it.
Thanks.

brgds
HPM

On Sat, Jun 17, 2017 at 5:20 PM, Takashi Iwai <tiwai@suse.de> wrote:

> On Sat, 17 Jun 2017 21:03:40 +0200,
> Hans Peter Möller wrote:
> >
> > My mistake, 2017, sorry. Should I generate again the 2 commits? or a
> third
> > just correcting that? How should I handle it?
>
> It's basically up to you.  I can fix it in my side for such a trivial
> thing, too, so no need for resend unless anyone else finds more
> issue.
>
>
> thanks,
>
> Takashi
>
> > brgds
> > HPM
> >
> > On Sat, Jun 17, 2017 at 12:03 PM, Takashi Iwai <tiwai@suse.de> wrote:
> >
> > > On Fri, 16 Jun 2017 20:14:16 +0200,
> > > Hans P. Möller Ebner wrote:
> > > >
> > > > Add support for the Line6 POD HD500X multi effect processor for
> playback
> > > and capture (in/out audio) through USB.
> > > >
> > > > Signed-off-by: Hans P. Moller <hmoller@uc.cl>
> > > > ---
> > > >  sound/usb/line6/podhd.c | 17 ++++++++++++++++-
> > > >  1 file changed, 16 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
> > > > index 6ab23e5..e389f92 100644
> > > > --- a/sound/usb/line6/podhd.c
> > > > +++ b/sound/usb/line6/podhd.c
> > > > @@ -3,6 +3,7 @@
> > > >   *
> > > >   * Copyright (C) 2011 Stefan Hajnoczi <stefanha@gmail.com>
> > > >   * Copyright (C) 2015 Andrej Krutak <dev@andree.sk>
> > > > + * Copyright (C) 2015 Hans P. Moller <hmoller@uc.cl>
> > >
> > > Was the code written in two years ago?  Otherwise put 2017.
> > > (Or you can omit such a change, too.  The change history can be
> > >  tracked via git nowadays.)
> > >
> > >
> > > thanks,
> > >
> > > Takashi
> > >
> > [2  <text/html; UTF-8 (quoted-printable)>]
> >
>
Takashi Iwai June 20, 2017, 6:11 a.m. UTC | #5
On Mon, 19 Jun 2017 01:15:22 +0200,
Hans Peter Möller wrote:
> 
> If you can do it, I would appreciate it.
> Thanks.

OK, applied both patches now.  Thanks.


Takashi

> 
> brgds
> HPM
> 
> On Sat, Jun 17, 2017 at 5:20 PM, Takashi Iwai <tiwai@suse.de> wrote:
> 
> > On Sat, 17 Jun 2017 21:03:40 +0200,
> > Hans Peter Möller wrote:
> > >
> > > My mistake, 2017, sorry. Should I generate again the 2 commits? or a
> > third
> > > just correcting that? How should I handle it?
> >
> > It's basically up to you.  I can fix it in my side for such a trivial
> > thing, too, so no need for resend unless anyone else finds more
> > issue.
> >
> >
> > thanks,
> >
> > Takashi
> >
> > > brgds
> > > HPM
> > >
> > > On Sat, Jun 17, 2017 at 12:03 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > >
> > > > On Fri, 16 Jun 2017 20:14:16 +0200,
> > > > Hans P. Möller Ebner wrote:
> > > > >
> > > > > Add support for the Line6 POD HD500X multi effect processor for
> > playback
> > > > and capture (in/out audio) through USB.
> > > > >
> > > > > Signed-off-by: Hans P. Moller <hmoller@uc.cl>
> > > > > ---
> > > > >  sound/usb/line6/podhd.c | 17 ++++++++++++++++-
> > > > >  1 file changed, 16 insertions(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
> > > > > index 6ab23e5..e389f92 100644
> > > > > --- a/sound/usb/line6/podhd.c
> > > > > +++ b/sound/usb/line6/podhd.c
> > > > > @@ -3,6 +3,7 @@
> > > > >   *
> > > > >   * Copyright (C) 2011 Stefan Hajnoczi <stefanha@gmail.com>
> > > > >   * Copyright (C) 2015 Andrej Krutak <dev@andree.sk>
> > > > > + * Copyright (C) 2015 Hans P. Moller <hmoller@uc.cl>
> > > >
> > > > Was the code written in two years ago?  Otherwise put 2017.
> > > > (Or you can omit such a change, too.  The change history can be
> > > >  tracked via git nowadays.)
> > > >
> > > >
> > > > thanks,
> > > >
> > > > Takashi
> > > >
> > > [2  <text/html; UTF-8 (quoted-printable)>]
> > >
> >
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
diff mbox

Patch

diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c
index 6ab23e5..e389f92 100644
--- a/sound/usb/line6/podhd.c
+++ b/sound/usb/line6/podhd.c
@@ -3,6 +3,7 @@ 
  *
  * Copyright (C) 2011 Stefan Hajnoczi <stefanha@gmail.com>
  * Copyright (C) 2015 Andrej Krutak <dev@andree.sk>
+ * Copyright (C) 2015 Hans P. Moller <hmoller@uc.cl>
  *
  *	This program is free software; you can redistribute it and/or
  *	modify it under the terms of the GNU General Public License as
@@ -37,7 +38,8 @@  enum {
 	LINE6_PODHD500_0,
 	LINE6_PODHD500_1,
 	LINE6_PODX3,
-	LINE6_PODX3LIVE
+	LINE6_PODX3LIVE,
+	LINE6_PODHD500X
 };
 
 struct usb_line6_podhd {
@@ -372,6 +374,7 @@  static const struct usb_device_id podhd_id_table[] = {
 	{ LINE6_IF_NUM(0x414D, 1), .driver_info = LINE6_PODHD500_1 },
 	{ LINE6_IF_NUM(0x414A, 0), .driver_info = LINE6_PODX3 },
 	{ LINE6_IF_NUM(0x414B, 0), .driver_info = LINE6_PODX3LIVE },
+	{ LINE6_IF_NUM(0x4159, 0), .driver_info = LINE6_PODHD500X },
 	{}
 };
 
@@ -446,6 +449,18 @@  static const struct line6_properties podhd_properties_table[] = {
 		.ep_audio_r = 0x86,
 		.ep_audio_w = 0x02,
 	},
+	[LINE6_PODHD500X] = {
+		.id = "PODHD500X",
+		.name = "POD HD500X",
+		.capabilities	= LINE6_CAP_CONTROL
+				| LINE6_CAP_PCM | LINE6_CAP_HWMON,
+		.altsetting = 1,
+		.ep_ctrl_r = 0x81,
+		.ep_ctrl_w = 0x01,
+		.ctrl_if = 1,
+		.ep_audio_r = 0x86,
+		.ep_audio_w = 0x02,
+	},
 };
 
 /*