2010/8/4 Niels Mayer <nielsmayer@xxxxxxxxx> > On Tue, Aug 3, 2010 at 10:38 PM, Raymond Yau > <superquad.vortex2@xxxxxxxxx> wrote: > > 2010/8/4 Niels Mayer <nielsmayer@xxxxxxxxx> > >> * fixed --card and --device to allow valid ALSA names and numbers > >> ( https://bugzilla.redhat.com/show_bug.cgi?id=602900 ). > > > > ./envy24control -Ddefault > > > > card_number = atoi(strchr(name, ':') + sizeof(char)); > > > > This bug seem still occur when name does not contain ":" since ctl device > is > > "hw:n" where n is card number > > I used similar code to what's in alsamixer to perform the same > functions as the old broken code. Now the code behaves as follows: > > gnulem-238-~> envy24control -Dhw:default > envy24control: invalid ALSA audio device, invalid index or name for > card: hw:default > gnulem-239-~> envy24control -Dhw:M66 > using --- input_channels: 4 > --- output_channels: 4 > --- pcm_output_channels: 8 > --- spdif in/out channels: 2 > gnulem-240-~> envy24control -Dhw:M66.0 > envy24control: invalid ALSA audio device, invalid index or name for > card: hw:M66.0 > gnulem-241-~> envy24control -Dhw:M66,0 > envy24control: invalid ALSA audio device, invalid index or name for > card: hw:M66,0 > gnulem-242-~> envy24control -DM66 > envy24control: ALSA audio device syntax expects ':' character: M66 > > The "-D" option seem to be used similar to "amixer -Dabc" ctl.abc { type hw card 2 } _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel