[patch] als4000.c recording mixer problem

Ariff Abdullah skywizard at MyBSD.org.my
Sun Nov 6 05:21:37 PST 2005


On Sun, 06 Nov 2005 21:49:11 +0900
Watanabe Kazuhiro <CQG00620 at nifty.ne.jp> wrote:
> Hi, everyone.
> 
> I have an AOpen AW200 sound card which uses the AvanceLogic ALS4000
> soundchip.
> 
> When I try to record from the card's line input with wavrec (a part
> of ports/audio/wavplay) on FreeBSD 5.4, only record the left
> channel. The right channel has no sound.
> 
> 
> But on FreeBSD-7-current (CVSup'ed Nov. 5), it can record both left
> and right channel.  It looks like correct, however, it also selects
> an another input(s) to the recording source.
> 
> To find out this problem, add a bit of modify to
> sys/dev/sound/pci/als4000.c and run mixer(1) command.
> 
> @@ -616,7 +616,9 @@ alsmix_setrecsrc(struct snd_mixer *m, u_
>         if (src & SOUND_MASK_SYNTH)
>                 mask |= 0x60;
>  
> +printf("l=%x\n", l|mask);
>         als_mix_wr(sc, SB16_IMASK_L, l|mask);
> +printf("r=%x\n", r|mask);
>         als_mix_wr(sc, SB16_IMASK_R, r|mask);
>         return src;
>  }
> 
> 
I'll give it a shot later this day.


--
Ariff Abdullah
MyBSD

http://www.MyBSD.org.my (IPv6/IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)


More information about the freebsd-multimedia mailing list