]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: azt3328: use proper private_data hookup for codec identification
authorAndreas Mohr <andi@lisas.de>
Mon, 27 Dec 2010 20:17:26 +0000 (21:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 2 Jan 2011 10:11:24 +0000 (11:11 +0100)
commit9fb4ff1a5fb4d2b6e8266a144ea5925233f6d2af
tree36c9ad6accec05028e9e7ab0ef62cccede0aaa6b
parent396f9bac292f2ed3caa381708ab2ac831672a358
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