From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 13 16:15:10 2010 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 A5E151065670; Wed, 13 Jan 2010 16:15:10 +0000 (UTC) (envelope-from diego.ochoat@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.186]) by mx1.freebsd.org (Postfix) with ESMTP id E37E68FC12; Wed, 13 Jan 2010 16:15:09 +0000 (UTC) Received: by gv-out-0910.google.com with SMTP id p33so181308gvf.39 for ; Wed, 13 Jan 2010 08:15:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=oYoi53nXyy5yyvSv0JhC3Qz2PNCRAIBhffYftO3W+00=; b=dwjACBOK6I9lMCHsuhoEIOPVCU4OIX85o/p1y3HChGItE05LZl77Hn3NcfhtLzVoor PPyzsAJXv3KCoWmOsXmBpoWiZXkG8JnKVq9HDpOdR86jdIlhtO9ue5dEm05Ckz66R6LM R6DW2MhQVhKMoxTvA+/dsIKt/nUQEceSqYVdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=R4LsOrQH22Ul5wS6TeIPwMOnPbcdlTy0g8BRGa83Q/g/4OhLR8BMaT+Ft7W44ywscQ wYrUEOQqLoRKoN5HJp0OfS+Vwm2WALjQ+5Dsfghi+tXOg4tsSMf0MP0z0DDTVrEo6gLu RJVCs/DqqQFIdtfL4TiAaGqpDS2D/SYns28e4= MIME-Version: 1.0 Received: by 10.239.145.204 with SMTP id t12mr492546hba.142.1263399305168; Wed, 13 Jan 2010 08:15:05 -0800 (PST) In-Reply-To: <4B4D8747.2000601@FreeBSD.org> References: <4B4D8747.2000601@FreeBSD.org> From: Diego Ochoa Tocachi Date: Wed, 13 Jan 2010 11:14:45 -0500 Message-ID: <6951cb851001130814t31ab97f7ldbd957322657ffc8@mail.gmail.com> To: Alexander Motin Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia Subject: Re: snd_hda multichannel support added 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: Wed, 13 Jan 2010 16:15:10 -0000 2010/1/13 Alexander Motin > Hi. > > As sound(4) got multichannel support since FreeBSD 8.0, I've implemented > multichannel (4.0, 5.1, 7.1) playback support for snd_hda(4) driver. > MPlayer now successfully plays 4/6-channel audio streams when running > with respective -channels option. The only thing you should configure, > is to inform vchans about present number of speakers by something like: > sysctl dev.pcm.0.play.vchanformat="s16le:7.1" > > Code was recently added to 9-CURRENT. Patch for 8-STABLE can be found > here: http://people.freebsd.org/~mav/snd_hda.mch.patch > > Have a nice sound! :) > > PS: Stereo stream is no more duplicated to all connectors. If you loose > sound, check you are using right ones. Front speakers connector is > usually green, center/LFE - orange, rear - black, side - gray. > > -- > Alexander Motin > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to " > freebsd-multimedia-unsubscribe@freebsd.org" > Hi, I've patched but when I compile I got: starkiller# cd /usr/src/sys/dev/sound/pci/hda/ starkiller# cat /root/snd_hda.mch.patch |patch -p1 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: hdac_private.h |=================================================================== |--- hdac_private.h (revision 202126) |+++ hdac_private.h (revision 202156) -------------------------- Patching file hdac_private.h using Plan A... Hunk #1 succeeded at 221. Hunk #2 succeeded at 282. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: hdac.c |=================================================================== |--- hdac.c (revision 202126) |+++ hdac.c (revision 202156) -------------------------- Patching file hdac.c using Plan A... Hunk #1 succeeded at 3405 (offset -50 lines). Hunk #2 succeeded at 3423 (offset -50 lines). Hunk #3 succeeded at 3431 (offset -50 lines). Hunk #4 succeeded at 3451 (offset -50 lines). Hunk #5 succeeded at 3479 with fuzz 1 (offset -50 lines). Hunk #6 failed at 3489. Hunk #7 succeeded at 3568 (offset -8 lines). Hunk #8 succeeded at 6409 (offset -58 lines). Hunk #9 succeeded at 6470 (offset -8 lines). Hunk #10 succeeded at 6444 (offset -58 lines). Hunk #11 succeeded at 6510 (offset -8 lines). Hunk #12 succeeded at 6501 (offset -58 lines). 1 out of 12 hunks failed--saving rejects to hdac.c.rej done starkiller# cd /usr/src/sys/modules/sound/driver/hda starkiller# make Warning: Object directory not changed from original /usr/src/sys/modules/sound/driver/hda cc -O2 -pipe -march=nocona -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c cc1: warnings being treated as errors /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c: In function 'hdac_channel_setfragments': /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:3497: warning: implicit declaration of function 'lcm' /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:3497: warning: nested extern declaration of 'lcm' /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c: In function 'hdac_pcmchannel_setup': /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:6434: warning: implicit declaration of function 'HDA_PARAM_AUDIO_WIDGET_CAP_CC' /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:6434: warning: nested extern declaration of 'HDA_PARAM_AUDIO_WIDGET_CAP_CC' *** Error code 1 Stop in /usr/src/sys/modules/sound/driver/hda. my system: FreeBSD starkiller 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 21:11:58 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 There's something wrong that I did?? -- Diego Ochoa - darkbalder Luis Pasteur 2-30 y Copernico Telf: +593 7 4082144 Porta: 090085391 Cuenca - Ecuador