diff options
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index a0fc961bc347..32a87dcecfa3 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -1011,6 +1011,12 @@ static inline int HDSPM_bit2freq(int n) | |||
1011 | return bit2freq_tab[n]; | 1011 | return bit2freq_tab[n]; |
1012 | } | 1012 | } |
1013 | 1013 | ||
1014 | static bool hdspm_is_raydat_or_aio(struct hdspm *hdspm) | ||
1015 | { | ||
1016 | return ((AIO == hdspm->io_type) || (RayDAT == hdspm->io_type)); | ||
1017 | } | ||
1018 | |||
1019 | |||
1014 | /* Write/read to/from HDSPM with Adresses in Bytes | 1020 | /* Write/read to/from HDSPM with Adresses in Bytes |
1015 | not words but only 32Bit writes are allowed */ | 1021 | not words but only 32Bit writes are allowed */ |
1016 | 1022 | ||
@@ -5142,9 +5148,8 @@ static int snd_hdspm_set_defaults(struct hdspm * hdspm) | |||
5142 | 5148 | ||
5143 | all_in_all_mixer(hdspm, 0 * UNITY_GAIN); | 5149 | all_in_all_mixer(hdspm, 0 * UNITY_GAIN); |
5144 | 5150 | ||
5145 | if (hdspm->io_type == AIO || hdspm->io_type == RayDAT) { | 5151 | if (hdspm_is_raydat_or_aio(hdspm)) |
5146 | hdspm_write(hdspm, HDSPM_WR_SETTINGS, hdspm->settings_register); | 5152 | hdspm_write(hdspm, HDSPM_WR_SETTINGS, hdspm->settings_register); |
5147 | } | ||
5148 | 5153 | ||
5149 | /* set a default rate so that the channel map is set up. */ | 5154 | /* set a default rate so that the channel map is set up. */ |
5150 | hdspm_set_rate(hdspm, 48000, 1); | 5155 | hdspm_set_rate(hdspm, 48000, 1); |