Phase 22 patch
I've struggled for a couple of days with Terratec Phase 22 card. Chips used on it are well known but the combination is somehow unique. Phase 88 should have been similar... but it actually uses 1712 instead of 1721 (Envy24HT-S). So here is the patch against release 1.0.8 that adds Phase 22 to ice1724. I've tested only analog part (balances 1/4 TRS in and outs).
I hope maintainers will ok it to be included to the mainstream.
Cheers,
Misha
alsa-kernel/pci/ice1712/ice1724.c +3 -1
@@ -47,7 +47,7 @@#include "vt1720_mobo.h" #include "pontis.h" #include "prodigy192.h" - +#include "phase.h" MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>" );MODULE_DESCRIPTION ("VIA ICEnsemble ICE1724/1720 (Envy24HT/PT)" );
@@ -59,6 +59,7 @@VT1720_MOBO_DEVICE_DESC PONTIS_DEVICE_DESCPRODIGY192_DEVICE_DESC + PHASE_DEVICE_DESC"{VIA,VT1720}," "{VIA,VT1724}," "{ICEnsemble,Generic ICE1724},"
@@ -1866,6 +1867,7 @@ snd_vt1720_mobo_cards, snd_vt1720_pontis_cards, snd_vt1724_prodigy192_cards, + snd_vt1724_phase_cards, NULL, };
alsa-kernel/pci/ice1712/Makefile +1 -1
@@ -5,7 +5,7 @@ snd-ice17xx-ak4xxx-objs := ak4xxx.o snd-ice1712-objs := ice1712.o delta.o hoontech.o ews.o -snd-ice1724-objs := ice1724.o amp.o revo.o aureon.o vt1720_mobo.o pontis.o prodigy192.o +snd-ice1724-objs := ice1724.o amp.o revo.o aureon.o vt1720_mobo.o pontis.o prodigy192.o phase.o # Toplevel Module Dependency obj-$(CONFIG_SND_ICE1712) += snd-ice1712.o snd-ice17xx-ak4xxx.o
alsa-kernel/pci/ice1712/phase.c +138 -0
138 lines not on this page · raw message
alsa-kernel/pci/ice1712/phase.h +34 -0
@@ -0,0 +1,34 @@ +#ifndef __SOUND_PHASE_H +#define __SOUND_PHASE_H + +/* +* ALSA driver for ICEnsemble ICE1712 (Envy24) +* +* Lowlevel functions for Terratec PHASE 22 +* +* Copyright (c) 2003 Misha Zhilin <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* +*/ + +#define PHASE_DEVICE_DESC "{Terratec,Phase 22}," + +#define VT1724_SUBDEVICE_PHASE22 0x3b155011 + +/* entry point */ +extern struct snd_ice1712_card_info snd_vt1724_phase_cards[]; + +#endif /* __SOUND_PHASE */
pci/ice1712/phase.c +2 -0
@@ -0,0 +1,2 @@ +#define __NO_VERSION__ +#include "../../alsa-kernel/pci/ice1712/phase.c"
At Mon, 07 Feb 2005 22:03:35 -0500,
Quoted 8 lines · Misha Jiline
I've struggled for a couple of days with Terratec Phase 22 card. Chips used on it are well known but the combination is somehow unique. Phase 88 should have been similar... but it actually uses 1712 instead of 1721 (Envy24HT-S). So here is the patch against release 1.0.8 that adds Phase 22 to ice1724. I've tested only analog part (balances 1/ 4 TRS in and outs).
I hope maintainers will ok it to be included to the mainstream.
Thanks, the patch looks fine.
Only subtle things:
Quoted 6 lines
+/*
+ * ALSA driver for ICEnsemble ICE1724 (Envy24)
+ *
+ * Lowlevel functions for Terratec PHASE 22
+ *
+ * Copyright (c) 2003 Misha Zhilin <[email protected]>
Is the code really so old? :)
alsa-kernel/pci/ice1712/phase.c line 84
Quoted 1 line
alsa-kernel/pci/ice1712/phase.c +1
-0+ ak = ice->akm =kmalloc (sizeof (akm4xxx_t),GFP_KERNEL );
Safer to use kcalloc() here.
Could you fix thte above and regenerate the patch against CVS version? The ice1712 code was slightly changed since 1.0.8 due to addition of Juli board support.
Also, please give "Signed-off-by" to add your credit in changelog (it's required for submitting to linux kernel).
thanks,
Takashi
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 6 lines
Could you fix thte above and regenerate the patch against CVS version? The ice1712 code was slightly changed since 1.0.8 due to addition of Juli board support.
Also, please give "Signed-off-by" to add your credit in changelog (it's required for submitting to linux kernel).
Here you go...
Cheers,
Misha.
Summary: Added support for Terratec PHASE 22
alsa-driver/pci/ice1712/phase.c +2 -0
@@ -0,0 +1,2 @@ +#define __NO_VERSION__ +#include "../../alsa-kernel/pci/ice1712/phase.c"
alsa-kernel/pci/ice1712/ice1724.c +3 -0
@@ -48,6 +48,7 @@#include "pontis.h" #include "prodigy192.h" #include "juli.h" +#include "phase.h" MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>" );
@@ -61,6 +62,7 @@PONTIS_DEVICE_DESC PRODIGY192_DEVICE_DESCJULI_DEVICE_DESC + PHASE_DEVICE_DESC"{VIA,VT1720}," "{VIA,VT1724}," "{ICEnsemble,Generic ICE1724},"
@@ -1869,6 +1871,7 @@ snd_vt1720_pontis_cards, snd_vt1724_prodigy192_cards, snd_vt1724_juli_cards, + snd_vt1724_phase_cards, NULL, };
alsa-kernel/pci/ice1712/Makefile +1 -1
@@ -5,7 +5,7 @@ snd-ice17xx-ak4xxx-objs := ak4xxx.o snd-ice1712-objs := ice1712.o delta.o hoontech.o ews.o -snd-ice1724-objs := ice1724.o amp.o revo.o aureon.o vt1720_mobo.o pontis.o prodigy192.o juli.o +snd-ice1724-objs := ice1724.o amp.o revo.o aureon.o vt1720_mobo.o pontis.o prodigy192.o juli.o phase.o # Toplevel Module Dependency obj-$(CONFIG_SND_ICE1712) += snd-ice1712.o snd-ice17xx-ak4xxx.o
alsa-kernel/pci/ice1712/phase.c +138 -0
138 lines not on this page · raw message
alsa-kernel/pci/ice1712/phase.h +34 -0
@@ -0,0 +1,34 @@ +#ifndef __SOUND_PHASE_H +#define __SOUND_PHASE_H + +/* +* ALSA driver for ICEnsemble ICE1712 (Envy24) +* +* Lowlevel functions for Terratec PHASE 22 +* +* Copyright (c) 2005 Misha Zhilin <[email protected]> +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +* +*/ + +#define PHASE_DEVICE_DESC "{Terratec,Phase 22}," + +#define VT1724_SUBDEVICE_PHASE22 0x3b155011 + +/* entry point */ +extern struct snd_ice1712_card_info snd_vt1724_phase_cards[]; + +#endif /* __SOUND_PHASE */
Takashi Iwai
AppliedAt Wed, 09 Feb 2005 00:05:03 -0500,
Quoted 8 lines · Misha Jiline
The ice1712 code was slightly changed since 1.0.8 due to addition of Juli board support.
Also, please give "Signed-off-by" to add your credit in changelog (it's required for submitting to linux kernel).
Here you go...
Thanks, applied now.
Takashi
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click