Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754281AbbHJQ0c (ORCPT ); Mon, 10 Aug 2015 12:26:32 -0400 Received: from regular1.263xmail.com ([211.150.99.130]:38381 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602AbbHJQ0a (ORCPT ); Mon, 10 Aug 2015 12:26:30 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-RL-SENDER: ykk@rock-chips.com X-FST-TO: jon.nettleton@gmail.com X-SENDER-IP: 220.249.180.47 X-LOGIN-NAME: ykk@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH 9/9] drm: bridge/dw_hdmi-i2s-audio: add audio driver To: Russell King - ARM Linux , linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20150808160936.GN7557@n2100.arm.linux.org.uk> <20150810154848.GV7557@n2100.arm.linux.org.uk> Cc: Fabio Estevam , Takashi Iwai , Sascha Hauer , Jaroslav Kysela , David Airlie , Mark Brown , Philipp Zabel , Andy Yan , Jon Nettleton From: Yakir Yang Message-ID: <55C8D0AD.3040001@rock-chips.com> Date: Tue, 11 Aug 2015 00:26:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20150810154848.GV7557@n2100.arm.linux.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2466 Lines: 72 Hi Russell, 在 2015/8/10 23:48, Russell King - ARM Linux 写道: > On Sat, Aug 08, 2015 at 05:10:47PM +0100, Russell King wrote: >> From: Yakir Yang >> >> Add ALSA based HDMI I2S audio driver for dw_hdmi. Sound card >> driver could connect to this codec through the codec dai name >> "dw-hdmi-i2s-audio". >> >> [Fixed IRQ name, MODULE_DESCRIPTION, MODULE_ALIAS in >> dw-hdmi-i2s-audio.c, and platform device name in dw-hdmi.c --rmk] >> >> Signed-off-by: Yakir Yang >> Signed-off-by: Russell King > I'm dropping this patch after all as it no longer builds against modern > kernels due to the reference to the removed snd_soc_jack_new(). Its > replacement is at card level, and I don't think it's a simple case of > replacing it here. Hmm... I would rather to fix it in my side, and then I could rebase on your series, is it okay ? - Yakir >> +static int snd_dw_hdmi_audio_probe(struct snd_soc_codec *codec) >> +{ >> + struct snd_dw_hdmi *dw = snd_soc_codec_get_drvdata(codec); >> + int ret; >> + >> + ret = snd_soc_jack_new(codec, "dw Jack", SND_JACK_LINEOUT, >> + &dw->jack); > ... >> +static const struct snd_soc_codec_driver dw_hdmi_audio = { >> + .probe = snd_dw_hdmi_audio_probe, >> + .dapm_widgets = snd_dw_hdmi_audio_widgets, >> + .num_dapm_widgets = ARRAY_SIZE(snd_dw_hdmi_audio_widgets), >> + .dapm_routes = snd_dw_hdmi_audio_routes, >> + .num_dapm_routes = ARRAY_SIZE(snd_dw_hdmi_audio_routes), >> +}; >> + >> +static int dw_hdmi_audio_probe(struct platform_device *pdev) >> +{ >> + struct dw_hdmi_audio_data *data = pdev->dev.platform_data; >> + struct snd_dw_hdmi *dw; >> + int ret; >> + >> + dw = devm_kzalloc(&pdev->dev, sizeof(*dw), GFP_KERNEL); >> + if (!dw) >> + return -ENOMEM; >> + >> + dw->data = *data; >> + dw->dev = &pdev->dev; >> + dw->is_jack_ready = false; >> + platform_set_drvdata(pdev, dw); >> + >> + ret = request_irq(dw->data.irq, snd_dw_hdmi_irq, IRQF_SHARED, >> + DRIVER_NAME, dw); >> + if (ret) { >> + dev_err(&pdev->dev, "request irq failed (%d)\n", ret); >> + return -EINVAL; >> + } >> + >> + ret = snd_soc_register_codec(&pdev->dev, &dw_hdmi_audio, >> + &dw_hdmi_audio_dai, 1); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/