Skip to content

Commit

Permalink
[ALSA] hdsp: make Multiface II work again
Browse files Browse the repository at this point in the history
This device has io_type == 1 (Multiface) and firmware_rev > 0xa
(fixes regression from changeset 5326)

Signed-off-by: Andreas Degert <ad@papyrus-gmbh.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
  • Loading branch information
Andreas Degert authored and Jaroslav Kysela committed Jan 31, 2008
1 parent e70515d commit 192b8e3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sound/pci/rme9652/hdsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,10 @@ static int hdsp_playback_to_output_key (struct hdsp *hdsp, int in, int out)
case Multiface:
case Digiface:
default:
return (64 * out) + (32 + (in));
if (hdsp->firmware_rev == 0xa)
return (64 * out) + (32 + (in));
else
return (52 * out) + (26 + (in));
case H9632:
return (32 * out) + (16 + (in));
case H9652:
Expand All @@ -621,7 +624,10 @@ static int hdsp_input_to_output_key (struct hdsp *hdsp, int in, int out)
case Multiface:
case Digiface:
default:
return (64 * out) + in;
if (hdsp->firmware_rev == 0xa)
return (64 * out) + in;
else
return (52 * out) + in;
case H9632:
return (32 * out) + in;
case H9652:
Expand Down

0 comments on commit 192b8e3

Please sign in to comment.