From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbdJFFpP (ORCPT ); Fri, 6 Oct 2017 01:45:15 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:43360 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750898AbdJFFpO (ORCPT ); Fri, 6 Oct 2017 01:45:14 -0400 X-Google-Smtp-Source: AOwi7QD6dVtHYMshvfsN/6zJZd/kQl4AqcqZn/iX2iriBRau/9pEzKp3FAjHVox1XRO6AyvjMeQWZA== To: linux-kernel@vger.kernel.org From: steven Subject: [sysfs] Sysfs acceptable paths to custom functionality Message-ID: Date: Fri, 6 Oct 2017 00:45:11 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I am developing a driver for an audio codec that has fixed DSP functionality. On the device there are coefficients that can be programmed to implement different types of filters that can be used to implement an EQ or 3D sound effects. Based on what I have seen in the Kernel so far our device is the only one that has this type of feature, but I do believe others exist. Due to this I would like to generalize this as much as possible so user space applications can take advantage of it. 1. Where under /sys/ should I expose these features? My initial thought for the interface would look something like this: some_device/ ..features/ ....eq1/ ......band1/ ........coefficient_a1 ........coefficient_a2 ....eq2/ ....3dbass/ ....3dtreb/ 2. Do you see anything wrong with this approach? Please CC me in your responses. Regards, Steven