From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 15 06:50:23 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F80B106564A; Sun, 15 Jan 2012 06:50:23 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6ACA98FC08; Sun, 15 Jan 2012 06:50:22 +0000 (UTC) Received: by eeke53 with SMTP id e53so1071854eek.13 for ; Sat, 14 Jan 2012 22:50:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XT2FSAZcVUdL+6HJmdEON+ceKGEHHbXKSSdzhBvHhbY=; b=Q5VMtxezKBzthYOLlUNWyGDtSnjcnDOKt7Cjzw5QDXH+ON7GIuCPV6PKfR7O2776gR HsOUEvAt+rA6plCSDmsDhtm2oQMLm/A3my0r42oE+kvLGxjKYGGGr5SJMj2F6Ws3xIm5 yVFzD/sor1b3yhZaSPHflJ5cQYWkoO8HWpEZQ= Received: by 10.213.27.16 with SMTP id g16mr1996424ebc.6.1326610221266; Sat, 14 Jan 2012 22:50:21 -0800 (PST) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id 15sm54145022eeu.1.2012.01.14.22.50.19 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 22:50:20 -0800 (PST) Sender: Alexander Motin Message-ID: <4F12772A.10106@FreeBSD.org> Date: Sun, 15 Jan 2012 08:50:18 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111227 Thunderbird/9.0 MIME-Version: 1.0 To: Jan Beich References: <4F0DE3FD.2020203@FreeBSD.org> <1RmEaz-0008f9-Du@internal.tormail.net> In-Reply-To: <1RmEaz-0008f9-Du@internal.tormail.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org, FreeBSD current Subject: Re: [RFT] Major snd_hda rewrite X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2012 06:50:23 -0000 On 01/15/12 03:06, Jan Beich wrote: > Alexander Motin writes: > >> I would like request for testing of my work on further HDA sound >> driver improvement. > [...] >> - Codec pins and GPIO signals configuration was exported via set of >> writable sysctls. Another sysctl dev.hdaa.X.reconfig allows to trigger >> driver reconfiguration in run-time. The only requirement is that all >> pcm devices should be closed at the moment, as they will be destroyed >> and recreated. This should significantly simplify process of fixing >> CODEC configuration. It should be possible now even to write GUI to do >> it with few mouse clicks. > > reconfig seems to not honor hw.snd.default_unit sysctl. After > reconfiguration the sysctl was reset to `0' (default). Is this expected? > Even if it is specified as a tunable in loader.conf? Audio drivers know nothing about default_unit. reconfig destroys pcm devices and that probably changes default_unit. -- Alexander Motin