From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756870Ab2CLVlw (ORCPT ); Mon, 12 Mar 2012 17:41:52 -0400 Received: from mail-1-out2.atlantis.sk ([80.94.52.71]:49229 "EHLO mail.atlantis.sk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752326Ab2CLVlv (ORCPT ); Mon, 12 Mar 2012 17:41:51 -0400 From: Ondrej Zary To: alsa-devel@alsa-project.org Subject: Triple implementation of WM8766 and quadruple WM8776! Date: Mon, 12 Mar 2012 22:40:54 +0100 User-Agent: KMail/1.9.10 Cc: Kernel development list MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201203122241.12234.linux@rainbow-software.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I'm trying do implement support for Philips PSC724 Ultimate Edge card, which is based on VT1722 + WM8776 + WM8766 chips. Found that the best file to base my work on is sound/pci/ice1712/se.c (as SE-200PCI card contains both WM8776 and WM8766 chips). While doing this, found that there are three implementations of WM8766 codec control, two of them in the same driver(!): sound/pci/ice1712/se.c sound/pci/ice1712/prodigy_hifi.c sound/pci/oxygen/xonar_wm87x6.c (+sound/pci/oxygen/wm8766.h) And WM8776 status is even worse, there are four implementations, again two being in the same driver: sound/pci/ice1712/se.c sound/pci/ice1712/maya44.c sound/pci/oxygen/xonar_wm87x6.c (+sound/pci/oxygen/wm8776.h) sound/soc/codecs/wm8776.c (this one being official and stand-alone module but it does not seem to be usable as a part of sound card driver) My code would enlarge both of these lists and I don't like that. What to do? -- Ondrej Zary