Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754827Ab0G2Iwi (ORCPT ); Thu, 29 Jul 2010 04:52:38 -0400 Received: from cantor.suse.de ([195.135.220.2]:33955 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943Ab0G2Iwh (ORCPT ); Thu, 29 Jul 2010 04:52:37 -0400 Date: Thu, 29 Jul 2010 10:52:36 +0200 Message-ID: From: Takashi Iwai To: "Mario 'BitKoenig' Holbe" Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Regression 2.6.35-rc6: ALSA Intel HDA/Realtek: missing Beep In-Reply-To: <20100729084138.GA15456@darkside.kls.lan> References: <20100728144903.GA18170@darkside.kls.lan> <20100728212745.GA15394@darkside.kls.lan> <20100729080930.GA20619@darkside.kls.lan> <20100729084138.GA15456@darkside.kls.lan> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1417 Lines: 36 At Thu, 29 Jul 2010 10:41:38 +0200, Mario 'BitKoenig' Holbe wrote: > > On Thu, Jul 29, 2010 at 10:26:22AM +0200, Takashi Iwai wrote: > > FYI, you can change SSID by writing /sys/class/sound/hwC*D*/subsystem_id > > file. Then reconfigure the codec via triggering > > /sys/class/sound/hwC*D*/reconfig. > > Great, that's what I meant with "Or am I somehow able to tweak it? Is > there a module parameter to set this SSID bit?" :) > > $ for i in /sys/class/sound/hwC*D*/subsystem_id; do echo "$i: $(cat $i)"; done > /sys/class/sound/hwC0D0/subsystem_id: 0x1043829f > /sys/class/sound/hwC0D1/subsystem_id: 0xffffffff > > So, obviously the first check in > if (ass != codec->bus->pci->subsystem_device && (ass & 1)) > is false. How can I tweak the subsystem_id least-invasive not to match > codec->bus->pci->subsystem_device (which should be 0x829f then) anymore? Usually the codec SSID isn't checked in other places, so passing a bogus value should be OK. Pass a value like 2: # echo -n 2 > /sys/class/sound/hwC0D0/subsystem_id then # echo -n 1 > /sys/class/sound/hwC0D0/reconfig The latter needs that the all sound device files are closed beforehand. Takashi -- 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/