@@ -5361,9 +5361,9 @@ static int scarlett2_add_line_out_ctls(struct usb_mixer_interface *mixer)
5361
5361
if (private -> vol_sw_hw_switch [index ])
5362
5362
scarlett2_vol_ctl_set_writable (mixer , i , 0 );
5363
5363
5364
- snprintf (s , sizeof (s ),
5365
- "Line Out %02d Volume Control Playback Enum" ,
5366
- i + 1 );
5364
+ scnprintf (s , sizeof (s ),
5365
+ "Line Out %02d Volume Control Playback Enum" ,
5366
+ i + 1 );
5367
5367
err = scarlett2_add_new_ctl (mixer ,
5368
5368
& scarlett2_sw_hw_enum_ctl ,
5369
5369
i , 1 , s ,
@@ -5406,8 +5406,8 @@ static int scarlett2_add_line_in_ctls(struct usb_mixer_interface *mixer)
5406
5406
5407
5407
/* Add input level (line/inst) controls */
5408
5408
for (i = 0 ; i < info -> level_input_count ; i ++ ) {
5409
- snprintf (s , sizeof (s ), fmt , i + 1 + info -> level_input_first ,
5410
- "Level" , "Enum" );
5409
+ scnprintf (s , sizeof (s ), fmt , i + 1 + info -> level_input_first ,
5410
+ "Level" , "Enum" );
5411
5411
err = scarlett2_add_new_ctl (mixer , & scarlett2_level_enum_ctl ,
5412
5412
i , 1 , s , & private -> level_ctls [i ]);
5413
5413
if (err < 0 )
@@ -5416,7 +5416,7 @@ static int scarlett2_add_line_in_ctls(struct usb_mixer_interface *mixer)
5416
5416
5417
5417
/* Add input pad controls */
5418
5418
for (i = 0 ; i < info -> pad_input_count ; i ++ ) {
5419
- snprintf (s , sizeof (s ), fmt , i + 1 , "Pad" , "Switch" );
5419
+ scnprintf (s , sizeof (s ), fmt , i + 1 , "Pad" , "Switch" );
5420
5420
err = scarlett2_add_new_ctl (mixer , & scarlett2_pad_ctl ,
5421
5421
i , 1 , s , & private -> pad_ctls [i ]);
5422
5422
if (err < 0 )
@@ -5425,8 +5425,8 @@ static int scarlett2_add_line_in_ctls(struct usb_mixer_interface *mixer)
5425
5425
5426
5426
/* Add input air controls */
5427
5427
for (i = 0 ; i < info -> air_input_count ; i ++ ) {
5428
- snprintf (s , sizeof (s ), fmt , i + 1 + info -> air_input_first ,
5429
- "Air" , info -> air_option ? "Enum" : "Switch" );
5428
+ scnprintf (s , sizeof (s ), fmt , i + 1 + info -> air_input_first ,
5429
+ "Air" , info -> air_option ? "Enum" : "Switch" );
5430
5430
err = scarlett2_add_new_ctl (
5431
5431
mixer , & scarlett2_air_ctl [info -> air_option ],
5432
5432
i , 1 , s , & private -> air_ctls [i ]);
@@ -5481,9 +5481,9 @@ static int scarlett2_add_line_in_ctls(struct usb_mixer_interface *mixer)
5481
5481
5482
5482
for (i = 0 ; i < info -> gain_input_count ; i ++ ) {
5483
5483
if (i % 2 ) {
5484
- snprintf (s , sizeof (s ),
5485
- "Line In %d-%d Link Capture Switch" ,
5486
- i , i + 1 );
5484
+ scnprintf (s , sizeof (s ),
5485
+ "Line In %d-%d Link Capture Switch" ,
5486
+ i , i + 1 );
5487
5487
err = scarlett2_add_new_ctl (
5488
5488
mixer , & scarlett2_input_link_ctl ,
5489
5489
i / 2 , 1 , s ,
@@ -5492,30 +5492,30 @@ static int scarlett2_add_line_in_ctls(struct usb_mixer_interface *mixer)
5492
5492
return err ;
5493
5493
}
5494
5494
5495
- snprintf (s , sizeof (s ), fmt , i + 1 ,
5496
- "Gain" , "Volume" );
5495
+ scnprintf (s , sizeof (s ), fmt , i + 1 ,
5496
+ "Gain" , "Volume" );
5497
5497
err = scarlett2_add_new_ctl (
5498
5498
mixer , & scarlett2_input_gain_ctl ,
5499
5499
i , 1 , s , & private -> input_gain_ctls [i ]);
5500
5500
if (err < 0 )
5501
5501
return err ;
5502
5502
5503
- snprintf (s , sizeof (s ), fmt , i + 1 ,
5504
- "Autogain" , "Switch" );
5503
+ scnprintf (s , sizeof (s ), fmt , i + 1 ,
5504
+ "Autogain" , "Switch" );
5505
5505
err = scarlett2_add_new_ctl (
5506
5506
mixer , & scarlett2_autogain_switch_ctl ,
5507
5507
i , 1 , s , & private -> autogain_ctls [i ]);
5508
5508
if (err < 0 )
5509
5509
return err ;
5510
5510
5511
- snprintf (s , sizeof (s ), fmt , i + 1 ,
5512
- "Autogain Status" , "Enum" );
5511
+ scnprintf (s , sizeof (s ), fmt , i + 1 ,
5512
+ "Autogain Status" , "Enum" );
5513
5513
err = scarlett2_add_new_ctl (
5514
5514
mixer , & scarlett2_autogain_status_ctl ,
5515
5515
i , 1 , s , & private -> autogain_status_ctls [i ]);
5516
5516
5517
- snprintf (s , sizeof (s ), fmt , i + 1 ,
5518
- "Safe" , "Switch" );
5517
+ scnprintf (s , sizeof (s ), fmt , i + 1 ,
5518
+ "Safe" , "Switch" );
5519
5519
err = scarlett2_add_new_ctl (
5520
5520
mixer , & scarlett2_safe_ctl ,
5521
5521
i , 1 , s , & private -> safe_ctls [i ]);
@@ -5902,8 +5902,8 @@ static int scarlett2_add_direct_monitor_ctls(struct usb_mixer_interface *mixer)
5902
5902
for (k = 0 ; k < private -> num_mix_in ; k ++ , index ++ ) {
5903
5903
char name [SNDRV_CTL_ELEM_ID_NAME_MAXLEN ];
5904
5904
5905
- snprintf (name , sizeof (name ), format ,
5906
- mix_type , 'A' + j , k + 1 );
5905
+ scnprintf (name , sizeof (name ), format ,
5906
+ mix_type , 'A' + j , k + 1 );
5907
5907
5908
5908
err = scarlett2_add_new_ctl (
5909
5909
mixer , & scarlett2_monitor_mix_ctl ,
0 commit comments