mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
ALSA: ad1889: Use str_enabled_disabled() helper function
Remove hard-coded strings by using the str_enabled_disabled() helper function. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20241221095210.5473-1-thorsten.blum@linux.dev Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
42b09e100f
commit
4ebbf89814
|
|
@ -626,7 +626,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffe
|
|||
|
||||
reg = ad1889_readw(chip, AD_DS_WSMC);
|
||||
snd_iprintf(buffer, "Wave output: %s\n",
|
||||
(reg & AD_DS_WSMC_WAEN) ? "enabled" : "disabled");
|
||||
str_enabled_disabled(reg & AD_DS_WSMC_WAEN));
|
||||
snd_iprintf(buffer, "Wave Channels: %s\n",
|
||||
(reg & AD_DS_WSMC_WAST) ? "stereo" : "mono");
|
||||
snd_iprintf(buffer, "Wave Quality: %d-bit linear\n",
|
||||
|
|
@ -642,7 +642,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffe
|
|||
|
||||
|
||||
snd_iprintf(buffer, "Synthesis output: %s\n",
|
||||
reg & AD_DS_WSMC_SYEN ? "enabled" : "disabled");
|
||||
str_enabled_disabled(reg & AD_DS_WSMC_SYEN));
|
||||
|
||||
/* SYRQ is at offset 4 */
|
||||
tmp = (reg & AD_DS_WSMC_SYRQ) ?
|
||||
|
|
@ -654,7 +654,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffe
|
|||
|
||||
reg = ad1889_readw(chip, AD_DS_RAMC);
|
||||
snd_iprintf(buffer, "ADC input: %s\n",
|
||||
(reg & AD_DS_RAMC_ADEN) ? "enabled" : "disabled");
|
||||
str_enabled_disabled(reg & AD_DS_RAMC_ADEN));
|
||||
snd_iprintf(buffer, "ADC Channels: %s\n",
|
||||
(reg & AD_DS_RAMC_ADST) ? "stereo" : "mono");
|
||||
snd_iprintf(buffer, "ADC Quality: %d-bit linear\n",
|
||||
|
|
@ -669,7 +669,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buffe
|
|||
(reg & AD_DS_RAMC_ADST) ? "stereo" : "mono");
|
||||
|
||||
snd_iprintf(buffer, "Resampler input: %s\n",
|
||||
reg & AD_DS_RAMC_REEN ? "enabled" : "disabled");
|
||||
str_enabled_disabled(reg & AD_DS_RAMC_REEN));
|
||||
|
||||
/* RERQ is at offset 12 */
|
||||
tmp = (reg & AD_DS_RAMC_RERQ) ?
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user