From: Takashi Iwai Subject: Re: 1.0.16->1.0.17 regression for some HDA NVidia's Date: Wed, 16 Jul 2008 12:49:58 +0200 Message-ID: References: <4870F039.8020207@pardus.org.tr> <200807130845.55733.hfvogt@gmx.net> <200807152254.51098.hfvogt@gmx.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id A179D24437 for ; Wed, 16 Jul 2008 12:49:58 +0200 (CEST) In-Reply-To: <200807152254.51098.hfvogt@gmx.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: hfvogt@gmx.net Cc: ozan@pardus.org.tr, alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Tue, 15 Jul 2008 22:54:51 +0200, Hans-Frieder Vogt wrote: > > Takashi, > > with aplay things are a bit more differentiated: > > bdl_pos_adj=0 and 1 are as described below > > bdl_pos_adj=32 > device "default" works > device "plughw:0,0" works or does not work, may be depending on the sound format. For a nonworking file, here is the output of the files /proc/asound/card0/pcm0p/sub0/*: > /proc/asound/card0/pcm0p/sub0/hw_params: > access: RW_INTERLEAVED > format: S16_LE > subformat: STD > channels: 2 > rate: 44100 (44100/1) > period_size: 4096 > buffer_size: 16384 > /proc/asound/card0/pcm0p/sub0/info: > card: 0 > device: 0 > subdevice: 0 > stream: PLAYBACK > id: ALC883 Analog > name: ALC883 Analog > subname: subdevice #0 > class: 0 > subclass: 0 > subdevices_count: 1 > subdevices_avail: 0 > /proc/asound/card0/pcm0p/sub0/prealloc: > 64 > /proc/asound/card0/pcm0p/sub0/prealloc_max: > 1024 > /proc/asound/card0/pcm0p/sub0/status: > state: RUNNING > trigger_time: 2795.506618360 > tstamp : 2797.052537640 > delay : 16384 > avail : 0 > avail_max : 818 > ----- > hw_ptr : 818 > appl_ptr : 17202 > /proc/asound/card0/pcm0p/sub0/sw_params: > tstamp_mode: NONE > period_step: 1 > avail_min: 4096 > start_threshold: 16384 > stop_threshold: 16384 > silence_threshold: 0 > silence_size: 0 > boundary: 4611686018427387904 > > the same file played with mmap (aplay -D plughw:0,0 --mmap soundfile) also gives no sound. > /proc/asound/card0/pcm0p/sub0/hw_params: > access: MMAP_INTERLEAVED > format: S16_LE > subformat: STD > channels: 2 > rate: 44100 (44100/1) > period_size: 4096 > buffer_size: 16384 > /proc/asound/card0/pcm0p/sub0/info: > card: 0 > device: 0 > subdevice: 0 > stream: PLAYBACK > id: ALC883 Analog > name: ALC883 Analog > subname: subdevice #0 > class: 0 > subclass: 0 > subdevices_count: 1 > subdevices_avail: 0 > /proc/asound/card0/pcm0p/sub0/prealloc: > 64 > /proc/asound/card0/pcm0p/sub0/prealloc_max: > 1024 > /proc/asound/card0/pcm0p/sub0/status: > state: RUNNING > trigger_time: 2948.343350480 > tstamp : 2949.758334160 > delay : 16384 > avail : 0 > avail_max : 0 > ----- > hw_ptr : 0 > appl_ptr : 16384 > /proc/asound/card0/pcm0p/sub0/sw_params: > tstamp_mode: NONE > period_step: 1 > avail_min: 4096 > start_threshold: 16384 > stop_threshold: 16384 > silence_threshold: 0 > silence_size: 0 > boundary: 4611686018427387904 > > Your patch really solves this problem for bdl_pos_adj=32 (for bdl_pos_adj=0 and 1 unchanged). Thanks! Thanks for testing! It's not bug that bdl_pos_adj=0 and 1 don't change the behavior. It's intentional. ICH takes bdl_pos_adj=1, and =0 means to disable the feature. Takashi