* Re: [PATCH] Turtle Beach Multisound Classic/Pinnacle driver (4th rev)
[not found] <20090124133528.05da0507.krzysztof.h1@poczta.fm>
@ 2009-01-24 15:42 ` Krzysztof Helt
2009-01-26 8:56 ` Takashi Iwai
1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Helt @ 2009-01-24 15:42 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Alsa-devel
On Sat, 24 Jan 2009 13:35:28 +0100
Krzysztof Helt <krzysztof.h1@poczta.fm> wrote:
> From: Krzysztof Helt <krzysztof.h1@wp.pl>
>
> + .buffer_bytes_max = 0x3000,
> + .period_bytes_min = 0x40,
> + .period_bytes_max = 0x1800,
> + .periods_min = 2,
> + .periods_max = 3,
I have investigated the max_periods number
and at least some code called from the interrupt
assumes no more then 3 periods in the buffer.
I do not understand the code enough to change
this.
Regards,
Krzysztof
----------------------------------------------------------------------
Zobacz gry internetowe dla dzieci!
sprawdz >>>http://link.interia.pl/f202c
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Turtle Beach Multisound Classic/Pinnacle driver (4th rev)
[not found] <20090124133528.05da0507.krzysztof.h1@poczta.fm>
2009-01-24 15:42 ` [PATCH] Turtle Beach Multisound Classic/Pinnacle driver (4th rev) Krzysztof Helt
@ 2009-01-26 8:56 ` Takashi Iwai
2009-01-27 20:44 ` Krzysztof Helt
1 sibling, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2009-01-26 8:56 UTC (permalink / raw)
To: Krzysztof Helt; +Cc: Alsa-devel
At Sat, 24 Jan 2009 13:35:28 +0100,
Krzysztof Helt wrote:
>
> From: Krzysztof Helt <krzysztof.h1@wp.pl>
>
> This is driver for Turtle Beach Multisound cards:
> Classic, Fiji and Pinnacle.
>
> Tested pcm playback and recording and MIDI playback
> on Multisound Pinnacle.
>
> Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
>
> ---
>
> All issues pointed by Takashi are resolved. I moved
> more code to the common part and made a common
> library.
Thanks, this looks pretty good.
But, one thing I forgot to ask...
> +static int __devinit snd_msnd_isa_probe(struct device *pdev, unsigned int idx)
> +{
> + int err;
> + struct snd_card *card;
> + struct snd_msnd *chip;
> +
> + if (isapnp[idx] || cfg[idx] == SNDRV_AUTO_PORT) {
> + printk(KERN_INFO LOGNAME ": Assuming PnP mode\n");
> + return -ENODEV;
> + }
> +
> + card = snd_card_new(index[idx], id[idx], THIS_MODULE,
> + sizeof(struct snd_msnd));
> + if (!card)
> + return -ENOMEM;
Could you use the new API snd_card_create() introduced recently?
> +#ifdef CONFIG_PNP
> +static int __devinit snd_msnd_pnp_detect(struct pnp_card_link *pcard,
> + const struct pnp_card_device_id *pid)
> +{
...
> + /*
> + * Create a new ALSA sound card entry, in anticipation
> + * of detecting our hardware ...
> + */
> + card = snd_card_new(index[idx], id[idx], THIS_MODULE,
> + sizeof(struct snd_msnd));
> + if (!card)
> + return -ENOMEM;
Ditto.
thanks,
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Turtle Beach Multisound Classic/Pinnacle driver (4th rev)
2009-01-26 8:56 ` Takashi Iwai
@ 2009-01-27 20:44 ` Krzysztof Helt
2009-01-28 8:07 ` Takashi Iwai
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Helt @ 2009-01-27 20:44 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Alsa-devel
On Mon, 26 Jan 2009 09:56:02 +0100
Takashi Iwai <tiwai@suse.de> wrote:
> Thanks, this looks pretty good.
> But, one thing I forgot to ask...
>
>
> Could you use the new API snd_card_create() introduced recently?
>
>
The patch with conversion only is below.
---
From: Krzysztof Helt <krzysztof.h1@wp.pl>
Convert driver to use new snd_card_create()
function.
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
---
diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.c
index b0231cf..845470b 100644
--- a/sound/isa/msnd/msnd_pinnacle.c
+++ b/sound/isa/msnd/msnd_pinnacle.c
@@ -893,10 +893,10 @@ static int __devinit snd_msnd_isa_probe(struct device *pdev, unsigned int idx)
return -ENODEV;
}
- card = snd_card_new(index[idx], id[idx], THIS_MODULE,
- sizeof(struct snd_msnd));
- if (!card)
- return -ENOMEM;
+ err = snd_card_create(index[idx], id[idx], THIS_MODULE,
+ sizeof(struct snd_msnd), &card);
+ if (err < 0)
+ return err;
snd_card_set_dev(card, pdev);
chip = card->private_data;
@@ -1113,10 +1113,10 @@ static int __devinit snd_msnd_pnp_detect(struct pnp_card_link *pcard,
* Create a new ALSA sound card entry, in anticipation
* of detecting our hardware ...
*/
- card = snd_card_new(index[idx], id[idx], THIS_MODULE,
- sizeof(struct snd_msnd));
- if (!card)
- return -ENOMEM;
+ ret = snd_card_create(index[idx], id[idx], THIS_MODULE,
+ sizeof(struct snd_msnd), &card);
+ if (ret < 0)
+ return ret;
chip = card->private_data;
chip->card = card;
----------------------------------------------------------------------
Speak Up. Angielski szybko i skutecznie. 3 miesiace nauki gratis.
Sprawdz. >> http://link.interia.pl/f2019
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Turtle Beach Multisound Classic/Pinnacle driver (4th rev)
2009-01-27 20:44 ` Krzysztof Helt
@ 2009-01-28 8:07 ` Takashi Iwai
0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2009-01-28 8:07 UTC (permalink / raw)
To: Krzysztof Helt; +Cc: Alsa-devel
At Tue, 27 Jan 2009 21:44:10 +0100,
Krzysztof Helt wrote:
>
> On Mon, 26 Jan 2009 09:56:02 +0100
> Takashi Iwai <tiwai@suse.de> wrote:
>
> > Thanks, this looks pretty good.
> > But, one thing I forgot to ask...
> >
> >
> > Could you use the new API snd_card_create() introduced recently?
> >
> >
>
> The patch with conversion only is below.
Thanks, now merged the patch into sound git tree.
alsa-driver-build tree is updated so that snd-msnd-* drivers are built
with the snapshot tarball, too.
Takashi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-28 8:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20090124133528.05da0507.krzysztof.h1@poczta.fm>
2009-01-24 15:42 ` [PATCH] Turtle Beach Multisound Classic/Pinnacle driver (4th rev) Krzysztof Helt
2009-01-26 8:56 ` Takashi Iwai
2009-01-27 20:44 ` Krzysztof Helt
2009-01-28 8:07 ` Takashi Iwai
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.