All of lore.kernel.org
 help / color / mirror / Atom feed
* pcm->private_data is NULL in alsa core!!
@ 2007-06-16 12:50 Pharaoh .
  2007-06-17 15:45 ` Pharaoh .
  2007-06-18  7:37 ` Clemens Ladisch
  0 siblings, 2 replies; 15+ messages in thread
From: Pharaoh . @ 2007-06-16 12:50 UTC (permalink / raw)
  To: alsa-devel

Hi
I am writing an alsa driver for my omap based board. I am testing it using
cat /dev/audio currently, i.e. I have OSS emulation turned on. This is
an initial round of testing and I will use alsa-libs and utils later.

My problem is:

I have set the pcm->private_data = my_chip after registering the pcm ops,
after referring various standard drivers in alsa tree. My module is
insmoded properly but after I do snd_card_register(card) the
pcm->private_data is corrupted !! Before this step, the
pcm->private_data is intact.  But after looking at the
snd_card_register(), I realized that it doesn't even touch the pcm
pointer.

So, when I cat the device I get huge segfault in
snd_pcm_attach_substream(), since pcm->private_data is NULL but
surprisingly all the other fields are intact in pcm pointer.

 Even the OSS code doesn't touch the pcm pointer, what must be wrong?
I have checked my source atleast 5 times and couldn't find anything in it.

-pharaoh.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-06-22 20:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-16 12:50 pcm->private_data is NULL in alsa core!! Pharaoh .
2007-06-17 15:45 ` Pharaoh .
2007-06-18  7:37 ` Clemens Ladisch
2007-06-18 11:56   ` Pharaoh .
2007-06-18 11:58     ` Pharaoh .
2007-06-19 11:10     ` Clemens Ladisch
2007-06-19 11:30       ` Pharaoh .
2007-06-19 12:17         ` Pharaoh .
2007-06-19 14:29         ` Clemens Ladisch
2007-06-20 10:18           ` Pharaoh .
2007-06-20 11:12             ` Pharaoh .
2007-06-20 11:16               ` Pharaoh .
2007-06-20 16:13                 ` Clemens Ladisch
2007-06-20 16:29                   ` Pharaoh .
2007-06-22 20:03                     ` Pharaoh .

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.