[ALSA] oxygen: make the number of analog output configurable
Add a field to struct oxygen_model to allow model drivers for cards with less than eight output channels. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:

committed by
Jaroslav Kysela

parent
09189ac793
commit
976cd62700
@@ -350,6 +350,7 @@ static const struct oxygen_model model_generic = {
|
||||
.update_dac_volume = update_ak4396_volume,
|
||||
.update_dac_mute = update_ak4396_mute,
|
||||
.model_data_size = sizeof(struct generic_data),
|
||||
.dac_channels = 8,
|
||||
.used_channels = OXYGEN_CHANNEL_A |
|
||||
OXYGEN_CHANNEL_C |
|
||||
OXYGEN_CHANNEL_SPDIF |
|
||||
@@ -372,6 +373,7 @@ static const struct oxygen_model model_meridian = {
|
||||
.update_dac_volume = update_ak4396_volume,
|
||||
.update_dac_mute = update_ak4396_mute,
|
||||
.model_data_size = sizeof(struct generic_data),
|
||||
.dac_channels = 8,
|
||||
.used_channels = OXYGEN_CHANNEL_B |
|
||||
OXYGEN_CHANNEL_C |
|
||||
OXYGEN_CHANNEL_SPDIF |
|
||||
|
Reference in New Issue
Block a user