ALSA: azt3328: use proper private_data hookup for codec identification
commitda237f35a8a503fb8893fb3b9d0622a991bcebef
authorAndreas Mohr <andi@lisas.de>
Mon, 27 Dec 2010 20:17:26 +0000 (27 21:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 2 Jan 2011 10:11:24 +0000 (2 11:11 +0100)
tree36c9ad6accec05028e9e7ab0ef62cccede0aaa6b
parent345855951a7d36eed815fd129c49b7ee2b7a6864
ALSA: azt3328: use proper private_data hookup for codec identification

- much improved implementation due to clean codec hierarchy
- preparation for potential per-codec spinlock change

NOTE: additionally removes a chip->pcm[codec_type] NULL ptr check
(due to it requiring access to external chip struct),
however I believe this to be ok since this condition should not occur
and most drivers don't check against that either.

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/azt3328.c