All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manuel Schneider <manuel.schneider@kanal-ratte.de>
To: alsa-devel@alsa-project.org
Subject: Re: Swissonic TS22PCI / Teratec Phase 22 / driver problems with ice1724
Date: Thu, 14 Aug 2008 16:03:20 +0200	[thread overview]
Message-ID: <48A43B28.5000308@kanal-ratte.de> (raw)
In-Reply-To: <s5habff1zft.wl%tiwai@suse.de>

Takashi Iwai schrieb, Am 14.08.2008 15:47:

> Pass model=phase22 module option to snd-ice1724 driver.  Then it
> handles the card as if it's phase22.



Thanks for this hin. Unfortunately it changes nothing - still kernel
error message, still no usable sound device.

I also tried the following kernel patch, which gives me an accessible
sound device and usable mixer (and no kernel error), but recording does
not work (just noise).
The patch is quite simple - it just adds the subvendor ID of the
Swissonic card and adds all phase22 functionality to it.

Manuel

---
-:[/usr/src/linux/sound/pci/ice1712]#> diff -uN phase.h.bak phase.h
--- phase.h.bak 2008-08-12 10:13:49.000000000 +0200
+++ phase.h     2008-08-12 09:49:23.000000000 +0200
@@ -25,9 +25,11 @@
    */

   #define PHASE_DEVICE_DESC "{Terratec,Phase 22},"\
+                          "{Swissonic,TS22PCI},"\
                             "{Terratec,Phase 28},"

   #define VT1724_SUBDEVICE_PHASE22       0x3b155011
+#define VT1724_SUBDEVICE_TS22PCI       0x3b157b11
   #define VT1724_SUBDEVICE_PHASE28       0x3b154911

   /* entry point */
---

---
-:[/usr/src/linux/sound/pci/ice1712]#> diff -uN phase.c.bak phase.c
--- phase.c.bak 2008-08-12 09:51:28.000000000 +0200
+++ phase.c     2008-08-12 09:51:28.000000000 +0200
@@ -124,6 +124,11 @@
                  ice->num_total_adcs = 2;
                  ice->vt1720 = 1; // Envy24HT-S have 16 bit wide GPIO
                  break;
+       case VT1724_SUBDEVICE_TS22PCI:
+               ice->num_total_dacs = 2;
+               ice->num_total_adcs = 2;
+               ice->vt1720 = 1; // Envy24HT-S have 16 bit wide GPIO
+               break;
          default:
                  snd_BUG();
                  return -EINVAL;
@@ -139,6 +144,10 @@
                  if ((err = snd_ice1712_akm4xxx_init(ak, &akm_phase22,
&akm_phase22_priv, ice)) < 0)
                          return err;
                  break;
+       case VT1724_SUBDEVICE_TS22PCI:
+               if ((err = snd_ice1712_akm4xxx_init(ak, &akm_phase22,
&akm_phase22_priv, ice)) < 0)
+                       return err;
+               break;
          }

          return 0;
@@ -153,6 +162,10 @@
                  err = snd_ice1712_akm4xxx_build_controls(ice);
                  if (err < 0)
                          return err;
+       case VT1724_SUBDEVICE_TS22PCI:
+               err = snd_ice1712_akm4xxx_build_controls(ice);
+               if (err < 0)
+                       return err;
          }
          return 0;
   }
@@ -896,6 +909,15 @@
                  .eeprom_data = phase22_eeprom,
          },
          {
+               .subvendor = VT1724_SUBDEVICE_TS22PCI,
+               .name = "Swissonic TS22PCI",
+               .model = "phase22",
+               .chip_init = phase22_init,
+               .build_controls = phase22_add_controls,
+               .eeprom_size = sizeof(phase22_eeprom),
+               .eeprom_data = phase22_eeprom,
+       },
+       {
                  .subvendor = VT1724_SUBDEVICE_PHASE28,
                  .name = "Terratec PHASE 28",
                  .model = "phase28",
---



-- 
Kanal Ratte 104,5 MHz
...das Freie Radio im Wiesental

Hauptstrasse 82
79650 Schopfheim

Tel: +49 7622 6692-53
Fax: +49 7622 6692-54

  reply	other threads:[~2008-08-14 14:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 13:29 Swissonic TS22PCI / Teratec Phase 22 / driver problems with ice1724 Manuel Schneider
2008-08-14 13:47 ` Takashi Iwai
2008-08-14 14:03   ` Manuel Schneider [this message]
     [not found]   ` <48A43A2A.7050701@kanal-ratte.de>
2008-08-14 14:03     ` Takashi Iwai
2008-08-14 14:09       ` Manuel Schneider
     [not found]       ` <48A43C11.10904@kanal-ratte.de>
2008-08-14 14:13         ` Takashi Iwai
2008-08-14 16:05           ` Manuel Schneider
2008-08-20  6:51           ` Manuel Schneider
2008-08-21  9:14             ` Takashi Iwai
2008-08-21  9:34               ` Manuel Schneider
2008-08-27 17:15               ` Manuel Schneider

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=48A43B28.5000308@kanal-ratte.de \
    --to=manuel.schneider@kanal-ratte.de \
    --cc=alsa-devel@alsa-project.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.