From: Takashi Iwai Subject: Re: [PATCH 18/31] HDA patch_via.c: Add 48K sample rate limit for S/PDIF streams. Date: Mon, 05 Oct 2009 17:14:59 +0200 Message-ID: References: <16685ee0910050727k409b03fdj1b03afd9c9521db2@mail.gmail.com> 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 (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id A8817244E9 for ; Mon, 5 Oct 2009 17:14:59 +0200 (CEST) In-Reply-To: <16685ee0910050727k409b03fdj1b03afd9c9521db2@mail.gmail.com> 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: Li Bo Cc: LoganLi@viatech.com.cn, alsa-devel@alsa-project.org, HaraldWelte@viatech.com, lydiawang@viatech.com.cn List-Id: alsa-devel@alsa-project.org At Mon, 5 Oct 2009 22:27:43 +0800, Li Bo wrote: > > [ALSA] HDA VIA: Add 48K sample rate limit for S/PDIF streams. > > Signed-off-by: Lydia Wang Any reason? Takashi > > Index: sound-2.6/sound/pci/hda/patch_via.c > =================================================================== > --- sound-2.6.orig/sound/pci/hda/patch_via.c 2009-10-05 15:11:02.000000000 +0800 > +++ sound-2.6/sound/pci/hda/patch_via.c 2009-10-05 15:11:04.000000000 +0800 > @@ -1228,6 +1228,7 @@ > .substreams = 1, > .channels_min = 2, > .channels_max = 2, > + .rates = SNDRV_PCM_RATE_48000, > /* NID is set in via_build_pcms */ > .ops = { > .open = via_dig_playback_pcm_open, > @@ -1241,6 +1242,7 @@ > .substreams = 1, > .channels_min = 2, > .channels_max = 2, > + .rates = SNDRV_PCM_RATE_48000, > }; > > static int via_build_controls(struct hda_codec *codec) > @@ -2042,6 +2044,7 @@ > .substreams = 1, > .channels_min = 2, > .channels_max = 2, > + .rates = SNDRV_PCM_RATE_48000, > /* NID is set in via_build_pcms */ > .ops = { > .open = via_dig_playback_pcm_open, > @@ -2657,6 +2660,7 @@ > .substreams = 1, > .channels_min = 2, > .channels_max = 2, > + .rates = SNDRV_PCM_RATE_48000, > /* NID is set in via_build_pcms */ > .ops = { > .open = via_dig_playback_pcm_open, > @@ -3137,6 +3141,7 @@ > .substreams = 2, > .channels_min = 2, > .channels_max = 2, > + .rates = SNDRV_PCM_RATE_48000, > /* NID is set in via_build_pcms */ > .ops = { > .open = via_dig_playback_pcm_open, > @@ -3581,6 +3586,7 @@ > .substreams = 2, > .channels_min = 2, > .channels_max = 2, > + .rates = SNDRV_PCM_RATE_48000, > /* NID is set in via_build_pcms */ > .ops = { > .open = via_dig_playback_pcm_open, >