From: RAHUL SHARMA Subject: exynos drm hdmi audio: how to recieve audio parameters (sf, bps, channel count) Date: Tue, 17 Jul 2012 06:12:57 +0000 (GMT) Message-ID: <20159078.455911342505576968.JavaMail.weblogic@epml07> Reply-To: rahul.sharma@samsung.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 47F549ECD9 for ; Mon, 16 Jul 2012 23:23:03 -0700 (PDT) Received: from epcpsbge2.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7A00E7TJXM0I80@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 17 Jul 2012 15:12:58 +0900 (KST) MIME-version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org, SUNIL JOSHI , prashanth.g@samsung.com, prathyush.k@samsung.com, padma.v@samsung.com, rcsekar@samsung.com, s.shirish@samsung.com, fahad.k@samsung.com, sunilm@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com List-Id: dri-devel@lists.freedesktop.org hi, I am adding support for hdmi audio, inside exynos drm hdmi driver. Hdmi audio is initialized with default parameters. I want to implement the mechanism to update hdmi registers, whenever audio properties got changed (i2s/spdif). raedon/r600 drm dirver is polling the audio ip every 100 ms and reconfigure the hdmi audio block. This is not possible with exynos as all information cannot be collected from i2s tx registers. It is directly set on wm8994 connected through i2c. Possible solution: 1) drm driver exposing ioctl for setting audio parameters. 2) alsa driver notifying the change in audio parameters through kernel notifiers. drm hdmi driver subscribed for the same. Please suggest me a good way to implement this. regards, Rahul Sharma.