Re: [PATCH 4/9] ALSA: oxfw: apply model-specific functionality framework to firewire-speakers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 15 Nov 2015 10:26:00 +0100,
Takashi Sakamoto wrote:
> -	err = spkr_volume_command(oxfw, &oxfw->volume_min,
> +	if (strcmp(oxfw->card->driver, "FireWave") == 0) {
> +		spkr->mixer_channels = 6;
> +		spkr->mute_fb_id = 0x01;
> +		spkr->volume_fb_id = 0x02;
> +	}
> +	if (strcmp(oxfw->card->driver, "FWSpeakers") == 0) {
> +		spkr->mixer_channels = 1;
> +		spkr->mute_fb_id = 0x01;
> +		spkr->volume_fb_id = 0x01;
> +	}

What's the merit of such explicit individual conditional over the
constant table in the current implementation?  The latter is more
error-prone and simpler in general.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux