From: Takashi Iwai Subject: Re: ALSA patch Nvidia 8 channel hdmi audio Date: Wed, 03 Jun 2009 11:50:03 +0200 Message-ID: References: <410e92830906021458x3d47a1d6jebba8bbe1150e76d@mail.gmail.com> <200906030022.07693.marek.vasut@gmail.com> <410e92830906021530l767478c4tae72c4b161583b6@mail.gmail.com> <200906030200.54455.marek.vasut@gmail.com> <15F501D1A78BD343BE8F4D8DB854566B058A63F1@hkemmail01.nvidia.com> <410e92830906030100m5a3d045dsa856382fa2396e60@mail.gmail.com> <410e92830906030234u49a1e618kdf2d1e0550f00cdc@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6A72724366 for ; Wed, 3 Jun 2009 11:50:04 +0200 (CEST) In-Reply-To: <410e92830906030234u49a1e618kdf2d1e0550f00cdc@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: Alan Alan Cc: Peer Chen , Marek Vasut , Wei Ni , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 3 Jun 2009 11:34:00 +0200, Alan Alan wrote: > = > Hello Takashi ! > = > What should this patch do ? The patch removes the restriction patch_nvhdmi.c sets. Instead, the driver tries to detect the supported format, rate, etc from the codec widget information. > Is it a cure for the 96, 192khz or 24bit sample playback problem ? Possibly. > If so, will it resample or natievly pass the stream to the amplifier ? It just enables the native support, possibly. And, don't forget to give back the alsa-info.sh output (run with --no-upload option). Takashi > = > Thank you > = > Alan > = > 2009/6/3 Takashi Iwai > = > At Wed, 3 Jun 2009 10:00:24 +0200, > Alan Alan wrote: > > > > Hello Wei ! > > > > Thanks for replying. > > I tested it with speaker-test and xbmc babylon. Both had problems w= ith > > channel mapping. > > I used this command: > > > > speaker-test -Dhdmi -c6 > > or > > speaker-test -Dhdmi -c8 > > > > alternatively you could try > > > > speaker-test -Dhw:0,3 -c6 > > > > > > I had to rund Xorg first and have the command from an xterm, becasue > from a > > normal terminal it would not work. > > I think that is normal as a limitation of hdmi. > > > > What about the support for 24bits 192khz sound ? > > > > speaker-test -Dhdmi -c6 =A0-r192000 does not work. > = > How about the patch below? > = > Also, could you give alsa-info.sh output? > = > Takashi > = > --- > diff --git a/sound/pci/hda/patch_nvhdmi.c b/sound/pci/hda/patch_nvhdm= i.c > index f5792e2..48443de 100644 > --- a/sound/pci/hda/patch_nvhdmi.c > +++ b/sound/pci/hda/patch_nvhdmi.c > @@ -258,9 +258,11 @@ static struct hda_pcm_stream > nvhdmi_pcm_digital_playback_8ch =3D { > =A0 =A0 =A0 =A0.channels_min =3D 2, > =A0 =A0 =A0 =A0.channels_max =3D 8, > =A0 =A0 =A0 =A0.nid =3D Nv_Master_Convert_nid, > +#if 0 > =A0 =A0 =A0 =A0.rates =3D SNDRV_PCM_RATE_48000, > =A0 =A0 =A0 =A0.maxbps =3D 16, > =A0 =A0 =A0 =A0.formats =3D SNDRV_PCM_FMTBIT_S16_LE, > +#endif > =A0 =A0 =A0 =A0.ops =3D { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.open =3D nvhdmi_dig_playback_pcm_open, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.close =3D nvhdmi_dig_playback_pcm_clo= se_8ch, > @@ -273,9 +275,11 @@ static struct hda_pcm_stream > nvhdmi_pcm_digital_playback_2ch =3D { > =A0 =A0 =A0 =A0.channels_min =3D 2, > =A0 =A0 =A0 =A0.channels_max =3D 2, > =A0 =A0 =A0 =A0.nid =3D Nv_Master_Convert_nid, > +#if 0 > =A0 =A0 =A0 =A0.rates =3D SNDRV_PCM_RATE_48000, > =A0 =A0 =A0 =A0.maxbps =3D 16, > =A0 =A0 =A0 =A0.formats =3D SNDRV_PCM_FMTBIT_S16_LE, > +#endif > =A0 =A0 =A0 =A0.ops =3D { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.open =3D nvhdmi_dig_playback_pcm_open, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0.close =3D nvhdmi_dig_playback_pcm_clo= se_2ch, > = > =